www/js/inv_fermentables.js

changeset 785
aa79acfdf8a9
parent 767
08c0343b622b
--- a/www/js/inv_fermentables.js	Sun Feb 06 20:06:46 2022 +0100
+++ b/www/js/inv_fermentables.js	Thu Feb 10 22:15:10 2022 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2014-2021
+ * Copyright (C) 2014-2022
  *
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -55,6 +55,7 @@
   cache: false,
   datafields: [
    { name: 'record', type: 'number' },
+   { name: 'uuid', type: 'string' },
    { name: 'name', type: 'string' },
    { name: 'type', type: 'string' },
    { name: 'yield', type: 'float' },
@@ -230,6 +231,7 @@
     editrow = -1;
     $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
     $('#name').val('Nieuw product');
+    dataRecord.uuid = '';
     $('#type').val('Mout');
     $('#origin').val('');
     $('#supplier').val('');
@@ -369,6 +371,7 @@
   var row = {
    record: -1,
    name: $('#name').val() + ' kopie',
+   uuid: '',
    type: $('#type').val(),
    yield: parseFloat($('#yield').jqxNumberInput('decimal')),
    color: parseFloat($('#color').jqxNumberInput('decimal')),
@@ -406,6 +409,7 @@
   row = {
    record: rowID,
    name: $('#name').val(),
+   uuid: dataRecord.uuid,
    type: $('#type').val(),
    yield: parseFloat($('#yield').jqxNumberInput('decimal')),
    color: parseFloat($('#color').jqxNumberInput('decimal')),

mercurial