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

        issue10222
        review336111002
        (grafted from 863a460f4ae56505a3490f25474efaf71e1b224e)
diffstat:

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

diffs (12 lines):

diff -r 37337e738055 -r 13f531de64c1 invoice.fodt
--- a/invoice.fodt      Wed Mar 03 18:31:58 2021 +0100
+++ 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