From 6c0db7e65dd04a68d1cede46d1881a219d69b7f2 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 12 Oct 2009 02:30:34 +0000 Subject: [PATCH] fix for no finance_pkgclass set --- FS/FS/part_event/Action/cust_bill_fee_percent.pm | 2 +- FS/FS/part_event/Action/fee.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_event/Action/cust_bill_fee_percent.pm b/FS/FS/part_event/Action/cust_bill_fee_percent.pm index b0397d421..0eeb3df81 100644 --- a/FS/FS/part_event/Action/cust_bill_fee_percent.pm +++ b/FS/FS/part_event/Action/cust_bill_fee_percent.pm @@ -40,7 +40,7 @@ sub do_action { 'amount' => $amount, 'pkg' => $self->option('reason'), 'taxclass' => $self->option('taxclass'), - 'classnum' => $conf->config('finance_pkgclass'), + 'classnum' => scalar($conf->config('finance_pkgclass')), 'setuptax' => $self->option('setuptax'), ); diff --git a/FS/FS/part_event/Action/fee.pm b/FS/FS/part_event/Action/fee.pm index 163b4fa24..bc128284e 100644 --- a/FS/FS/part_event/Action/fee.pm +++ b/FS/FS/part_event/Action/fee.pm @@ -32,7 +32,7 @@ sub do_action { 'amount' => $self->option('charge'), 'pkg' => $self->option('reason'), 'taxclass' => $self->option('taxclass'), - 'classnum' => $conf->config('finance_pkgclass'), + 'classnum' => scalar($conf->config('finance_pkgclass')), 'setuptax' => $self->option('setuptax'), ); -- 2.11.0