diff --git a/Koha/Account.pm b/Koha/Account.pm
index 7c01fba0ce..16bff39073 100644
--- a/Koha/Account.pm
+++ b/Koha/Account.pm
@@ -81,7 +81,6 @@ sub pay {
my $lines = $params->{lines};
my $type = $params->{type} || 'PAYMENT';
my $payment_type = $params->{payment_type} || undef;
- my $offset_type = $params->{offset_type} || $type eq 'WRITEOFF' ? 'Writeoff' : 'Payment';
my $cash_register = $params->{cash_register};
my $item_id = $params->{item_id};
@@ -358,7 +357,7 @@ sub payin_amount {
$credit = $credit->apply(
{
debits => $params->{debits},
- offset_type => $params->{type}
+ offset_type => $Koha::Account::offset_type->{$params->{type}}
}
);
}
@@ -370,7 +369,7 @@ sub payin_amount {
$credit = $credit->apply(
{
debits => [ $self->outstanding_debits->as_list ],
- offset_type => $params->{type}
+ offset_type => $Koha::Account::offset_type->{$params->{type}}
}
);
}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
index e4cccecb7e..0a7e81e940 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt
@@ -66,7 +66,7 @@
- Example: 5.00
+ Example: 5.00
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
index 7849d763b8..3020366c0a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
@@ -79,7 +79,7 @@
- Example: 5.00
+ Example: 5.00