summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2005-10-06 07:34:58 +0000
committerivan <ivan>2005-10-06 07:34:58 +0000
commit33aeb33a7fafaf099c679c6d7150b54b99e4810f (patch)
tree05093e4bb33a922c576a37427c2c47b43ed85f45 /FS
parenta25c3f9493bf910a5e8bfe586c66c1ba5d6c8210 (diff)
add cc-void option
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Conf.pm7
-rw-r--r--FS/FS/cust_pay_refund.pm16
2 files changed, 15 insertions, 8 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 237ab1e58..0bf1afeeb 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -1505,6 +1505,13 @@ httemplate/docs/config.html
},
{
+ 'key' => 'cc-void',
+ 'section' => 'billing',
+ 'description' => 'Enable local-only voiding of credit card payments in addition to refunds against the payment gateway',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'address2-search',
'section' => 'UI',
'description' => 'Enable a "Unit" search box which searches the second address field',
diff --git a/FS/FS/cust_pay_refund.pm b/FS/FS/cust_pay_refund.pm
index af25f1774..15e0e533a 100644
--- a/FS/FS/cust_pay_refund.pm
+++ b/FS/FS/cust_pay_refund.pm
@@ -138,26 +138,26 @@ sub check {
$self->SUPER::check;
}
-=item sub cust_credit
+=item sub cust_pay
-Returns the credit (see L<FS::cust_credit>)
+Returns the payment (see L<FS::cust_pay>)
=cut
-sub cust_credit {
+sub cust_pay {
my $self = shift;
- qsearchs( 'cust_credit', { 'crednum' => $self->crednum } );
+ qsearchs( 'cust_pay', { 'paynum' => $self->paynum } );
}
-=item cust_bill
+=item cust_refund
-Returns the invoice (see L<FS::cust_bill>)
+Returns the refund (see L<FS::cust_refund>)
=cut
-sub cust_bill {
+sub cust_refund {
my $self = shift;
- qsearchs( 'cust_bill', { 'invnum' => $self->invnum } );
+ qsearchs( 'cust_refund', { 'refundnum' => $self->refundnum } );
}
=back