MaiXinRong 3 tahun lalu
induk
melakukan
66be1f801d
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/lib/sum_load.js

+ 2 - 2
app/lib/sum_load.js

@@ -210,12 +210,12 @@ class updateReviseGclTree extends loadGclBaseTree {
                     result.errors.push({
                         ledger_id: bn.ledger_id,
                         b_code: bn.b_code, name: bn.name, unit: bn.unit,
-                        deal_qty: i.deal_qty, sgfh_qty: bn.sgfh_qty, sjcl_qty: bn.sjcl_qty, qtcl_qty: bn.qtcl_qty, qty: bn.quantity, type: 'less',
+                        deal_qty: bn.deal_qty, sgfh_qty: bn.sgfh_qty, sjcl_qty: bn.sjcl_qty, qtcl_qty: bn.qtcl_qty, qty: bn.quantity, type: 'less',
                     });
                 } else if (bn.sjcl_qty !== bn.org_sjcl_qty || bn.qtcl_qty !== bn.org_qtcl_qty || bn.sgfh_qty !== bn.org_sgfh_qty) {
                     result.update.push({
                         id: bn.id, ledger_id: bn.ledger_id, unit_price: bn.unit_price || 0,
-                        deal_qty: i.deal_qty, deal_tp: i.deal_tp || 0,
+                        deal_qty: bn.deal_qty, deal_tp: bn.deal_tp || 0,
                         sgfh_qty: bn.sgfh_qty, sjcl_qty: bn.sjcl_qty, qtcl_qty: bn.qtcl_qty, quantity: bn.quantity,
                         sgfh_tp: bn.sgfh_tp || 0, sjcl_tp: bn.sjcl_tp || 0, qtcl_tp: bn.qtcl_tp || 0, total_price: bn.total_price || 0,
                     })