Browse Source

修复差值对比bug

laiguoran 3 năm trước cách đây
mục cha
commit
27ca4498a5

+ 3 - 1
app/public/js/change_information.js

@@ -397,7 +397,9 @@ $(document).ready(() => {
             let color = true;
             let color = true;
             if (planInfo) {
             if (planInfo) {
                 _.remove(newPlanList, (item) => item === planInfo);
                 _.remove(newPlanList, (item) => item === planInfo);
-                color = false;
+                if (pamount === c.spamount) {
+                    color = false;
+                }
             }
             }
             czList.push({ code: c.code, name: c.name, unit: c.unit, unit_price: c.unit_price, camount: c.spamount, pamount, color });
             czList.push({ code: c.code, name: c.name, unit: c.unit, unit_price: c.unit_price, camount: c.spamount, pamount, color });
         }
         }