|
@@ -110,6 +110,10 @@ module.exports = app => {
|
|
c.qc_tp = this.ctx.helper.add(c.qc_tp, cp.qc_pc_tp);
|
|
c.qc_tp = this.ctx.helper.add(c.qc_tp, cp.qc_pc_tp);
|
|
curPc.splice(curPc.indexOf(cp), 1);
|
|
curPc.splice(curPc.indexOf(cp), 1);
|
|
}
|
|
}
|
|
|
|
+ if (!c.org_price) {
|
|
|
|
+ const bills = await this.ctx.service.ledger.getDataById(c.lid);
|
|
|
|
+ c.unit_price = bills ? bills.unit_price || 0 : 0;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
for (const p of pre) {
|
|
for (const p of pre) {
|