[Koha-bugs] [Bug 22435] Clarify account_offset types by converting them to clear codes

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 19 11:37:55 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22435

--- Comment #192 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Martin, shouldn't we apply the following change to make the db rev idempotent?

-    $dbh->do( "UPDATE account_offsets SET type = 'CREATE' WHERE type !=
'OVERDUE_INCREASE' AND type != 'OVERDUE_DECREASE' AND ( debit_id IS NULL OR
credit_id IS NULL)" );
+    $dbh->do( "UPDATE account_offsets SET type = 'CREATE' WHERE type !=
'OVERDUE_INCREASE' AND type != 'OVERDUE_DECREASE' AND type != 'APPLY' AND (
debit_id IS NULL OR credit_id IS NULL)" );

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list