253 name: $("#name").val(), |
253 name: $("#name").val(), |
254 code: $("#code").val(), |
254 code: $("#code").val(), |
255 birth: b, |
255 birth: b, |
256 stage: 0, |
256 stage: 0, |
257 notes: $("#notes").val(), |
257 notes: $("#notes").val(), |
258 log_brew: false, |
258 log_brew: 0, |
259 log_fermentation: false, |
259 log_fermentation: 0, |
260 inventory_reduced: false, |
260 inventory_reduced: 0, |
261 locked: false, |
261 locked: 0, |
262 eq_name: $("#eq_name").val(), |
262 eq_name: $("#eq_name").val(), |
263 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')), |
263 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')), |
264 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')), |
264 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')), |
265 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')), |
265 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')), |
266 eq_tun_weight: parseFloat($("#eq_tun_weight").jqxNumberInput('decimal')), |
266 eq_tun_weight: parseFloat($("#eq_tun_weight").jqxNumberInput('decimal')), |
284 eq_mash_max: parseFloat($("#eq_mash_max").jqxNumberInput('decimal')), |
284 eq_mash_max: parseFloat($("#eq_mash_max").jqxNumberInput('decimal')), |
285 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')), |
285 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')), |
286 brew_date_start: '', |
286 brew_date_start: '', |
287 brew_mash_ph: 0.0, |
287 brew_mash_ph: 0.0, |
288 brew_mash_sg: 1.000, |
288 brew_mash_sg: 1.000, |
|
289 brew_mash_efficiency: 0, |
289 brew_sparge_ph: 0.0, |
290 brew_sparge_ph: 0.0, |
|
291 brew_sparge_temperature: 85, |
|
292 brew_sparge_est: 0, |
290 brew_preboil_volume: 0, |
293 brew_preboil_volume: 0, |
291 brew_preboil_sg: 0, |
294 brew_preboil_sg: 0, |
292 brew_preboil_ph: 0.0, |
295 brew_preboil_ph: 0.0, |
|
296 brew_preboil_efficiency: 0, |
293 brew_aboil_volume: 0, |
297 brew_aboil_volume: 0, |
294 brew_aboil_sg: 0, |
298 brew_aboil_sg: 0, |
295 brew_aboil_ph: 0.0, |
299 brew_aboil_ph: 0.0, |
296 brew_aboil_efficiency: 0, |
300 brew_aboil_efficiency: 0, |
297 brew_cooling_method: 0, |
301 brew_cooling_method: 0, |
322 primary_end_date: '', |
326 primary_end_date: '', |
323 secondary_temp: 0, |
327 secondary_temp: 0, |
324 secondary_end_date: '', |
328 secondary_end_date: '', |
325 tertiary_temp: 0, |
329 tertiary_temp: 0, |
326 package_date: '', |
330 package_date: '', |
|
331 package_volume: 0, |
|
332 package_infuse_amount: 0, |
|
333 package_infuse_abv: 0, |
|
334 package_infuse_notes: '', |
|
335 package_abv: 0, |
|
336 package_ph: 0, |
327 bottle_amount: 0, |
337 bottle_amount: 0, |
328 bottle_carbonation: 0, |
338 bottle_carbonation: 0, |
329 bottle_priming_sugar: 0, |
339 bottle_priming_water: 0, |
330 bottle_priming_amount: 0, |
340 bottle_priming_amount: 0, |
331 bottle_carbonation_temp: 23, |
341 bottle_carbonation_temp: 23, |
332 keg_amount: 0, |
342 keg_amount: 0, |
333 keg_carbonation: 0, |
343 keg_carbonation: 0, |
334 keg_priming_sugar: 0, |
344 keg_priming_water: 0, |
335 keg_priming_amount: 0, |
345 keg_priming_amount: 0, |
336 keg_carbonation_temp: 23, |
346 keg_carbonation_temp: 23, |
337 keg_forced_carb: false, |
347 keg_forced_carb: 1, |
338 keg_pressure: 0, |
348 keg_pressure: 0, |
339 taste_notes: '', |
349 taste_notes: '', |
340 taste_rate: 0, |
350 taste_rate: 0, |
341 taste_date: '', |
351 taste_date: '', |
342 taste_color: '', |
352 taste_color: '', |
384 sparge_ph: 5.8, |
394 sparge_ph: 5.8, |
385 sparge_source: 0, |
395 sparge_source: 0, |
386 sparge_acid_type: 0, |
396 sparge_acid_type: 0, |
387 sparge_acid_perc: 80, |
397 sparge_acid_perc: 80, |
388 sparge_acid_amount: 0, |
398 sparge_acid_amount: 0, |
389 calc_acid: true, |
399 calc_acid: 1, |
390 w1_name: 'Tap water', |
400 w1_name: 'Tap water', |
391 w1_amount: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), |
401 w1_amount: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), |
392 w1_calcium: 0, |
402 w1_calcium: 0, |
393 w1_sulfate: 0, |
403 w1_sulfate: 0, |
394 w1_chloride: 0, |
404 w1_chloride: 0, |
397 w1_total_alkalinity: 0, |
407 w1_total_alkalinity: 0, |
398 w1_ph: 7.0, |
408 w1_ph: 7.0, |
399 w1_cost: 0.0, |
409 w1_cost: 0.0, |
400 wa_acid_name: 0, // Lactic acid |
410 wa_acid_name: 0, // Lactic acid |
401 wa_acid_perc: 80, |
411 wa_acid_perc: 80, |
402 wa_base_name: 0 |
412 wa_base_name: 0, |
403 |
413 wg_amount: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), |
|
414 wg_calcium: 0, |
|
415 wg_sulfate: 0, |
|
416 wg_chloride: 0, |
|
417 wg_sodium: 0, |
|
418 wg_magnesium: 0, |
|
419 wg_total_alkalinity: 0, |
|
420 wg_ph: 7.0, |
|
421 wb_calcium: 0, |
|
422 wb_sulfate: 0, |
|
423 wb_sodium: 0, |
|
424 wb_chloride: 0, |
|
425 wb_magnesium: 0, |
|
426 wb_total_alkalinity: 0, |
|
427 wb_ph: 0, |
|
428 starter_enable: 0 |
404 }; |
429 }; |
405 var data = "insert=true&return=" + my_return + "&" + $.param(newrow); |
430 var data = "insert=true&return=" + my_return + "&" + $.param(newrow); |
406 $.ajax({ |
431 $.ajax({ |
407 dataType: 'json', |
432 dataType: 'json', |
408 url: "includes/db_product.php", |
433 url: "includes/db_product.php", |