Bläddra i källkod

商品补货分析表最后三月没数据

eganwu 1 år sedan
förälder
incheckning
e61e206c08
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6 2
      src/custom/restcontroller/webmanage/sale/invbal/invbal.java

+ 6 - 2
src/custom/restcontroller/webmanage/sale/invbal/invbal.java

@@ -543,8 +543,12 @@ public class invbal extends Controller {
             }
         }
         for (Row row : rows) {
-            for (int i=0;i<12;i++) {
-                row.replace("month_0"+(i+1), row.get(getLast12Months().get(i)));
+            for (int i = 0; i < 12; i++) {
+                if (i < 9) {
+                    row.replace("month_0" + (i + 1), row.get(getLast12Months().get(i)));
+                } else {
+                    row.replace("month_" + (i + 1), row.get(getLast12Months().get(i)));
+                }
             }
         }
 //        if (isExport) {