From c01c0065f9de3428af812638f6e3bb9e02fb725f Mon Sep 17 00:00:00 2001 From: Irina Todeva Date: Wed, 30 Sep 2015 14:37:18 -0600 Subject: 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) --- FS/FS/cust_credit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FS') 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; -- cgit v1.2.1