Commit 4dba5156 authored by 卢均锐's avatar 卢均锐

fix: 对账单请款核销逻辑修改

parent d3b0399d
......@@ -214,6 +214,9 @@ const Add = () => {
const _i = _tabelSource.findIndex((item) => item.billId === writeOffData.billId);
let _item = { ..._tabelSource[_i] };
_item.writeOffRecords = rows;
const _currentMoney = rows.map((item) => item.currentMoney).reduce((p, r) => p + r, 0)
_item.writeOffAmount = _currentMoney;
_item.applyPayment = _item.reconciliationAmount - _currentMoney;
_tabelSource[_i] = _item;
setTabelSource(_tabelSource);
setWriteOffDrawer(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment