Bug 20980: (follow-up) Offset name consistency
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 23 Jun 2018 10:41:15 +0000 (07:41 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 12:50:07 +0000 (12:50 +0000)
This patch makes 'credit' account types generate 'Manual Credit' offset.
The original patch used 'Payment' but I think the code wants to
distinguish between payments and manually added credits (otherwise they
would've picked the same accounttype value, and they don't.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Koha/Account.pm

index 1541998..8e3ed40 100644 (file)
@@ -481,7 +481,7 @@ sub non_issues_charges {
 =cut
 
 our $offset_type = {
-    'credit'           => 'Payment',
+    'credit'           => 'Manual Credit',
     'forgiven'         => 'Writeoff',
     'lost_item_return' => 'Lost Item Return',
     'payment'          => 'Payment',