瀏覽代碼

Fix bag calculation when non-pound units are selected

Neal Wilson 10 年之前
父節點
當前提交
3c7b18f0a7
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      config/Windows/newbatch.xml

+ 1
- 1
config/Windows/newbatch.xml 查看文件

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
                             {

Loading…
取消
儲存