fix: manejado error si no se selecciona una empresa
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
3e920e6a2f
commit
020068006c
|
@ -41,6 +41,7 @@ class Controller extends Section {
|
||||||
|
|
||||||
restartValues() {
|
restartValues() {
|
||||||
this.$.invoiceButton.disabled = false;
|
this.$.invoiceButton.disabled = false;
|
||||||
|
this.packageInvoicing = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cancelRequest() {
|
cancelRequest() {
|
||||||
|
@ -96,6 +97,9 @@ class Controller extends Section {
|
||||||
if (!this.invoice.fromClientId || !this.invoice.toClientId)
|
if (!this.invoice.fromClientId || !this.invoice.toClientId)
|
||||||
throw new Error('Choose a valid clients range');
|
throw new Error('Choose a valid clients range');
|
||||||
|
|
||||||
|
if (!this.invoice.companyFk)
|
||||||
|
throw new Error('Choose a valid company');
|
||||||
|
|
||||||
this.$.invoiceButton.disabled = true;
|
this.$.invoiceButton.disabled = true;
|
||||||
this.$.data = [];
|
this.$.data = [];
|
||||||
this.packageInvoicing = true;
|
this.packageInvoicing = true;
|
||||||
|
|
|
@ -3,6 +3,7 @@ Max date: Fecha límite
|
||||||
Invoice date: Fecha de factura
|
Invoice date: Fecha de factura
|
||||||
Invoice date and the max date should be filled: La fecha de factura y la fecha límite deben rellenarse
|
Invoice date and the max date should be filled: La fecha de factura y la fecha límite deben rellenarse
|
||||||
Choose a valid clients range: Selecciona un rango válido de clientes
|
Choose a valid clients range: Selecciona un rango válido de clientes
|
||||||
|
Choose a valid company: Selecciona un empresa válida
|
||||||
Clients range: Rango de clientes
|
Clients range: Rango de clientes
|
||||||
All clients: Todos los clientes
|
All clients: Todos los clientes
|
||||||
Calculating packages to invoice...: Calculando paquetes a facturar...
|
Calculating packages to invoice...: Calculando paquetes a facturar...
|
||||||
|
|
Loading…
Reference in New Issue