Customer alloc with Vendor Payment: Wrong Accounting
Testcase to check if allocations are posted right
and to check discount in payments
Payments allocations
-
Go to Payment window and create a customer (incoming) payment for partner G000X, for the amount 100, complete it
- wait a bit to get posted and check the posting status
- => you will have 2 lines: account A with 100 on debit and Account B with 100 on credit
-
create a vendor (outgoing) payment for the same parter, for the amount 100, complete it
- wait a bit to get posted and check the posting status
- => you will have 2 lines: account D with 100 on credit and Account B with 100 on debit
-
go to Payment allocation window, select bpartner G000X
-
select both payment lines and press on process button
-
go back in Payment window, open one of your payments, go to allocation subtab and zoom in on the allocation field
- check the posting status
- => you will have 2 lines: account D with 100 on credit and Account A with 100 on debit
Payments allocations regression test
-
create a sales and a purchase invoice for bpartner G000X, product P0001, add a price like 100, complete
- Go to Payment window and create a customer (incoming) payment for partner G000X, set the invoice with the sales one you just created, complete it
- => the amount is set like you have in invoice (e.g.100)
- wait a bit to get posted and check the posting status
- => you will have 2 lines: account A with 100 on debit and Account B with 100 on credit
-
go to allocations subtab and zoom in on the allocation field
- check the posting status
- => you will have 2 lines: account E with 100 on credit (the one on debit from invoice) and Account B with 100 on debit
- Go to Payment window and create a vendor (outgoing) payment for partner G000X, set the invoice with the purchase one you just created, complete it
- => the amount is set like you have in invoice (e.g.100)
- wait a bit to get posted and check the posting status
- => you will have 2 lines: account D with 100 on debit and Account B with 100 on credit
-
go to allocations subtab and zoom in on the allocation field
- check the posting status
- => you will have 2 lines: account D with 100 on credit and Account F with 100 on debit (the one on credit from invoice) and Account D with 100 on credit
Payments discount
-
make sure you have at least 1 invoice and 1 payment. If not, create 1 of each as described above
-
go to payment allocation and filter for bpartner G000X
- select a payment
- => notice that the discount amount field from that line is readonly
- select discount checkbox
- => discount amount field from payment is still readonly
- select an invoice
- => discount amount field from payment is editable and you can set a value there
-
set a value in discount amount field
- deselect discount checkbox
- => discount amount field becomes readonly and is set back on 0
- play a bit with payments, discount and invoices.
- => Only if a payment, invoice and discount checkbox are selected, then you can set the discount
-
select a payment (eg 100), discount and an invoice (eg 100)
- set a discount in paymentline (eg 10) and press on process
- => new allocation is created, with 3 lines: one with 10, one with 90 and one with 100
View source file on GitHub.com