diff options
| author | ivan <ivan> | 2007-12-17 01:00:29 +0000 |
|---|---|---|
| committer | ivan <ivan> | 2007-12-17 01:00:29 +0000 |
| commit | 530b42f465b0ab31fbb4c2754d0e385b330f3b5f (patch) | |
| tree | 665fcdb94a895c88d00db926197bf2ab4b98fb69 /httemplate/view | |
| parent | b8e867851869e8dc53b117f91dd3de10ea56f66b (diff) | |
add cust_main-require_address2 config, reimplement address2-search config ("Unit #" search in searchbar), visual indication of require_invoicing_list_email, closes: RT#2926
Diffstat (limited to 'httemplate/view')
| -rw-r--r-- | httemplate/view/cust_main/contacts.html | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index b14769f78..52754d4cb 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -25,12 +25,23 @@ <TD ALIGN="right">Address</TD> <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address1") %></TD> </TR> + % if ( $cust_main->get("${pre}address2") ) { +% my $address2_label = +% ( $conf->exists('cust_main-require_address2') +% # && ( ( !$which && !$cust_main->has_ship_address ) +% # || ( $which && $cust_main->has_ship_address ) +% # ) +% && ! ( $which xor $cust_main->has_ship_address ) +% ) +% ? 'Unit #' +% : ' '; + + <TR> + <TD ALIGN="right"><% $address2_label %></TD> + <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address2") %></TD> + </TR> -<TR> - <TD ALIGN="right"> </TD> - <TD COLSPAN=7 BGCOLOR="#ffffff"><% $cust_main->get("${pre}address2") %></TD> -</TR> % } <TR> |
