MaiXinRong 5 年之前
父节点
当前提交
73215ac696
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/change_audit_list.js

+ 1 - 1
app/service/change_audit_list.js

@@ -24,7 +24,7 @@ module.exports = app => {
         }
 
         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' +
                 '  LEFT JOIN ' + this.ctx.service.change.tableName + ' c ON cb.cid = c.cid' +
                 '  WHERE cb.tid = ? and c.status = ?' +