From 6c78a282fe1b7b802572e25b95afc3b2ad45001b Mon Sep 17 00:00:00 2001 From: El Mau Date: Sun, 17 Apr 2022 16:01:05 -0500 Subject: [PATCH] =?UTF-8?q?Agregar=20periodicidad=20en=20UI=20para=20factu?= =?UTF-8?q?ra=20del=20d=C3=ADa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/static/js/ui/tickets.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/static/js/ui/tickets.js b/source/static/js/ui/tickets.js index e5407e6..66eeaa6 100644 --- a/source/static/js/ui/tickets.js +++ b/source/static/js/ui/tickets.js @@ -233,9 +233,21 @@ var cells_new_ticket = [ ] +var opt_periodicidad = [ + {id: '01', value: '[01] Diario'}, + {id: '02', value: '[02] Semanal'}, + {id: '03', value: '[03] Quincenal'}, + {id: '04', value: '[04] Mensual'}, + {id: '05', value: '[05] Bimestral'}, +] + + var toolbar_ticket_invoice = {view: 'toolbar', elements: [{}, {view: 'checkbox', id: 'chk_is_invoice_day', labelWidth: 0, width: 150, - labelRight: 'Es factura del día'}, {}, + labelRight: 'Es factura del día'}, + {view: 'richselect', id: 'lst_periodicidad', labelWidth: 90, width: 400, + label: 'Periodicidad:', options: opt_periodicidad, value: '01'}, + {}, {view: 'button', id: 'cmd_close_ticket_invoice', label: 'Cerrar', type: 'danger', autowidth: true, align: 'center'} ]}