X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main%2FBilling_Discount.pm;h=117bf311a3614e0e461ffcabcd751452b7c0c5fc;hb=536c3720cb3820d7806d2e672463b5b3d06be078;hp=d437740e3612d979b63cc35d07db597715b6712a;hpb=b962b3fbfd38f932061329e2872007b3854e8d35;p=freeside.git diff --git a/FS/FS/cust_main/Billing_Discount.pm b/FS/FS/cust_main/Billing_Discount.pm index d437740e3..117bf311a 100644 --- a/FS/FS/cust_main/Billing_Discount.pm +++ b/FS/FS/cust_main/Billing_Discount.pm @@ -47,7 +47,7 @@ sub _discount_pkgs_and_bill { push @where, "NOT EXISTS ( SELECT 1 FROM cust_bill_pkg_discount - WHERE cust_bill_pkg.billpkgnum = cust_bill_pkg_discount.billpkgnu: + WHERE cust_bill_pkg.billpkgnum = cust_bill_pkg_discount.billpkgnum )"; my $extra_sql = 'WHERE '. join(' AND ', @where); @@ -110,6 +110,9 @@ by prepaying the most recent invoice for MONTHS. =cut +# XXX this should work by creating a quotation; then we can finally retire +# the "no_commit" option, which doesn't work with modern tax calculation + sub discount_term_values { my $self = shift; my $term = shift;