diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-12-04 14:30:07 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-12-04 14:30:07 -0500 |
commit | 8ddf2ae7b5e02463c87599186f0279b86ddaeaac (patch) | |
tree | 8549c1c100ff76db0e6636d6ba1b6160e2f78fb6 /FS/FS | |
parent | 27bace7e53b5259e4694d8a5aea394fd1d88dc42 (diff) |
RT# 81822 - Added new config for remittance coupon location, updated invoice_latex and invoice_latexcoupon to use new config
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/Conf.pm | 12 | ||||
-rw-r--r-- | FS/FS/Template_Mixin.pm | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 5a74451..393f068 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1480,6 +1480,18 @@ and customer address. Include units.', }, { + 'key' => 'invoice_latexcouponlocation', + 'section' => 'invoicing', + 'description' => 'Location of the remittance coupon.Either top or bottom of page, defaults to bottom.', + 'type' => 'select', + 'select_hash' => [ + 'bottom' => 'Bottom of page (default)', + 'top' => 'Top of page', + ], + 'per_agent' => 1, + }, + + { 'key' => 'invoice_latexsmallfooter', 'section' => 'invoice_templates', 'description' => 'Optional small footer for multi-page LaTeX typeset PostScript invoices.', diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 675dcfa..c6a9b9f 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -597,6 +597,7 @@ sub print_generic { 'amountenclosedsep' => scalar($conf->config('invoice_latexcouponamountenclosedsep', $agentnum)), 'coupontoaddresssep' => scalar($conf->config('invoice_latexcoupontoaddresssep', $agentnum)), 'addcompanytoaddress' => $conf->exists('invoice_latexcouponaddcompanytoaddress', $agentnum), + 'couponlocation' => (scalar($conf->config('invoice_latexcouponlocation', $agentnum)) eq "top") ? 'top' : 'bottom', # better hang on to conf_dir for a while (for old templates) 'conf_dir' => "$FS::UID::conf_dir/conf.$FS::UID::datasrc", |