Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
2534 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

great answer thank you so much

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
1500
1
čvn 24
2165
1
bře 23
5226
1
lis 22
18765
1
říj 22
11406