|
@@ -2226,7 +2226,7 @@ $(document).ready(() => {
|
|
|
|
|
|
const qty = ZhCalc.sub(curPos.quantity, curPos.pre_contract_qty);
|
|
|
const differ = ZhCalc.sub(curPos.quantity, curPos.end_contract_qty);
|
|
|
- if (differ) data.updateData.push({ pid: curPos.id, lid: curPos.lid, contract_qty: qty });
|
|
|
+ if (differ) data.updateData.push({ pid: curPos.id, lid: curPos.lid, contract_qty: qty, contract_expr: '' });
|
|
|
}
|
|
|
if (data.updateData.length > 0) {
|
|
|
postData(window.location.pathname + '/update', {pos: data}, function (result) {
|
|
@@ -2264,7 +2264,7 @@ $(document).ready(() => {
|
|
|
for (const curPos of sheet.zh_data) {
|
|
|
const qty = ZhCalc.sub(curPos.quantity, curPos.pre_contract_qty);
|
|
|
const differ = ZhCalc.sub(curPos.quantity, curPos.end_contract_qty);
|
|
|
- if (differ) data.updateData.push({ pid: curPos.id, lid: curPos.lid, contract_qty: qty });
|
|
|
+ if (differ) data.updateData.push({ pid: curPos.id, lid: curPos.lid, contract_qty: qty, contract_expr: '' });
|
|
|
}
|
|
|
if (data.updateData.length > 0) {
|
|
|
postData(window.location.pathname + '/update', {pos: data}, function (result) {
|