[freeside-commits] freeside/httemplate/view/cust_main/packages location.html, 1.6, 1.6.4.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Dec 23 13:22:17 PST 2009
- Previous message: [freeside-commits] freeside/FS/FS cust_bill.pm, 1.263.2.12, 1.263.2.13 cust_location.pm, 1.2.4.1, 1.2.4.2 cust_main.pm, 1.464.2.14, 1.464.2.15 cust_pkg.pm, 1.139.2.7, 1.139.2.8
- Next message: [freeside-commits] freeside/FS/FS Yori.pm,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages
In directory wavetail.420.am:/tmp/cvs-serv22355/httemplate/view/cust_main/packages
Modified Files:
Tag: FREESIDE_1_9_BRANCH
location.html
Log Message:
correct invoice package address display and reduce false laziness
Index: location.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/cust_main/packages/location.html,v
retrieving revision 1.6
retrieving revision 1.6.4.1
diff -u -d -r1.6 -r1.6.4.1
--- location.html 7 Feb 2009 08:23:10 -0000 1.6
+++ location.html 23 Dec 2009 21:22:15 -0000 1.6.4.1
@@ -4,18 +4,10 @@
<I><FONT SIZE=-1>(default service address)</FONT><BR>
% }
- <% $loc->get($prefix.'address1') |h %><BR>
-
-% if ( $loc->get($prefix.'address2') !~ /^\s*$/ ) {
- <% $loc->get($prefix.'address2') |h %><BR>
-% }
-
- <% $loc->get($prefix.'city') |h %><% $loc->get($prefix.'county') ? ' ('.$loc->get($prefix.'county').' county)' : '' |h %>,
- <% $loc->get($prefix.'state') |h %> <% $loc->get($prefix.'zip') |h %><BR>
-
-% if ( $loc->get($prefix.'country') ne $countrydefault ) {
- <% code2country( $loc->get($prefix.'country') ) %>
-% }
+ <% $loc->location_label( 'join_string' => '<BR>',
+ 'escape_function' => \&encode_entities,
+ )
+ %>
</I>
@@ -35,14 +27,11 @@
my $bgcolor = $opt{'bgcolor'};
my $cust_pkg = $opt{'cust_pkg'};
-my $part_pkg = $opt{'part_pkg'};
my $countrydefault = $opt{'countrydefault'} || 'US';
my $statedefault = $opt{'statedefault'}
|| ($countrydefault eq 'US' ? 'CA' : '');
my $loc = $cust_pkg->cust_location_or_main;
-my $prefix =
- ( $loc->table eq 'cust_main' && length($loc->ship_last) ) ? 'ship_' : ''; #doh
sub pkg_change_location_link {
my $cust_pkg = shift;
- Previous message: [freeside-commits] freeside/FS/FS cust_bill.pm, 1.263.2.12, 1.263.2.13 cust_location.pm, 1.2.4.1, 1.2.4.2 cust_main.pm, 1.464.2.14, 1.464.2.15 cust_pkg.pm, 1.139.2.7, 1.139.2.8
- Next message: [freeside-commits] freeside/FS/FS Yori.pm,1.2,1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list