summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Billing.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-04-24 20:24:01 -0700
committerMark Wells <mark@freeside.biz>2014-04-24 20:24:01 -0700
commit41b1a4d9e2cf8270f3e4d0b8d5ac02b875b46f0c (patch)
tree55e79eaafd936ec046c8c1af74b68ca77aa87d8f /FS/FS/cust_main/Billing.pm
parentf697781408c7e1b27d7bab73095d707e9c50933e (diff)
allow fees to be charged based on batch payment attempts, #27778
Diffstat (limited to 'FS/FS/cust_main/Billing.pm')
-rw-r--r--FS/FS/cust_main/Billing.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm
index 94a0069..63c7f2b 100644
--- a/FS/FS/cust_main/Billing.pm
+++ b/FS/FS/cust_main/Billing.pm
@@ -570,7 +570,10 @@ sub bill {
my $object = $event_fee->cust_event->cust_X;
my $part_fee = $event_fee->part_fee;
my $cust_bill;
- if ( $object->isa('FS::cust_main') or $object->isa('FS::cust_pkg') ) {
+ if ( $object->isa('FS::cust_main')
+ or $object->isa('FS::cust_pkg')
+ or $object->isa('FS::cust_pay_batch') )
+ {
# Not the real cust_bill object that will be inserted--in particular
# there are no taxes yet. If you want to charge a fee on the total
# invoice amount including taxes, you have to put the fee on the next