|
@@ -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){
|