优化采购退货和销售退货单据,在选择单据的时候自动计算本次该退货的明细数量
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -403,6 +403,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)
|
||||
|
||||
Reference in New Issue
Block a user