diff options
author | Ivan Kohler <ivan@freeside.biz> | 2013-11-15 14:25:08 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2013-11-15 14:25:08 -0800 |
commit | 3e8cad17fc7fd48d4b622771d6b77c6c136d80f2 (patch) | |
tree | c5490df2770557b8c4426e709c8750bd3921f62e /httemplate/misc/detach_pkg.html | |
parent | beeaed152f7b8d6e663176abfe53a2fa058657e2 (diff) |
fix detaching w/cust_main-require_phone, RT#25987
Diffstat (limited to 'httemplate/misc/detach_pkg.html')
-rwxr-xr-x | httemplate/misc/detach_pkg.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/httemplate/misc/detach_pkg.html b/httemplate/misc/detach_pkg.html index 64b3e6e3f..366bbac3f 100755 --- a/httemplate/misc/detach_pkg.html +++ b/httemplate/misc/detach_pkg.html @@ -50,9 +50,26 @@ </TD> </TR> +% 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, + &> +% } + </TABLE> -%#XXX payment info +%#payment info %#XXX should be sticky on errors... <& /edit/cust_main/billing.html, FS::cust_main->new({}), invoicing_list => [], |