|
@@ -328,7 +328,7 @@ module.exports = app => {
|
|
|
|
|
|
async getFinalUsedData(tid, cid) {
|
|
|
const sql = 'SELECT c.lid, c.pid, SUM(c.qty) as used_qty,' +
|
|
|
- ' cb.tid, cb.cid, cb.id, cb.code, cb.name, cb.unit, cb.unit_price, cb.detail, cb.samount, cb.bwmx, cb.gcl_id' +
|
|
|
+ ' cb.tid, cb.cid, cb.id, cb.code, cb.name, cb.unit, cb.unit_price, cb.detail, cb.samount, cb.oamount, cb.bwmx, cb.gcl_id' +
|
|
|
' FROM ' + this.ctx.service.changeAuditList.tableName + ' As cb' +
|
|
|
' LEFT JOIN ' + this.tableName + ' As c ON cb.id = c.cbid ' +
|
|
|
' INNER JOIN (' +
|