mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
añadido facturas. faltan filtros pedidos
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import ClassSelect from '../../components/select2.js';
|
||||
import tarifasClienteView from './tarifasCliente.js';
|
||||
import ClienteUsuarios from './clienteUsuarios.js';
|
||||
import ClienteFacturacion from './clienteFacturacion.js';
|
||||
import ClientePedidos from './clientePedidos.js';
|
||||
|
||||
import Ajax from '../../components/ajax.js';
|
||||
|
||||
@ -23,6 +25,13 @@ class Cliente {
|
||||
|
||||
init() {
|
||||
|
||||
AutoNumeric.multiple('.autonumeric-currency-totales',
|
||||
{ decimalPlaces: 2,
|
||||
currencySymbol: '€',
|
||||
currencySymbolPlacement: 's',
|
||||
digitGroupSeparator: '.',
|
||||
decimalCharacter: ',' });
|
||||
|
||||
// Fuerza el foco en el campo de búsqueda de select2
|
||||
$(document).on('select2:open', () => {
|
||||
document.querySelector('.select2-search__field').focus();
|
||||
@ -55,12 +64,16 @@ class Cliente {
|
||||
}
|
||||
});
|
||||
|
||||
(new ClienteFacturacion()).init();
|
||||
(new ClientePedidos()).init();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
|
||||
const dropdown = document.querySelector(".dropdown-language");
|
||||
const activeItem = dropdown.querySelector(".dropdown-menu .dropdown-item");
|
||||
let locale = 'es';
|
||||
@ -68,7 +81,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
locale = activeItem.getAttribute("data-language");
|
||||
}
|
||||
|
||||
new Ajax('/translate/getTranslation', { locale: locale, translationFile: ['ClienteContactos', 'ClientePrecios'] }, {},
|
||||
new Ajax('/translate/getTranslation', { locale: locale, translationFile: ['ClienteContactos', 'ClientePrecios', 'datePicker'] }, {},
|
||||
function(translations) {
|
||||
window.language = JSON.parse(translations);
|
||||
new Cliente().init();
|
||||
|
||||
Reference in New Issue
Block a user