Koha::Account lists valid value for accounttypes which can be added via the methods add_debit and add_credit. However, we're still setting accounttype in a number of places outside of this module and in many cases the values we're using do not correspond to the enum list in Koha::Account.
* C4::Circulation::__FixOverduesOnReturn "FU/U" -> "FFOR/F" * C4::Circulation::_FixAccountForLostAndReturned "L/Rep/W" -> "LR" Those are all the cases I can find so far.. looks like at least the first case is already in discussion on other bugs.
*** This bug has been marked as a duplicate of bug 22512 ***
This is in effect a duplicate of bug 22512 at this point.. I believe once an accountype is 'set' during it's initial creation it should remain static and rather if it's "state" needs to be tracked we should use a specific field to track it as introduced in the above bug.
_FixOverduesOnReturn now uses add_credit. _FixAccountForLostAndReturned does no longer exist.