|
|
@ -793,6 +793,7 @@ class AccountingFileWizard(models.TransientModel): |
|
|
|
#écritures pour les avoirs pas encore utilisés ou payés mais jamais passé en compta |
|
|
|
out_refund_invoices=self.env['account.move'].search([('move_type','=','out_refund'),('state','=','posted'),('payment_state','=','not_paid'),('date_compta','=',False),('date_compta_out_refund','=',False)]) |
|
|
|
for invoice in out_refund_invoices: |
|
|
|
if invoice.invoice_date<self.start_date.date(): continue |
|
|
|
if not self.debug_mode: invoice.date_compta_out_refund=date_compta |
|
|
|
firstname=invoice.partner_id.firstname |
|
|
|
name=invoice.partner_id.name |
|
|
@ -841,6 +842,7 @@ class AccountingFileWizard(models.TransientModel): |
|
|
|
for invoice in out_refund_invoices: |
|
|
|
#_logger.error(invoice.id) |
|
|
|
if not self.debug_mode: invoice.date_compta=date_compta |
|
|
|
if invoice.invoice_date_payment and invoice.invoice_date_payment<self.start_date.date(): continue |
|
|
|
firstname=invoice.partner_id.firstname |
|
|
|
name=invoice.partner_id.name |
|
|
|
#_logger.error(name) |
|
|
|