From 17e035839a19a8b10d329c28ccaa44ff608d3a33 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 6 Sep 2025 17:52:54 +0200 Subject: peppol file generation work --- include/file_templates.hpp | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'include/file_templates.hpp') diff --git a/include/file_templates.hpp b/include/file_templates.hpp index 3559fbe..de3f509 100644 --- a/include/file_templates.hpp +++ b/include/file_templates.hpp @@ -19,7 +19,7 @@ const char* taxbracket_save_template = " {{TAXBRACKET_ID}}\n" " {{TAXBRACKET_COUNTRY}}\n" " {{TAXBRACKET_RATE}}\n" -" {{TAXBRACKET_DESCRIPTION}}\n" +" {{TAXBRACKET_CATEGORY}}\n" "\n"; const char* contact_save_template = @@ -62,6 +62,26 @@ const char* peppol_invoice_tax_subtotal_template = " \n" " \n"; +const char* peppol_invoice_line_template = +" \n" +" {{LINE_ID}}\n" +" {{QUANTITY}}\n" +" {{LINE_AMOUNT}}\n" +" \n" +" {{ITEM_NAME}}\n" +" \n" +" {{LINE_TAX_CATEGORY}}\n" +" {{LINE_TAX_PERCENT}}\n" +" \n" +" VAT\n" +" \n" +" \n" +" \n" +" \n" +" {{UNIT_PRICE}}\n" +" \n" +" \n"; + const char *peppol_invoice_template = /*"\n"*/ "{{PAYABLE_AMOUNT}}\n" " \n" "\n" -" \n" -" {{LINE_ID}}\n" -" {{QUANTITY}}\n" -" {{LINE_AMOUNT}}\n" -" \n" -" {{ITEM_DESCRIPTION}}\n" -" {{ITEM_NAME}}\n" -" \n" -" {{LINE_TAX_CATEGORY}}\n" -" {{LINE_TAX_PERCENT}}\n" -" \n" -" VAT\n" -" \n" -" \n" -" \n" -" \n" -" {{UNIT_PRICE}}\n" -" \n" -" \n" +" {{INVOICE_LINE_LIST}}" "\n" "\n"; -- cgit v1.2.3-70-g09d2