|
@@ -230,6 +230,12 @@ async function doCustomQuantityUpdate(datas){
|
|
|
try{
|
|
|
await ration_glj.update(datas.query,datas.doc);
|
|
|
let cal_result = await glj_calculate_facade.calculateQuantity({projectID:datas.query.projectID,rationID:datas.query.rationID});
|
|
|
+
|
|
|
+ cal_result.glj_result.forEach(function (item) {
|
|
|
+ if(!item.doc.hasOwnProperty('customQuantity')){
|
|
|
+ item.doc.customQuantity=null;
|
|
|
+ }
|
|
|
+ });
|
|
|
result.cal_result =cal_result;
|
|
|
console.log(result);
|
|
|
return result;
|