İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2529 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
En İyi Yanıt

great answer thank you so much

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 25
1488
1
Haz 24
2163
1
Mar 23
5222
1
Kas 22
18761
1
Eki 22
11396