aggio query

This commit is contained in:
Surya Paolo
2023-12-12 15:42:49 +01:00
parent 87ac147eec
commit 98b4c76394
2 changed files with 7 additions and 1 deletions

View File

@@ -1038,6 +1038,9 @@ export const shared_consts = {
PAGATI: 3, PAGATI: 3,
COMPLETATI: 4, COMPLETATI: 4,
CANCELLATI: 5, CANCELLATI: 5,
//
STATO_PER_SCARICARE_LE_QTA_DAL_MAGAZZINO: 4, // inferiore ai completati
}, },
OrderStatusView: [ OrderStatusView: [

View File

@@ -150,7 +150,10 @@ export default defineComponent({
} }
function updateQtyAvailable() { function updateQtyAvailable() {
myproduct.value.quantityAvailable = myproduct.value.stockQty - myorder.value.quantity myproduct.value.quantityAvailable = myproduct.value.stockQty
if (myorder.value.quantity > 0) {
myproduct.value.quantityAvailable -= myorder.value.quantity
}
} }
function getQtyAvailable() { function getQtyAvailable() {