'select_options' => { FS::cdr::invoice_formats() },
'default' => 'simple2', #with source
},
+
+ 'usage_section' => { 'name' => 'Section in which to place separate usage charges',
+ },
+
+ 'summarize_usage' => { 'name' => 'Include usage summary with recurring charges when usage is in separate section',
+ 'type' => 'checkbox',
+ },
+
+ 'usage_mandate' => { 'name' => 'Always put usage details in separate section',
+ 'type' => 'checkbox',
+ },
#eofalse
},
'fieldorder' => [ qw( recur_temporality recur_method cutoff_day ),
FS::part_pkg::prorate_Mixin::fieldorder,
- qw( output_format ),
+ qw(
+ output_format usage_section summarize_usage usage_mandate
+ ),
],
'weight' => 53,
#eo CDR calculations
- $charges += ($cust_pkg->quantity || 1) * $self->calc_recur_Common(@_);
+ $charges += ($cust_pkg->quantity || 1)
+ * $self->calc_recur_Common($cust_pkg, $sdate, $details, $param);
$charges;
}