diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-22 15:42:17 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-22 15:59:25 -0700 |
commit | e8a7a756aa97a62dec29cdbdc24e6bb3c15aa5ee (patch) | |
tree | 7d8ae25ada4c560e0e8ba233b9474509781568fd /FS/FS/part_pkg/agent.pm | |
parent | 678145407fa7450514062cda0ccb428647059205 (diff) |
agent wholesale pricing based on actual invoices, #31234
Diffstat (limited to 'FS/FS/part_pkg/agent.pm')
-rw-r--r-- | FS/FS/part_pkg/agent.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/FS/FS/part_pkg/agent.pm b/FS/FS/part_pkg/agent.pm index e1165c4..1a5b615 100644 --- a/FS/FS/part_pkg/agent.pm +++ b/FS/FS/part_pkg/agent.pm @@ -14,8 +14,8 @@ $DEBUG = 0; $me = '[FS::part_pkg::agent]'; %info = ( - 'name' => 'Wholesale bulk billing, for master customers of an agent.', - 'shortname' => 'Wholesale bulk billing for agent', + 'name' => 'Wholesale billing based on package prices, for master customers of an agent.', + 'shortname' => 'Wholesale billing for agent (package prices)', 'inherit_fields' => [qw( prorate global_Mixin)], 'fields' => { #'recur_method' => { 'name' => 'Recurring fee method', @@ -94,12 +94,13 @@ sub calc_recur { if $DEBUG; #make sure setup dates are filled in - my $error = $cust_main->bill; #options don't propogate from freeside-daily + my $error = $cust_main->bill( time => $$sdate ); die "Error pre-billing agent customer: $error" if $error; my @cust_pkg = grep { my $setup = $_->get('setup'); my $cancel = $_->get('cancel'); + #$setup <= $$sdate # ? $setup < $$sdate # END && ( ! $cancel || $cancel > $last_bill ) #START } |