From: mark Date: Wed, 31 Aug 2011 08:26:29 +0000 (+0000) Subject: fix payment application with term discounts, #5318 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=81d973916db8389df760f4055b3eb3825b3ed262 fix payment application with term discounts, #5318 --- diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index c80729a4e..3888cd6d0 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,