# HG changeset patch # User Michiel Broek # Date 1572342248 -3600 # Node ID f3faa54581ff45caab47edd78589434865b8c0e5 # Parent c062eb0dd7ce73f2bd122160690af7558befa2ad Better way to show splitted batches. Added flameout calculations to the php scripts. diff -r c062eb0dd7ce -r f3faa54581ff www/includes/formulas.php --- a/www/includes/formulas.php Mon Oct 28 20:52:17 2019 +0100 +++ b/www/includes/formulas.php Tue Oct 29 10:44:08 2019 +0100 @@ -235,11 +235,19 @@ } $whirlibus = 0; - if ($useat == 4) { // Any whirlpool - if ($whirlpool9) + if ($useat == 3 || $useat == 4) { // Flameout or any whirlpool + if ($whirlpool9) { $whirlibus += ($mass * ($alpha / 100) * 20) / $volume * $whirlpool9 / 50; - if ($whirlpool7) + } else { + if ($useat == 3) // Flameout hops are 2 minutes in this range. + $whirlibus += ($mass * ($alpha / 100) * 20) / $volume * (2 / 50); + } + if ($whirlpool7) { $whirlibus += ($mass * ($alpha / 100) * 6) / $volume * $whirlpool7 / 50; + } else { + if ($useat == 3) // Flameout hops are 4 minutes in this range. + $whirlibus += ($mass * ($alpha / 100) * 6) / $volume * (4 / 50); + } if ($whirlpool6) $whirlibus += ($mass * ($alpha / 100) * 2) / $volume * $whirlpool6 / 50; } diff -r c062eb0dd7ce -r f3faa54581ff www/js/prod_edit.js --- a/www/js/prod_edit.js Mon Oct 28 20:52:17 2019 +0100 +++ b/www/js/prod_edit.js Tue Oct 29 10:44:08 2019 +0100 @@ -536,9 +536,10 @@ $('#prop4_type').val(dataRecord.prop4_type); $('#prop4_volume').val(dataRecord.prop4_volume); $('#divide_type').val(SplitData[dataRecord.divide_type].nl); + $('#divide_batch').val((dataRecord.divide_part + 1) + ' / ' + (dataRecord.divide_parts + 1)); // hidden divide_size // hidden divide_factor - $('#divide_parts').val(dataRecord.divide_parts); + // hidden divide_parts // hidden divide_part editFermentable(dataRecord); editHop(dataRecord); @@ -4475,8 +4476,8 @@ calcStage(); } }); - $('#divide_parts').jqxTooltip({ content: 'Het aantal extra gesplitste brouw producten.' }); - $('#divide_parts').jqxNumberInput(Show0dec); + $('#divide_batch').jqxTooltip({ content: 'Het aantal extra gesplitste batches.' }); + $('#divide_batch').jqxInput({ theme: theme, width: 120, height: 23 }); $('#divide_type').jqxTooltip({ content: 'Het splitsing moment in het productie proces.' }); $('#divide_type').jqxInput({ theme: theme, width: 120, height: 23 }); diff -r c062eb0dd7ce -r f3faa54581ff www/prod_edit.php --- a/www/prod_edit.php Mon Oct 28 20:52:17 2019 +0100 +++ b/www/prod_edit.php Tue Oct 29 10:44:08 2019 +0100 @@ -37,10 +37,10 @@ - Splits aantal: -
- Splits moment: + Splits product: + Gesplitst product: + Splits focus: