瀏覽代碼

批量插入后项bug

MaiXinRong 3 周之前
父節點
當前提交
0253cadd46
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/ledger.js

+ 1 - 1
app/service/ledger.js

@@ -616,7 +616,7 @@ module.exports = app => {
                     unit: data[i].unit,
                     unit: data[i].unit,
                     unit_price: this.ctx.helper.round(data[i].price, info.decimal.up),
                     unit_price: this.ctx.helper.round(data[i].price, info.decimal.up),
                 };
                 };
-                qd.full_path = selectData.full_path + '-' + qd.ledger_id;
+                qd.full_path = parentData.full_path + '-' + qd.ledger_id;
                 insertBillsData.push(qd);
                 insertBillsData.push(qd);
                 const precision = this.ctx.helper.findPrecision(info.precision, qd.unit);
                 const precision = this.ctx.helper.findPrecision(info.precision, qd.unit);
                 if (data[i].pos.length > 0) {
                 if (data[i].pos.length > 0) {