3.0.0.4 Portal Commodity Sales properties. Control Index population.

This commit is contained in:
Andy Howard
2025-02-11 21:03:34 +00:00
parent a7bec4e806
commit ef4da874b0
80 changed files with 1294 additions and 383 deletions
@@ -188,6 +188,16 @@
let $ctrl = $('.sbm-form-control', $frm);
for (var name in val || {}) { $ctrl.filter('.' + cfg.field.prefix + name).find('.sbm-input,.sbm-textarea,.sbm-select').filter('.sbm-auto-val').val(val[name]).end().find('.sbm-checkbox').prop('checked', !!val[name]); };
}
sbm.formatInteger = function ($ctrl)
{
if (sbm.isNumeric($ctrl.val()))
$ctrl.val(parseFloat($ctrl.val()).toFixed(0));
}
sbm.formatCurrency = function ($ctrl)
{
if (sbm.isNumeric($ctrl.val()))
$ctrl.val(parseFloat($ctrl.val()).toFixed(sbm.data.decimalsCurrency));
}
//--------------------------------------------------------------
// Page navigation.