changeset 863a460f4ae5 in modules/account_invoice:default
details: 
https://hg.tryton.org/modules/account_invoice?cmd=changeset&node=863a460f4ae5
description:
        Skip maturity date formatting if empty

        issue10222
        review336111002
diffstat:

 invoice.fodt |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 483b4ac76902 -r 863a460f4ae5 invoice.fodt
--- a/invoice.fodt      Thu Apr 29 13:21:38 2021 +0200
+++ b/invoice.fodt      Fri Apr 30 13:31:23 2021 +0200
@@ -976,7 +976,7 @@
     </table:table-row>
     <table:table-row>
      <table:table-cell table:style-name="Table5.A4" office:value-type="string">
-      <text:p text:style-name="Table_20_Contents"><text:placeholder 
text:placeholder-type="text">&lt;format_date(line.maturity_date, 
invoice.party.lang)&gt;</text:placeholder></text:p>
+      <text:p text:style-name="Table_20_Contents"><text:placeholder 
text:placeholder-type="text">&lt;format_date(line.maturity_date, 
invoice.party.lang) if line.maturity_date else 
''&gt;</text:placeholder></text:p>
      </table:table-cell>
      <table:table-cell table:style-name="Table5.B4" office:value-type="string">
       <text:p text:style-name="P10"><text:placeholder 
text:placeholder-type="text">&lt;line.amount_second_currency and 
format_currency(line.amount_second_currency, invoice.party.lang, 
invoice.currency) or format_currency(line.debit - line.credit, 
invoice.party.lang, invoice.currency)&gt;</text:placeholder></text:p>

Reply via email to