Przeglądaj źródła

批量插入后项bug

MaiXinRong 3 tygodni temu
rodzic
commit
0253cadd46
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {