Bläddra i källkod

粘贴整块时,粘贴签约数量、签约金额

MaiXinRong 4 år sedan
förälder
incheckning
93cbd6044f
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2 0
      app/base/base_bills_service.js

+ 2 - 0
app/base/base_bills_service.js

@@ -597,6 +597,7 @@ class BaseBillsSerivce extends TreeService {
                     c.ledger_pid = newBills.ledger_id;
                 }
                 const precision = this.ctx.helper.findPrecision(this.ctx.tender.info.precision, newBills.unit);
+                newBills.deal_qty = this.ctx.helper.round(d.deal_qty, precision.value);
                 if (d.pos && d.pos.length > 0) {
                     for (const pos of d.pos) {
                         const newPos = {
@@ -637,6 +638,7 @@ class BaseBillsSerivce extends TreeService {
                 newBills.sjcl_tp = this.ctx.helper.mul(newBills.qtcl_qty, newBills.unit_price, tpDecimal);
                 newBills.qtcl_tp = this.ctx.helper.mul(newBills.sjcl_qty, newBills.unit_price, tpDecimal);
                 newBills.total_price = this.ctx.helper.mul(newBills.quantity, newBills.unit_price, tpDecimal);
+                newBills.deal_tp = this.ctx.helper.mul(newBills.deal_qty, newBills.unit_price, tpDecimal);
                 if (defaultData) this.ctx.helper._.assignIn(newBills, defaultData);
                 pbd.push(newBills);
             }