changeset 0b6b3f25cad8 in modules/account_es_sii:default
details: 
https://hg.tryton.org/modules/account_es_sii?cmd=changeset&node=0b6b3f25cad8
description:
        Use move date instead of post date as FechaRegContable

        issue11760
        review415711004
diffstat:

 account.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0e3b8e5b5203 -r 0b6b3f25cad8 account.py
--- a/account.py        Thu May 19 22:08:15 2022 +0200
+++ b/account.py        Tue Oct 04 08:49:40 2022 +0200
@@ -586,7 +586,7 @@
                     'DetalleIVA': list(chain(*tax_values.values())),
                 },
             }
-            detail['FechaRegContable'] = self.invoice.move.post_date.strftime(
+            detail['FechaRegContable'] = self.invoice.move.date.strftime(
                 '%d-%m-%Y')
             detail['CuotaDeducible'] = str(tax_amount)
         return detail

Reply via email to