InvoiceOut PDF download fix
This commit is contained in:
parent
4f0a54329a
commit
6c57220703
|
@ -53,7 +53,7 @@ class Controller {
|
|||
}
|
||||
|
||||
showInvoiceOutPdf() {
|
||||
let url = `InvoiceOuts/${this.invoiceOut.id}/download?access_token=${this.accessToken}`;
|
||||
let url = `api/InvoiceOuts/${this.invoiceOut.id}/download?access_token=${this.accessToken}`;
|
||||
window.open(url, '_blank');
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ export default class Controller {
|
|||
}
|
||||
|
||||
openPdf(id, event) {
|
||||
let url = `InvoiceOuts/${id}/download?access_token=${this.accessToken}`;
|
||||
let url = `api/InvoiceOuts/${id}/download?access_token=${this.accessToken}`;
|
||||
window.open(url, '_blank');
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
|
|
Loading…
Reference in New Issue