Fixed mixed water calculation and ratio change.

Sun, 06 Feb 2022 20:06:46 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sun, 06 Feb 2022 20:06:46 +0100
changeset 784
d51b05838ac4
parent 783
006078146107
child 785
aa79acfdf8a9

Fixed mixed water calculation and ratio change.

www/js/prod_edit.js file | annotate | diff | comparison | revisions
--- a/www/js/prod_edit.js	Mon Nov 01 10:29:36 2021 +0100
+++ b/www/js/prod_edit.js	Sun Feb 06 20:06:46 2022 +0100
@@ -4059,8 +4059,7 @@
   calcWater();
   $('#w2_amount').on('change', function(event) {
    var newval = parseFloat(event.args.value);
-
-   if (newval > mash_infuse) {
+   if (newval > parseFloat($('#wg_amount').jqxNumberInput('decimal'))) {
     $('#w2_amount').val(dataRecord.w2_amount);
     return;
    }

mercurial