projects
/
koha-ffzg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 22511: Update void method to use status
[koha-ffzg.git]
/
Koha
/
Account
/
Line.pm
diff --git
a/Koha/Account/Line.pm
b/Koha/Account/Line.pm
index
d2ac161
..
aba3183
100644
(file)
--- a/
Koha/Account/Line.pm
+++ b/
Koha/Account/Line.pm
@@
-71,7
+71,11
@@
sub checkout {
=head3 void
=head3 void
-$payment_accountline->void();
+ $payment_accountline->void();
+
+Used to 'void' (or reverse) a payment/credit. It will role back any offsets
+created by the application of this credit upon any debits and mark the credit
+as 'void' by updating it's status to "VOID".
=cut
=cut
@@
-133,7
+137,7
@@
sub void {
$self->set(
{
$self->set(
{
-
accounttype
=> 'VOID',
+
status
=> 'VOID',
amountoutstanding => 0,
amount => 0,
}
amountoutstanding => 0,
amount => 0,
}