Parcourir la source

Fix bag calculation when non-pound units are selected

Neal Wilson il y a 10 ans
Parent
révision
3c7b18f0a7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      config/Windows/newbatch.xml

+ 1
- 1
config/Windows/newbatch.xml Voir le fichier

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

Chargement…
Annuler
Enregistrer