X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fview%2Fcust_main.cgi;h=bbf34db116a1940e7d8bc5ea765e306cf1fb31c7;hb=1bb7816dd5c5f5f723c5976941069b97f477519b;hp=8d8af63d697b6bd57686705deaf9bea7951a5eaf;hpb=351b0af13ba6c449151c1bec2303294051c073d1;p=freeside.git diff --git a/httemplate/view/cust_main.cgi b/httemplate/view/cust_main.cgi index 8d8af63d6..bbf34db11 100755 --- a/httemplate/view/cust_main.cgi +++ b/httemplate/view/cust_main.cgi @@ -3,7 +3,6 @@ my $conf = new FS::Conf; -#false laziness with view/cust_pkg.cgi, but i'm trying to make that go away so my %uiview = (); my %uiadd = (); foreach my $part_svc ( qsearch('part_svc',{}) ) { @@ -302,13 +301,25 @@ if ( defined $cust_main->dbdef_table->column('comments') ''; } -print ''; +%> -print '
'. - '
'. - qq!!. - ' +

'; +
+ +<% if ( $conf->config('payby-default') ne 'HIDE' ) { - print '
'. + print qq!
!. qq!!. qq!Description:!. @@ -366,8 +379,7 @@ function svc_areyousure(href) { <% -print qq!
Packages !, -# qq!
Click on package number to view/edit package.!, +print qq!Packages !, qq!( Order and cancel packages (preserves services) )!, ; @@ -402,7 +414,7 @@ foreach my $pkg (sort pkgsort_pkgnum_cancel @$packages) { > - <%=$pkg->{pkgnum}%>: + <%=$pkg->{pkgnum}%>: <%=$pkg->{pkg}%> - <%=$pkg->{comment}%>
<% unless ($pkg->{cancel}) { %> ( <%=pkg_change_link($pkg)%> ) @@ -712,10 +724,10 @@ function cust_credit_areyousure(href) { } } if ( $cust_credit->credited > 0 ) { - $desc .= ' - $'. - $cust_credit->unapplied. ' unapplied'. + $desc .= '  $'. + $cust_credit->credited. ' unapplied'. qq! (apply'. + $cust_credit->crednum. '">apply)'. '
'; } } @@ -806,6 +818,7 @@ function cust_credit_areyousure(href) { $balance += $item->{'refund'} if exists $item->{'refund'}; $balance = sprintf("%.2f", $balance); $balance =~ s/^\-0\.00$/0.00/; #yay ieee fp + ( my $showbalance = '$'. $balance ) =~ s/^\$\-/- \$/; %> @@ -821,11 +834,11 @@ function cust_credit_areyousure(href) { <%= $item->{'desc'} %> - <%= $charge %> - <%= $payment %> - <%= $credit %> - <%= $refund %> - $<%= $balance %> + <%= $charge %> + <%= $payment %> + <%= $credit %> + <%= $refund %> + <%= $showbalance %> <% } %> @@ -897,7 +910,7 @@ sub get_packages { ) ) { - warn "svcnum ". $cust_svc->svcnum. " / svcpart ". $cust_svc->svcpart. "\n"; + #warn "svcnum ". $cust_svc->svcnum. " / svcpart ". $cust_svc->svcpart. "\n"; my $svc = { 'svcnum' => $cust_svc->svcnum, 'label' => ($cust_svc->label)[1], @@ -990,11 +1003,6 @@ sub pkg_datestr { $strip; } -#sub pkg_details_link { -# my $pkg = shift or return ''; -# return qq!Details!; -#} - sub pkg_change_link { my $pkg = shift or return ''; return qq!Change package!;