From 34a229a05306eec37482c6f938d962da1b3fcf2c Mon Sep 17 00:00:00 2001 From: skyanth Date: Fri, 30 Sep 2016 16:59:35 +0200 Subject: [PATCH] Localized invoices --- xml/dtd/invoice.xsd | 8 ++- xml/source/snippets/localisationstrings.xml | 62 +++++++++++++++++++++ xml/xslt/generate_invoice.xsl | 54 +++++++++--------- xml/xslt/generate_offerte.xsl | 3 +- xml/xslt/off2inv.xsl | 9 ++- xml/xslt/qs2offerte.xsl | 4 +- 6 files changed, 107 insertions(+), 33 deletions(-) diff --git a/xml/dtd/invoice.xsd b/xml/dtd/invoice.xsd index b368dde..71c7e27 100644 --- a/xml/dtd/invoice.xsd +++ b/xml/dtd/invoice.xsd @@ -14,13 +14,15 @@ + - + - - + + + diff --git a/xml/source/snippets/localisationstrings.xml b/xml/source/snippets/localisationstrings.xml index 1bc2b2f..d80498a 100644 --- a/xml/source/snippets/localisationstrings.xml +++ b/xml/source/snippets/localisationstrings.xml @@ -35,6 +35,68 @@ Kamer van Koophandel Chamber of Commerce + + Factuur nr. + Invoice no. + + + T.a.v. + F.a.o. + + + Geleverde diensten + Services delivered + + + daagse + day + + + BTW + VAT + + + BTW-nummer + VAT number + + + Extra gemaakte kosten + Additional expenses + + + Totaal te betalen + Total amount to be paid + + + doneert > 90% van haar totale winst aan goede doelen. + donates > 90% of its entire profits to + charity. + + + Maak binnen 30 dagen het totale bedrag over op de volgende rekening: + Please be so kind to pay within 30 days + by money transfer, to the following account: + + + IBAN + IBAN + + + Referentie + Reference + + + Met vriendelijke groet + Kind regards + + + uw team bij + your dedicated team at + + + Spaar papier — niet afdrukken tenzij absoluut noodzakelijk. Lees onze (unieke) voorwaarden op: https://radicallyopensecurity.com/TermsandConditions.pdf + Please keep digital unless absolutely required. Read the (unique) terms and conditions of Radically Open Security at: https://radicallyopensecurity.com/TermsandConditions.pdf + Over About diff --git a/xml/xslt/generate_invoice.xsl b/xml/xslt/generate_invoice.xsl index 15ad398..91bd179 100644 --- a/xml/xslt/generate_invoice.xsl +++ b/xml/xslt/generate_invoice.xsl @@ -21,9 +21,11 @@ --> + + @@ -60,8 +62,9 @@ - - $ + + £ + $ @@ -75,7 +78,8 @@ - -day   + - +     .-- @@ -83,7 +87,7 @@ - VAT 21% + 21%  .-- @@ -91,7 +95,7 @@ - Total amount to be paid +  .-- @@ -108,8 +112,9 @@ - - $ + $ + + £ @@ -135,7 +140,7 @@ - Additional Expenses +   @@ -163,7 +168,7 @@ - VAT 21% + 21%  .-- @@ -171,7 +176,7 @@ - Total amount to be paid +  .-- @@ -188,14 +193,14 @@ - Invoice nr.   - T.a.v.   @@ -215,27 +220,26 @@ - Services Delivered + donates > 90% of its entire profits to - charity. - Please be so kind to pay within 30 days - by money transfer, to the following account: + select="/*/meta/company/full_name"/>  + - IBAN: - Reference: + + : + : - Kind regards, - your dedicated team at + , + @@ -285,8 +289,8 @@ - Chamber of Commerce - VAT number +   +   @@ -302,12 +306,12 @@ - Please keep digital unless absolutely required. Read the (unique) terms and conditions of Radically Open Security at: https://radicallyopensecurity.com/TermsandConditions.pdf + - Please keep digital unless absolutely required. Read the (unique) terms and conditions of Radically Open Security at: https://radicallyopensecurity.com/TermsandConditions.pdf + diff --git a/xml/xslt/generate_offerte.xsl b/xml/xslt/generate_offerte.xsl index be74545..f00ddd5 100644 --- a/xml/xslt/generate_offerte.xsl +++ b/xml/xslt/generate_offerte.xsl @@ -18,8 +18,7 @@ - + diff --git a/xml/xslt/off2inv.xsl b/xml/xslt/off2inv.xsl index 18f23ba..ffaacc4 100644 --- a/xml/xslt/off2inv.xsl +++ b/xml/xslt/off2inv.xsl @@ -3,11 +3,15 @@ xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fo="http://www.w3.org/1999/XSL/Format" exclude-result-prefixes="xs" version="2.0"> + + 00/000 + + @@ -22,6 +26,9 @@ + + + @@ -37,7 +44,7 @@ -day -   diff --git a/xml/xslt/qs2offerte.xsl b/xml/xslt/qs2offerte.xsl index 9a9b339..180937e 100644 --- a/xml/xslt/qs2offerte.xsl +++ b/xml/xslt/qs2offerte.xsl @@ -90,10 +90,10 @@ please choose one of the following: black-box, grey-box, crystal-box - + - (euro|dollar) + (eur|usd|gbp) name of application/service to be tested (if any; if none, DELETE target_application element)