zhangweicheng 8 years ago
parent
commit
78799ed33d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/ration_glj/facade/glj_calculate_facade.js

+ 2 - 2
modules/ration_glj/facade/glj_calculate_facade.js

@@ -90,8 +90,7 @@ async function calculateQuantityPerGLJ(glj,ration,coeList,assList,adjustState,is
             projectID:glj.projectID
         },
         doc:{
-            quantity: quantity,
-            customQuantity:glj.customQuantity
+            quantity: quantity
         }
     };
     try {
@@ -102,6 +101,7 @@ async function calculateQuantityPerGLJ(glj,ration,coeList,assList,adjustState,is
                 quantity = calculateQuantityByCoes(quantity,coeList,glj);
             }else {
                 quantity = glj.customQuantity;
+                result.doc.customQuantity = glj.customQuantity;
             }
             let customerCoe = _.last(coeList);
             if(customerCoe.isAdjust==1){