Explorar o código

部位台账,经济指标计算

MaiXinRong %!s(int64=4) %!d(string=hai) anos
pai
achega
83a420fca9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);
     }