Issue 10854

Title
Invoice pay wizard always books into current period
Priority
bug
Status
chatting
Nosy list
ced, yangoon
Assigned to
Keywords
patch

Created on 2021-10-13.12:22:37 by yangoon, last changed 6 days ago by ced.

Files

File name Uploaded Type Details
tax_cash_payment.patch yangoon, 2021-10-13.12:22:36 text/plain view

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2021-10-13.13:33:45
Author: [hidden] (yangoon) Tryton translator
Date: 2021-10-13.12:22:36

Scenario:
- Vanilla database with account_tax and account_de_skr03 installed
- Create a fiscalyear with Tax Cash Group 'Umsatzsteuer'
- Create an invoice with a product configured to use taxes with said tax group
- Post the invoice
- Pay the invoice partly at a date in the next month
- Open the tax code chart for the next month -> amount == 0
- Open the tax code chart for the current month -> amount == current paid amount

Table account_tax_line shows correct amounts for done and expected payments, but the period of done payments is not updated/inserted correctly to the period of the payment date, but always to the current period.

It turns out that payment_date is missing in the context which is used in _update_tax_cash_basis to find the correct period.

The attached patch solves the problem.

History
Date User Action Args
2021-10-13 13:33:45cedsetmessages: + msg70990
nosy: + ced
status: unread -> chatting
2021-10-13 12:22:37yangooncreate

Showing 10 items. Show all history (warning: this could be VERY long)