fix: enhance invoice download and electronic invoice processing
- Introduced a new JS script block in
download.phpwhich gets triggered when user session is not valid or on missing parametersinvoiceortype. -
Dialog.jshas been modified to change how invoices are downloaded. Instead of creating an invisible iframe, now it leverages fetch API and download.js to get the invoice and proceed downloading. - Corrected indentation of the text and button image in the dialog box of the invoice download.
-
Invoice.phpupdated to include a new check for net value invoices. Adds articles to theZugferdDocumentBuilderand calculates VAT based on the detected invoice type (net or gross). This ensures accurate electronic invoices.