first, sorry for my inglish, is not my native language.
I want to know if this is a normal behavior about taxes when I post an invoice journal.
i have the following values for my journal lines (all in the same voucher number):
line Type invoice number Debit Credit
1 Vendor 100 0 275
2 MainAccount 100 0 100
3 MainAccount 100 0 75
4 MainAccount 100 150 0
5 MainAccount 100 300 0
the lines debit main account lines have tax group values selected, the credit lines do not.
when i posted the journal the expected ledger result should be:
Type Debit Credit
Vendor 0 347 (Journal line's credit value plus taxes calculated ... 72)
MainAccount 0 100
MainAccount 0 75
Tax 72 0
MainAccount 150 0
MainAccount 300 0
but only i can acomplish that when i whrite first the vendor's line and after the main account's lines.
If i whrite first the credit main account's lines, next the debit main account's lines and last the vendor's line i get the following result:
Type Debit Credit
Vendor 0 275
MainAccount 0 100
MainAccount 0 147 (Journal line's credit value plus taxes calculated ... 72)
Tax 72 0
MainAccount 150 0
MainAccount 300 0
If i whrite first the debit main account's lines, next the credit main account's lines and last the vendor's line i get the following result:
Type Debit Credit
Vendor 0 275
MainAccount 0 100
MainAccount 0 75
Tax 72 0
MainAccount 150 0
MainAccount 372 0 (Journal line's debit value plus taxes calculated ... 72)
is this normal behavior or is it a bug?