MaiXinRong 3 năm trước cách đây
mục cha
commit
f7171b9da2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/report_memory.js

+ 1 - 1
app/service/report_memory.js

@@ -767,7 +767,7 @@ module.exports = app => {
                     for (const [i, aa] of auditAmount.entries()) {
                         const amountField = 'qty_' + (i+1), tpField = 'tp_' + (i+1);
                         d[amountField] = aa ? parseFloat(aa) : 0;
-                        d[tpField] = ctx.helper.mul(d[amountField], d.unit_price, c.tp_decimal || decimal.tp);
+                        d[tpField] = ctx.helper.mul(d[amountField], d.unit_price, decimal.tp);
                         if (relaChange) {
                             relaChange[tpField] = ctx.helper.add(relaChange[tpField], d[tpField]);
                         }