my %args = @$argsref;
%args = (
%args,
- 'process-pkgpart' => scalar($conf->config('selfservice_process-pkgpart')),
+ 'process-pkgpart' =>
+ scalar($conf->config('selfservice_process-pkgpart', $cust_main->agentnum)),
'process-display' => scalar($conf->config('selfservice_process-display')),
'process-skip_first' => $conf->exists('selfservice_process-skip_first'),
'num_payments' => scalar($cust_main->cust_pay),
use HTML::Entities;
use Text::CSV_XS;
use Spreadsheet::WriteExcel;
+use OLE::Storage_Lite;
use FS::UI::Web::small_custview qw(small_custview); #less doh
use FS::UI::Web;
use FS::UI::bytecount qw( display_bytecount );
#changing the hidden form values
my $conf = new FS::Conf;
my $fee_display = $conf->config('selfservice_process-display') || 'add';
- my $fee_pkgpart = $conf->config('selfservice_process-pkgpart');
+ my $fee_pkgpart = $conf->config('selfservice_process-pkgpart', $cust_main->agentnum);
my $fee_skip_first = $conf->exists('selfservice_process-skip_first');
if ( $fee_display eq 'add'
and $fee_pkgpart
#no error, so order the fee package if applicable...
my $conf = new FS::Conf;
- my $fee_pkgpart = $conf->config('selfservice_process-pkgpart');
+ my $fee_pkgpart = $conf->config('selfservice_process-pkgpart', $cust_main->agentnum);
my $fee_skip_first = $conf->exists('selfservice_process-skip_first');
if ( $fee_pkgpart and ! $fee_skip_first || scalar($cust_main->cust_pay) ) {
{
'key' => 'invoice_latexextracouponspace',
'section' => 'invoicing',
- 'description' => 'Optional LaTeX invoice textheight space to reserve for a tear off coupon. Include units.',
+ 'description' => 'Optional LaTeX invoice textheight space to reserve for a tear off coupon. Include units. Default is 3.6cm',
'type' => 'text',
'per_agent' => 1,
'validate' => sub { shift =~
'section' => 'billing',
'description' => 'Package to add to each manual credit card and ACH payment entered by employees from the backend. Enabling this option may be in violation of your merchant agreement(s), so please check it(/them) carefully before enabling this option.',
'type' => 'select-part_pkg',
+ 'per_agent' => 1,
},
{
'section' => 'billing',
'description' => 'Package to add to each manual credit card and ACH payment entered by the customer themselves in the self-service interface. Enabling this option may be in violation of your merchant agreement(s), so please check it(/them) carefully before enabling this option.',
'type' => 'select-part_pkg',
+ 'per_agent' => 1,
},
{
<& /elements/tr-amount_fee.html,
'amount' => $amount,
- 'process-pkgpart' => scalar($conf->config('manual_process-pkgpart')),
+ 'process-pkgpart' =>
+ scalar($conf->config('manual_process-pkgpart', $cust_main->agentnum)),
'process-display' => scalar($conf->config('manual_process-display')),
'process-skip_first' => $conf->exists('manual_process-skip_first'),
'num_payments' => scalar($cust_main->cust_pay),