Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
2492 Visninger

I am mass importing Invoices and Payments, and I know which ones have to be reconciled but I don't want to do this manually.

Avatar
Kassér
Bedste svar

Given you have the ID of the Journal Item (account.move.line) representing the AP debit from the Invoice and the ID of the Journal Item representing the AP credit from the Payment:

reconcile_wanted = self.env['account.reconcile.wizard'].with_context(
    active_model='account.move.line',
    active_ids=[__invoice_move_line_id__,__payment_move_line_id__],
).new({'allow_partials': True})
reconcile_wanted.reconcile()
Avatar
Kassér
Bedste svar

great answer thank you so much

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
mar. 25
1477
1
jun. 24
2149
1
mar. 23
5211
1
nov. 22
18752
1
okt. 22
11392