Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2493 มุมมอง

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
1478
1
มิ.ย. 24
2149
1
มี.ค. 23
5211
Create new invoice by code แก้ไขแล้ว
1
พ.ย. 22
18752
1
ต.ค. 22
11392