Przeglądaj źródła

部位台账,经济指标计算

MaiXinRong 4 lat temu
rodzic
commit
83a420fca9
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      app/lib/bills_pos_convert.js

+ 2 - 0
app/lib/bills_pos_convert.js

@@ -241,6 +241,8 @@ class BillsPosConvert {
             node.real_tp = this.ctx.helper.add(node.real_tp, child.real_tp);
             node.estimate_tp = this.ctx.helper.add(node.estimate_tp, child.estimate_tp);
         }
+        if (node.dgn_qty1)
+            node.dgn_price = this.ctx.helper.div(node.total_price, node.dgn_qty1, this.ctx.tender.info.decimal.up);
         node.final_tp = this.ctx.helper.add(node.total_price, node.end_qc_tp);
         node.end_gather_percent = this.ctx.helper.mul(this.ctx.helper.div(node.end_gather_tp, node.final_tp, 4), 100);
     }