Explorar o código

修复计量期审批bug

laiguoran %!s(int64=3) %!d(string=hai) anos
pai
achega
3427562922
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/service/stage_bills_final.js

+ 1 - 1
app/service/stage_bills_final.js

@@ -136,7 +136,7 @@ module.exports = app => {
                     curPc.splice(curPc.indexOf(cp), 1);
                 }
                 if (!p.unit_price) {
-                    const bills = await this.ctx.service.ledger.getDataById(c.lid);
+                    const bills = await this.ctx.service.ledger.getDataById(p.lid);
                     p.unit_price = bills ? bills.unit_price || 0 : 0;
                 }
             }