diff --git a/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php b/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php index 8a389610..163f500d 100644 --- a/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php +++ b/ci4/app/Views/themes/vuexy/form/configuracion/maquinas/viewMaquinaForm.php @@ -543,7 +543,7 @@ return ''; } }, - { 'data': 'precio',render : (d) => `${d}` }, + { 'data': 'precio',render : (d) => `${d}` }, { 'data': 'margen',render : (d) => `${d}` }, { data: actionBtns, diff --git a/httpdocs/assets/js/safekat/common/common.js b/httpdocs/assets/js/safekat/common/common.js index d9400854..e9a877f2 100644 --- a/httpdocs/assets/js/safekat/common/common.js +++ b/httpdocs/assets/js/safekat/common/common.js @@ -26,6 +26,19 @@ export const initAutonumeric = () => { }); } }) + $("span.autonumeric-decimal").each(function () { + let autoNumericInstance = AutoNumeric.getAutoNumericElement(this) + if (!autoNumericInstance) { + new AutoNumeric(this, { + digitGroupSeparator: ".", + decimalCharacter: ",", + allowDecimalPadding : 'floats', + decimalPlaces: $(this).data('decimal-places'), + unformatOnSubmit: true, + + }); + } + }) // $(':input[type="number"]').each(function(){ // $(this).attr('type','text') // let autoNumericInstance = AutoNumeric.getAutoNumericElement(this)