www/js/inv_waters.js

changeset 206
b78e1111fc58
parent 205
08488ac3bbb1
child 245
3649c3d31d15
equal deleted inserted replaced
205:08488ac3bbb1 206:b78e1111fc58
190 { text: 'Water leverancier', datafield: 'name', width: 225 }, 190 { text: 'Water leverancier', datafield: 'name', width: 225 },
191 { text: 'Opmerkingen', datafield: 'notes' }, 191 { text: 'Opmerkingen', datafield: 'notes' },
192 { text: 'Onbeperkt', datafield: 'unlimited_stock', columntype: 'checkbox', width: 80 }, 192 { text: 'Onbeperkt', datafield: 'unlimited_stock', columntype: 'checkbox', width: 80 },
193 { text: 'Voorraad', datafield: 'inventory', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'f1', 193 { text: 'Voorraad', datafield: 'inventory', width: 100, align: 'right', cellsalign: 'right', cellsformat: 'f1',
194 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) { 194 cellsrenderer: function (index, datafield, value, defaultvalue, column, rowdata) {
195 195 if ((value == 0) || rowdata.unlimited_stock)
196 return "<div style='margin: 4px;' class='jqx-right-align'></div>";
197 return "<div style='margin: 4px;' class='jqx-right-align'>"+dataAdapter.formatNumber(value,"f1")+" L</div>";
196 } 198 }
197 }, 199 },
198 { text: 'Wijzig', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () { 200 { text: 'Wijzig', datafield: 'Edit', width: 100, align: 'center', columntype: 'button', cellsrenderer: function () {
199 return "Wijzig"; 201 return "Wijzig";
200 }, buttonclick: function (row) { 202 }, buttonclick: function (row) {

mercurial