|
@@ -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;
|
|
|
}
|
|
|
}
|