#3921 (Journal entry mixes up debit and credit when creating the movements)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : Confirmed on the production site that this is now fixed.
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : Uff. Found and then fixed some issues in demo fixtures of welfare.
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : The AAW journal in welfare is still not right after the changes.
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : The last 30 minutes were because of a stupid pitfall: in the template for the SEPA xml file of a payment order I had to write the opposite of the amount (because every payment item is a debit for us, stored as a negative number). How it looks:<Amt><InstdAmt Ccy="EUR">{{ -item.amount }}</InstdAmt></...
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : Some last minor changes. Added coverage in specs/finan.rst to check the totals of payment orders and the balances of bank statements.
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : Seems that I found the right combination. The challenge her is that the Lino code has about 15 "dangerous" places where debit and credit can get mixed up. If you change one of them, your change can potentially cause several other places to need a change as well. It's like the story of the keyhole in...
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : Seems tat this little change will once more turn the whole house upside down.
- 5 ans, 9 mois ago by Luc Saffre about #3921 (Journal entry mixes up debit and credit when creating the movements) : create_movement() should no longer have an argument dc. I removed it.