aggiornamento visualizzazione Ordini e Carrello

This commit is contained in:
Surya Paolo
2023-12-09 19:38:23 +01:00
parent 023ba26003
commit daacde7455
7 changed files with 68 additions and 32 deletions

View File

@@ -53,7 +53,8 @@ const productSchema = new Schema({
type: Number
},
price: {
type: Number
type: Number,
required: true,
},
after_price: {
type: String
@@ -74,7 +75,8 @@ const productSchema = new Schema({
type: Number
},
stockQty: { // in magazzino
type: Number
type: Number,
required: true,
},
quantityAvailable: {
type: Number