优化采购退货和销售退货单据,在选择单据的时候自动计算本次该退货的明细数量

This commit is contained in:
季圣华
2022-11-20 01:32:16 +08:00
parent 0b098b4e18
commit 966942741b
2 changed files with 14 additions and 0 deletions

View File

@@ -392,6 +392,13 @@
let allTaxLastMoney = 0
for(let j=0; j<selectBillDetailRows.length; j++) {
let info = selectBillDetailRows[j];
if(info.finishNumber>0) {
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)