summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg/sql_external.pm
diff options
context:
space:
mode:
authormark <mark>2011-06-17 09:47:04 +0000
committermark <mark>2011-06-17 09:47:04 +0000
commit90dfd05877a331fb13ba50389e3d8a3105465bc7 (patch)
treeb2a2150213ff8ce16f4b7488d3decdedb070d67d /FS/FS/part_pkg/sql_external.pm
parent9e5bf689d08f88ec6b49312c2c515f5a28bfdf11 (diff)
add prorate options to recur_Common packages, #10630
Diffstat (limited to 'FS/FS/part_pkg/sql_external.pm')
-rw-r--r--FS/FS/part_pkg/sql_external.pm11
1 files changed, 4 insertions, 7 deletions
diff --git a/FS/FS/part_pkg/sql_external.pm b/FS/FS/part_pkg/sql_external.pm
index c0c5725..08142b0 100644
--- a/FS/FS/part_pkg/sql_external.pm
+++ b/FS/FS/part_pkg/sql_external.pm
@@ -9,16 +9,12 @@ use DBI;
%info = (
'name' => 'Base charge plus additional fees for external services from a configurable SQL query',
'shortname' => 'External SQL query',
- 'inherit_fields' => [ 'global_Mixin' ],
+ 'inherit_fields' => [ 'prorate_Mixin', 'global_Mixin' ],
'fields' => {
'cutoff_day' => { 'name' => 'Billing Day (1 - 28) for prorating or '.
'subscription',
'default' => '1',
},
- 'add_full_period'=> { 'name' => 'When prorating first month, also bill '.
- 'for one full period after that',
- 'type' => 'checkbox',
- },
'recur_method' => { 'name' => 'Recurring fee method',
#'type' => 'radio',
@@ -39,8 +35,9 @@ use DBI;
'default' => '',
},
},
- 'fieldorder' => [qw( recur_method cutoff_day
- add_full_period datasrc db_username db_password query
+ 'fieldorder' => [qw( recur_method cutoff_day ),
+ FS::part_pkg::prorate_Mixin::fieldorder,
+ qw( datasrc db_username db_password query
)],
'weight' => '58',
);