@@ -399,7 +399,11 @@
}
});
- totInfo.yoyRate = (totInfo.totAmt / totInfo.yoyTotOrdAmt * 100 - 100).toFixed(1);
+ if(totInfo.totAmt > 0 && totInfo.yoyTotOrdAmt > 0){
+ totInfo.yoyRate = (totInfo.totAmt / totInfo.yoyTotOrdAmt * 100 - 100).toFixed(1);
+ }else{
+ totInfo.yoyRate = 0;
+ }
gagaAgGrid.setPinnedRowData(gridOptions, totInfo, 'top');
@@ -377,7 +377,11 @@
+ if(totInfo.totAmt > 0 && totInfo.yoyTotOrdAmt > 0 ){
@@ -316,7 +316,11 @@