Use move post date as SII accounting date

Closes #13680
This commit is contained in:
Sergi Almacellas Abellana committed 2025-01-07 17:34:43 +01:00
1 parent ae00270ee7
commit b1f8cb08b3
1 file changed
+1 -1
+1 -1
View File
@@ -615,7 +615,7 @@ class InvoiceSII(ModelSQL, ModelView):
'DetalleIVA': list(chain(*tax_values.values())),
},
}
detail['FechaRegContable'] = self.invoice.move.date.strftime(
detail['FechaRegContable'] = self.invoice.move.post_date.strftime(
'%d-%m-%Y')
detail['CuotaDeducible'] = str(tax_amount)
return detail