X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fdetach_pkg.html;h=dc23291505f64f11f5dc8ffea6076822a9a9de7f;hp=64b3e6e3f79650f4a689618e06efdf7e17c2a96f;hb=acb5db886076201922167d39d76fd9b3e9e54c9c;hpb=63973c641c4be00765fa27e55c57cc5b9aa4da19 diff --git a/httemplate/misc/detach_pkg.html b/httemplate/misc/detach_pkg.html index 64b3e6e3f..dc2329150 100755 --- a/httemplate/misc/detach_pkg.html +++ b/httemplate/misc/detach_pkg.html @@ -1,7 +1,5 @@ <& /elements/header-popup.html, mt("Detach Package to New Customer") &> - - <& /elements/error.html &>
@@ -30,7 +28,7 @@ - <% mt('Name') %> + <% emt('Name') %> <% $cust_pkg->contact_obj->line |h %> @@ -38,7 +36,7 @@ % #} - <% mt('Address') %> + <% emt('Address') %> <% $loc->location_label( 'join_string' => '
', @@ -50,9 +48,26 @@ +% if ( $conf->config_bool('cust_main-require_phone') ) { +% #XXX should be sticky on errors +% my $ph_cust_main = FS::cust_main->new({}); +% foreach my $contact_phone ( $cust_contact->contact_phone ) { +% my $t = $contact_phone->typename; +% #countrycodes? interface doesn't parse/take em yet +% $ph_cust_main->daytime( $contact_phone->phonenum ) if $t eq 'Work'; +% $ph_cust_main->night( $contact_phone->phonenum ) if $t eq 'Home'; +% $ph_cust_main->mobile( $contact_phone->phonenum ) if $t eq 'Mobile'; +% $ph_cust_main->fax( $contact_phone->phonenum ) if $t eq 'Fax'; +% } + + <& /elements/tr-cust_main-phones.html, + 'cust_main' => $ph_cust_main, + &> +% } + -%#XXX payment info +%#payment info %#XXX should be sticky on errors... <& /edit/cust_main/billing.html, FS::cust_main->new({}), invoicing_list => [],