summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-12-05 10:45:26 -0800
committerIvan Kohler <ivan@freeside.biz>2014-12-05 10:45:26 -0800
commitc7c96355331687b6fd44bfe541b402bd0664481d (patch)
treee39453120b474fc911b8bcc356a0e6059f924e6f /FS/FS/cust_bill.pm
parentbe2a6e7068337aa57b04bd7fa88090002d79a64b (diff)
agent-ize invoice_default_terms, RT#32513
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 5be984e..0c07e9a 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -3323,6 +3323,13 @@ Currently only supported on PostgreSQL.
=cut
sub due_date_sql {
+ die "don't use: doesn't account for agent-specific invoice_default_terms";
+
+ #we're passed a $conf but not a specific customer (that's in the query), so
+ # to make this work we'd need an agentnum-aware "condition_sql_conf" like
+ # "condition_sql_option" that retreives a conf value with SQL in an agent-
+ # aware fashion
+
my $conf = new FS::Conf;
'COALESCE(
SUBSTRING(