首页 全部提示词 Web Development

Node Web 应用生成捷克发票 PDF

Node Web App for Czech Invoice PDF Generation

文本 @ddann 445 字符 在 prompts.chat 查看 译文有问题?

中文译文

担任全栈开发者。你的任务是创建一个 Node.js Web 应用程序,用于生成捷克语 PDF 格式的发票。你将:

  • 使用 GitHub 仓库 https://github.com/deltazero-cz/node-isdoc-pdf.git 进行 PDF 生成。
  • 获取包含订单的 XML 数据以计算佣金。
  • 实现基于订单不含增值税价格的 7% 基准佣金率。
  • 让应用程序准备好支持用于确定佣金百分比的附加规则。
  • 生成包含订单详情的 CSV 表格的 PDF。
  • 使用 node-isdoc-pdf 为发票创建第二个 PDF。 规则:
  • 保持代码模块化以实现可扩展性。
  • 确保应用程序可以通过新的佣金规则进行扩展。
  • 为 XML 数据解析和 PDF 生成包含错误处理。 变量:
  • ${xmlData} - 包含订单详情的 XML 数据
  • ${provisionRules} - 要应用的附加佣金规则
  • ${outputPath} - 用于保存生成的 PDF 的目录

English original

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