diff options
author | Irina Todeva <itodeva@hostgator.com> | 2015-09-30 14:37:18 -0600 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-11-03 12:28:13 -0800 |
commit | c01c0065f9de3428af812638f6e3bb9e02fb725f (patch) | |
tree | cc184bb6337c5443c87e8c7e68cb29d0f85c75cd /FS | |
parent | 6d34c5060a4e5e9338ebc0d04459861a5c45e812 (diff) |
When void / unvoid / apply / unapply is called stay on the same page
(payment_history)
Keep consistent void credits with other void methods (invoices, payments)
regarding the method interface
cust_credit->void
cust_credit->void('reason string')
cust_credit->void(FS::reason)
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cust_credit.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_credit.pm b/FS/FS/cust_credit.pm index 2f2338ee4..032953532 100644 --- a/FS/FS/cust_credit.pm +++ b/FS/FS/cust_credit.pm @@ -377,7 +377,7 @@ sub void { my $cust_credit_void = new FS::cust_credit_void ( { map { $_ => $self->get($_) } $self->fields } ); - $cust_credit_void->set('void_reasonnum', $reason->reasonnum); + $cust_credit_void->set('void_reasonnum', $reason->reasonnum) if $reason; my $error = $cust_credit_void->insert; if ( $error ) { $dbh->rollback if $oldAutoCommit; |