Explorar o código

导入计量台账Excel,金额列问题

MaiXinRong %!s(int64=3) %!d(string=hai) anos
pai
achega
038d1d5937
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/lib/analysis_excel.js

+ 1 - 1
app/lib/analysis_excel.js

@@ -978,7 +978,7 @@ class AnalysisStageExcelTree extends AnalysisExcelTree {
         if (node.contract_qty && node.unit_price) {
             node.contract_tp = this.ctx.helper.mul(node.contract_qty, node.unit_price, this.decimal.tp);
         } else {
-            node.contract_tp = null;
+            node.contract_tp = this.ctx.helper.round(aeUtils.toNumber(row[this.colsDef.contract_tp]), this.decimal.tp);
         }
         node.postil = this.ctx.helper.replaceReturn(row[this.colsDef.postil]);
         if (this.filter.filterZeroGcl && !node.contract_qty && !node.contract_tp) return true;