www/js/prod_archive_name.js

changeset 292
90cd3798edc2
parent 290
12aa92828e24
child 468
371f2da785d9
--- a/www/js/prod_archive_name.js	Sun Feb 24 23:26:51 2019 +0100
+++ b/www/js/prod_archive_name.js	Mon Feb 25 13:27:41 2019 +0100
@@ -29,7 +29,10 @@
 			{ name: 'record', type: 'number' },
 			{ name: 'name', type: 'string' },
 			{ name: 'code', type: 'string' },
-			{ name: 'birth', type: 'string' },
+			{ name: 'date', type: 'string' },
+			{ name: 'style', type: 'string' },
+			{ name: 'og', type: 'float' },
+			{ name: 'fg', type: 'float' },
 			{ name: 'batch_size', type: 'float' },
 		],
 		id: 'record',
@@ -44,10 +47,13 @@
 		theme: theme,
 		columns: [
 			{ text: 'Naam', datafield: 'name' },
-			{ text: 'Datum', datafield: 'birth', width: 120 },
-			{ text: 'Code', datafield: 'code', width: 120 },
-			{ text: 'Liters', datafield: 'batch_size', width: 110, align: 'right', cellsalign: 'right', cellsformat: 'f1' },
-			{ text: '', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () {
+			{ text: 'Stijl', datafield: 'style', width: 250 },
+			{ text: 'OG', datafield: 'og', width: 80, cellsformat: 'f3' },
+			{ text: 'FG', datafield: 'fg', width: 80, cellsformat: 'f3' },
+			{ text: 'Datum', datafield: 'date', width: 120 },
+			{ text: 'Code', datafield: 'code', width: 100 },
+			{ text: 'Liters', datafield: 'batch_size', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' },
+			{ text: '', datafield: 'Edit', width: 80, align: 'center', columntype: 'button', cellsrenderer: function () {
 				return "Bekijk";
 				}, buttonclick: function (row) {
 					var datarecord = dataAdapter.records[row];

mercurial