Browse Source

Fix bag calculation when non-pound units are selected

Neal Wilson 9 years ago
parent
commit
3c7b18f0a7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      config/Windows/newbatch.xml

+ 1
- 1
config/Windows/newbatch.xml View File

@@ -201,6 +201,7 @@
201 201
                                 }
202 202
                                 displayValue -= change;
203 203
                             }
204
+                            var bagCount = (displayValue / bagConversion).toFixed(2);
204 205
                             switch(unitBox.currentIndex)
205 206
                             {
206 207
                                 case 0:
@@ -213,7 +214,6 @@
213 214
                                     displayValue = convertFromPounds(displayValue, "oz");
214 215
                                     break;
215 216
                             }
216
-                            var bagCount = (displayValue / bagConversion).toFixed(2);
217 217
                             displayValue = "" + displayValue + " (" + bagCount + " bags)";
218 218
                             if(table.data(r, 2, 0) != displayValue)
219 219
                             {

Loading…
Cancel
Save