3.0.0.4 Portal Commodity Sales properties. Control Index population.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user