浏览代码

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
                             {

正在加载...
取消
保存