www/js/inv_fermentables.js

changeset 30
f5ab22446aa5
parent 18
395833e20f88
child 34
a720353fada9
--- a/www/js/inv_fermentables.js	Sat Aug 18 23:13:07 2018 +0200
+++ b/www/js/inv_fermentables.js	Sun Aug 19 15:36:13 2018 +0200
@@ -200,15 +200,15 @@
 		filtermode: 'excel',
 		columns: [
 			{ text: 'Vergistbaar product', datafield: 'name', width: 250 },
-			{ text: 'Soort', datafield: 'type', width: 90 },
-			{ text: 'Mout type', datafield: 'graintype', width: 90 },
+			{ text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 90 },
+			{ text: 'Mout type', datafield: 'graintype', align: 'center', cellsalign: 'center', width: 90 },
 			{ text: 'Herkomst', datafield: 'origin', width: 150 },
 			{ text: 'Producent', datafield: 'supplier', width: 150 },
-			{ text: 'Kleur', datafield: 'color', width: 70, cellsalign: 'right' },
-			{ text: 'Opbrengst', datafield: 'yield', width: 70, cellsalign: 'right' },
-			{ text: 'Inv.', datafield: 'inventory', width: 70, cellsalign: 'right' },
-			{ text: 'Prijs', datafield: 'cost', width: 70, cellsalign: 'right', cellsformat: 'c2' },
-			{ text: 'Edit', datafield: 'Edit', width: 120, columntype: 'button', cellsrenderer: function () {
+			{ text: 'Kleur', datafield: 'color', width: 70, align: 'right', cellsalign: 'right' },
+			{ text: 'Opbrengst', datafield: 'yield', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
+			{ text: 'Vooraad', datafield: 'inventory', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'f3' },
+			{ text: 'Prijs', datafield: 'cost', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'c2' },
+			{ text: 'Edit', datafield: 'Edit', width: 120, align: 'center', columntype: 'button', cellsrenderer: function () {
 				return "Edit";
 				}, buttonclick: function (row) {
 					// open the popup window when the user clicks a button.

mercurial