소스 검색

批量插入后项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_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);
                 const precision = this.ctx.helper.findPrecision(info.precision, qd.unit);
                 if (data[i].pos.length > 0) {