From 37ac9c4f5754a1398b7bc354db716be828f04253 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 8 Nov 2013 16:47:27 -0800 Subject: option to make ship_company field available again, #25782 --- httemplate/edit/cust_main.cgi | 1 + httemplate/edit/cust_main/before_ship_location.html | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 httemplate/edit/cust_main/before_ship_location.html (limited to 'httemplate/edit') diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index d597d0bc2..8a3d6f918 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -73,6 +73,7 @@ ><% mt('same as billing address') |h %>
+ <& cust_main/before_ship_location.html, $cust_main &> <& /elements/location.html, object => $cust_main->ship_location, prefix => 'ship_', diff --git a/httemplate/edit/cust_main/before_ship_location.html b/httemplate/edit/cust_main/before_ship_location.html new file mode 100644 index 000000000..badb5e8cd --- /dev/null +++ b/httemplate/edit/cust_main/before_ship_location.html @@ -0,0 +1,13 @@ +% if ( length($cust_main->ship_company) or +% $conf->exists('show_ship_company') ) { + <& /elements/tr-input-text.html, + label => mt('Company'), + field => 'ship_company', + curr_value => $cust_main->ship_company, + colspan => 6, + &> +% } +<%init> +my $cust_main = shift; +my $conf = FS::Conf->new; + -- cgit v1.2.1