|
@@ -24,7 +24,7 @@ module.exports = app => {
|
|
}
|
|
}
|
|
|
|
|
|
async gatherBgBills (tid) {
|
|
async gatherBgBills (tid) {
|
|
- const sql = 'SELECT cb.code, cb.name, cb.unit, cb.unit_price, Sum(cb.samount + 0) as quantity' +
|
|
|
|
|
|
+ const sql = 'SELECT cb.code, cb.name, cb.unit, cb.unit_price, Round(Sum(cb.samount + 0), 6) as quantity' +
|
|
' FROM ' + this.tableName + ' cb' +
|
|
' FROM ' + this.tableName + ' cb' +
|
|
' LEFT JOIN ' + this.ctx.service.change.tableName + ' c ON cb.cid = c.cid' +
|
|
' LEFT JOIN ' + this.ctx.service.change.tableName + ' c ON cb.cid = c.cid' +
|
|
' WHERE cb.tid = ? and c.status = ?' +
|
|
' WHERE cb.tid = ? and c.status = ?' +
|