From be39499f65e100195779cdb6afaa0fa2b9952b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 7 Sep 2017 18:52:34 +0200 Subject: [PATCH] Fix chained set_lang call in report issue6548 review35601002 --- invoice.fodt | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/invoice.fodt b/invoice.fodt index 3fcdfdb701..562cb0fca0 100644 --- a/invoice.fodt +++ b/invoice.fodt @@ -1,7 +1,7 @@ - LibreOffice/5.2.7.2$Linux_X86_64 LibreOffice_project/20m0$Build-22012-11-15T15:00:351P0D + LibreOffice/5.2.7.2$Linux_X86_64 LibreOffice_project/20m0$Build-22012-11-15T15:00:351P0D 0 @@ -13,8 +13,8 @@ view2 - 2925 - 4327 + 14205 + 5313 0 0 23439 @@ -69,7 +69,7 @@ false false true - 2015888 + 2030783 false true false @@ -514,14 +514,22 @@ - + + + + + - + + + + + - + @@ -573,7 +581,10 @@ - <set_lang(invoice.party.lang and invoice.party.lang.code or 'en')><invoice.set_lang(invoice.party.lang and invoice.party.lang.code or 'en')><for each="line in invoice.invoice_address.full_address.split('\n')"> + <for each="invoice in records"> + <replace text:p="set_lang(invoice.party.lang and invoice.party.lang.code or 'en')"> + <replace text:p="invoice.set_lang(invoice.party.lang and invoice.party.lang.code or 'en')"> + <for each="line in invoice.invoice_address.full_address.split('\n')"> <line> </for> <if test="invoice.party.tax_identifier"> @@ -595,8 +606,8 @@ </otherwise> </choose> </if> - Description: <invoice.description or ''> - Reference: <invoice.origins or ''><', ' if (invoice.reference and invoice.origins) else ''><invoice.reference or ''> + Description: <invoice.description or ''> + Reference: <invoice.origins or ''><', ' if (invoice.reference and invoice.origins) else ''><invoice.reference or ''> <if test="invoice.invoice_date"> Date: <format_date(invoice.invoice_date, invoice.party.lang)> <if test="invoice.tax_identifier">