Explorar o código

报表,父项计算截止本期补差

MaiXinRong %!s(int64=2) %!d(string=hai) anos
pai
achega
b27896cf48
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      app/service/report_memory.js

+ 5 - 1
app/service/report_memory.js

@@ -107,7 +107,11 @@ module.exports = app => {
                 rootId: -1,
                 keys: ['id', 'tender_id', 'ledger_id'],
                 stageId: 'id',
-                calcFields: calcFields || ['deal_tp', 'total_price', 'contract_tp', 'qc_tp', 'contract_pc_tp', 'qc_pc_tp', 'pc_tp', 'gather_tp', 'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp', 'final_1_tp'],
+                calcFields: calcFields || ['deal_tp', 'total_price',
+                    'contract_tp', 'qc_tp', 'contract_pc_tp', 'qc_pc_tp', 'pc_tp', 'gather_tp',
+                    'pre_contract_tp', 'pre_qc_tp', 'pre_gather_tp', 'final_1_tp',
+                    'end_contract_pc_tp', 'end_qc_pc_tp', 'end_pc_tp',
+                ],
                 calc: function (node, helper, decimal) {
                     if (node.children && node.children.length === 0) {
                         node.pre_gather_qty = helper.add(node.pre_contract_qty, node.pre_qc_qty);