diff --git a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue index 48e7ba9b..2d5bd6d9 100644 --- a/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue +++ b/jshERP-web/src/views/bill/modules/PurchaseBackModal.vue @@ -392,6 +392,13 @@ let allTaxLastMoney = 0 for(let j=0; j0) { + info.operNumber = info.preNumber - info.finishNumber + info.allPrice = info.operNumber * info.unitPrice-0 + let taxRate = info.taxRate-0 + info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0 + info.taxLastMoney = (info.allPrice + info.taxMoney).toFixed(2)-0 + } info.linkId = info.id allTaxLastMoney += info.taxLastMoney listEx.push(info) diff --git a/jshERP-web/src/views/bill/modules/SaleBackModal.vue b/jshERP-web/src/views/bill/modules/SaleBackModal.vue index 96cd7baa..4de5f016 100644 --- a/jshERP-web/src/views/bill/modules/SaleBackModal.vue +++ b/jshERP-web/src/views/bill/modules/SaleBackModal.vue @@ -403,6 +403,13 @@ let allTaxLastMoney = 0 for(let j=0; j0) { + info.operNumber = info.preNumber - info.finishNumber + info.allPrice = info.operNumber * info.unitPrice-0 + let taxRate = info.taxRate-0 + info.taxMoney = (info.allPrice*taxRate/100).toFixed(2)-0 + info.taxLastMoney = (info.allPrice + info.taxMoney).toFixed(2)-0 + } info.linkId = info.id allTaxLastMoney += info.taxLastMoney listEx.push(info)