import dati prodotti + fornitore + produttore

This commit is contained in:
Surya Paolo
2023-12-15 00:57:24 +01:00
parent b4af36d01c
commit 6a1a1fb249
50 changed files with 177 additions and 26 deletions

View File

@@ -79,8 +79,10 @@ export const useProducts = defineStore('Products', {
active: false,
idProducer: '',
idStorehouses: [],
idProvider: '',
producer: {},
storehouses: [],
provider: {},
code: '',
name: '',
description: '',
@@ -117,6 +119,7 @@ export const useProducts = defineStore('Products', {
idapp: process.env.APP_ID,
idProduct: product._id,
idProducer: product.idProducer,
idProvider: product.idProvider,
status: shared_consts.OrderStatus.IN_CART,
price: product.price,
after_price: product.after_price,
@@ -126,6 +129,7 @@ export const useProducts = defineStore('Products', {
quantity: order.quantity,
idStorehouse: order.idStorehouse,
}
if (product.storehouses.length === 1) {