forked from verdnatura/salix-front
feat: minor fixes
This commit is contained in:
parent
91164da2eb
commit
c2e2d5ca81
|
@ -38,6 +38,7 @@ const { openConfirmationModal } = useVnConfirm();
|
||||||
const quasar = useQuasar();
|
const quasar = useQuasar();
|
||||||
const salixUrl = ref();
|
const salixUrl = ref();
|
||||||
const invoiceFormType = ref('pdf');
|
const invoiceFormType = ref('pdf');
|
||||||
|
const defaultEmailAddress = ref($props.invoiceOutData.client?.email);
|
||||||
|
|
||||||
const showInvoicePdf = () => {
|
const showInvoicePdf = () => {
|
||||||
const url = `api/InvoiceOuts/${$props.invoiceOutData.id}/download?access_token=${token}`;
|
const url = `api/InvoiceOuts/${$props.invoiceOutData.id}/download?access_token=${token}`;
|
||||||
|
@ -54,6 +55,12 @@ const showSendInvoiceDialog = (type) => {
|
||||||
invoiceFormType.value = type;
|
invoiceFormType.value = type;
|
||||||
quasar.dialog({
|
quasar.dialog({
|
||||||
component: SendEmailDialog,
|
component: SendEmailDialog,
|
||||||
|
componentProps: {
|
||||||
|
data: {
|
||||||
|
address: defaultEmailAddress.value,
|
||||||
|
},
|
||||||
|
promise: sendEmailInvoice,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -264,7 +271,6 @@ es:
|
||||||
With warehouse, no invoice: Con almacén, sin factura
|
With warehouse, no invoice: Con almacén, sin factura
|
||||||
Without warehouse, no invoice: Sin almacén, sin factura
|
Without warehouse, no invoice: Sin almacén, sin factura
|
||||||
Invoiced: Facturado
|
Invoiced: Facturado
|
||||||
Without warehouse: Sin almacén
|
|
||||||
InvoiceOut deleted: Factura eliminada
|
InvoiceOut deleted: Factura eliminada
|
||||||
Confirm deletion: Confirmar eliminación
|
Confirm deletion: Confirmar eliminación
|
||||||
Are you sure you want to delete this invoice?: Estas seguro de eliminar esta factura?
|
Are you sure you want to delete this invoice?: Estas seguro de eliminar esta factura?
|
||||||
|
|
Loading…
Reference in New Issue