Fix local-download failures for quotation files
Regenerate the quotation when the app refuses an empty file, re-trigger exports from inside the app, and check the browser's download permissions for the site.
Quotation CSVs and PDFs are produced inside the app's in-browser filesystem and handed to the browser as a normal download, followed by a 'Successfully downloaded files' toast. If the generated file exists but is empty, the app refuses with the error toast 'Cannot download empty content' — usual causes are an empty quotation table (nothing priced under the current scope/filters) or generation that aborted midway; regenerate the quotation and retry. Two follow-on gotchas: (1) after a successful download the temporary file is deleted from the in-app filesystem and the blob URL is revoked immediately, so using the browser's own 'retry download' on that entry will fail — the export must be re-triggered from inside the app; (2) downloads are fired via a simulated link click, so aggressive browser download-blocking settings can swallow the file while the app still shows success; have the client check the browser's download permissions for the site. For XLSX exports the filename is pricing_quotation.xlsx, or an auto-generated output-<timestamp>-<random>.xlsx when no name is supplied by the engine.
When an XLSX quotation download fails, the CSV and PDF quotation exports are separate in-browser actions and can still be downloaded.
CSV output omits images, so it is not a substitute when pictures are required.
✓ Verificato nel prodotto il 19 ottobre 2026