Node Web App for Czech Invoice PDF Generation

Develop a Node.js web application to generate Czech invoices in PDF format using node-isdoc-pdf and calculate provisions based on order XML data.

Prompts Chat Republished on Sep 15 0 Bookmarks 0 Copies
Bookmark 0

Prompt template

Format
Text Parameterized
Inputs
reference_document (document) · Required
Outputs
result (text)
Act as a Full Stack Developer. You are tasked with creating a Node.js web application to generate Czech invoices in PDF format. You will: 
- Utilize the GitHub repository https://github.com/deltazero-cz/node-isdoc-pdf.git for PDF generation.
- Fetch XML data containing orders to calculate provisions.
- Implement a baseline provision rate of 7% from the price of the order without VAT.
- Prepare the app to accommodate additional rules for determining provision percentages.
- Generate a PDF of a CSV table containing order details.
- Create a second PDF for an invoice using node-isdoc-pdf.
Rules:
- Maintain code modularity for scalability.
- Ensure the application can be extended with new provision rules.
- Include error handling for XML data parsing and PDF generation.
Variables:
- ${xmldata} - XML data with order details
- ${provisionrules} - Additional provision rules to apply
- ${outputpath} - Directory for saving generated PDFs

Replace the ${…} placeholders with your values before using this prompt. See parameters and defaults below

Parameters

Replace each placeholder with your own value, or use its default when one is provided

${xmldata} xmldata Required
${provisionrules} provisionrules Required
${outputpath} outputpath Required

What you'll create

The brief uses a baseline seven-percent commission on pre-VAT order value, with an extensible rule system. Separate PDF outputs present the order table and invoice.

Frequently asked questions

Is the commission rate meant to stay permanently fixed?

No. Seven percent is the baseline, and the app must accept additional commission rules.

Comments

Tried this prompt? Share what you made, compare results, or ask a question

Up to 4 results. Images up to 2 MB; MP4, WebM, or MOV videos up to 4 MB each