Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
2499 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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()
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

great answer thank you so much

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 25
1479
1
thg 6 24
2150
1
thg 3 23
5211
1
thg 11 22
18752
1
thg 10 22
11392