diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2015-06-30 03:24:08 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2015-06-30 03:24:08 -0500 |
commit | d13dae1c37c36c27f1ac9fd134c5d8b3a4fb9754 (patch) | |
tree | 45450ba72942d1539acecaa797133ba01d68f5a9 /FS/FS/UI | |
parent | 633af1c0e996b16d0e18a7cdff05490ea7d46ca6 (diff) |
RT#29285: State field not needed for New Zealand
Diffstat (limited to 'FS/FS/UI')
-rw-r--r-- | FS/FS/UI/Web/small_custview.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/UI/Web/small_custview.pm b/FS/FS/UI/Web/small_custview.pm index 72af03e..329e5f7 100644 --- a/FS/FS/UI/Web/small_custview.pm +++ b/FS/FS/UI/Web/small_custview.pm @@ -129,7 +129,8 @@ sub small_custview { $html .= encode_entities($cust_main->address1). '<BR>'; $html .= encode_entities($cust_main->address2). '<BR>' if $cust_main->address2; - $html .= encode_entities($cust_main->city). ', '. $cust_main->state. ' '. + $html .= encode_entities($cust_main->city) . ', ' if $cust_main->city; + $html .= $cust_main->state. ' '. $cust_main->zip. '<BR>'; $html .= $cust_main->country. '<BR>' if $cust_main->country && $cust_main->country ne $countrydefault; @@ -162,7 +163,7 @@ sub small_custview { $cust_main->ship_company, $ship->address1, $ship->address2, - ($ship->city . ', ' . $ship->state . ' ' . $ship->zip), + (($ship->city ? $ship->city . ', ' : '') . $ship->state . ' ' . $ship->zip), ($ship->country eq $countrydefault ? '' : $ship->country ), ); |