Risolto problema blocco

This commit is contained in:
Surya Paolo
2023-12-18 08:02:28 +01:00
parent 50d610b1b1
commit 139d7ea33c
3 changed files with 16 additions and 10 deletions

View File

@@ -28,7 +28,8 @@ const orderSchema = new Schema({
idScontisticas: [{ type: Schema.Types.ObjectId, ref: 'Scontistica' }],
idProvider: { type: Schema.Types.ObjectId, ref: 'Provider' },
price: {
type: Number
type: Number,
default: 0,
},
after_price: {
type: String
@@ -40,7 +41,12 @@ const orderSchema = new Schema({
type: String
},
quantity: {
type: Number
type: Number,
default: 0,
},
TotalPriceProduct: {
type: Number,
default: 0,
},
evaso: { // e quindi è stato tolto dal magazzino (aggiornando il campo StockQty)
type: Boolean,