summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormark <mark>2011-08-31 08:27:41 +0000
committermark <mark>2011-08-31 08:27:41 +0000
commit85ea300702e8120ab4953c8fec27a52c7f7c7075 (patch)
tree945f618c242dfab6deb44c7f14afb9071728a72f
parent95aa84ba8a410f990e47e458be0efce43291b25d (diff)
fix payment application with term discounts, #5318
-rw-r--r--FS/FS/cust_pay.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index 544fef11f..2d7c6dddf 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -204,7 +204,7 @@ sub insert {
}
my @pkgs = $cust_main->_discount_pkgs_and_bill;
my $cust_bill = shift(@pkgs);
- @pkgs = &FS::cust_main::Billing::_discountable_pkgs_at_term($months, @pkgs);
+ @pkgs = &FS::cust_main::Billing_Discount::_discountable_pkgs_at_term($months, @pkgs);
$_->bill($_->last_bill) foreach @pkgs;
$error = $cust_main->bill(
'recurring_only' => 1,