Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2517 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

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()
Аватар
Відмінити
Найкраща відповідь

great answer thank you so much

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 25
1483
1
черв. 24
2157
1
бер. 23
5218
1
лист. 22
18759
1
жовт. 22
11393