summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_credit_bill.cgi
diff options
context:
space:
mode:
authorjeff <jeff>2006-08-26 23:15:14 +0000
committerjeff <jeff>2006-08-26 23:15:14 +0000
commit6af1b1bfa25e5ececef5e0dcd38b55917121cee2 (patch)
treecb81deb99bee814a037fd866fa10981ae459472f /httemplate/edit/cust_credit_bill.cgi
parent62ee3858ef853cb2b4f1a6cd98f8a608e7d11d7d (diff)
batch refactor continued
Diffstat (limited to 'httemplate/edit/cust_credit_bill.cgi')
-rwxr-xr-xhttemplate/edit/cust_credit_bill.cgi8
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/edit/cust_credit_bill.cgi b/httemplate/edit/cust_credit_bill.cgi
index 249ba31d0..26c1126b1 100755
--- a/httemplate/edit/cust_credit_bill.cgi
+++ b/httemplate/edit/cust_credit_bill.cgi
@@ -21,6 +21,12 @@ Credit #<B><% $crednum %></B>
<SCRIPT>
function changed(what) {
cust_bill = what.options[what.selectedIndex].value;
+% foreach my $cust_bill ( @cust_bill ) {
+% my $invnum = $cust_bill->invnum;
+% my $changeto = $cust_bill->owed < $cust_credit->credited
+% ? $cust_bill->owed
+% : $cust_credit->credited;
+%
% foreach my $cust_bill ( @cust_bill ) {
@@ -38,6 +44,7 @@ function changed(what) {
<BR>Invoice #<SELECT NAME="invnum" SIZE=1 onChange="changed(this)">
<OPTION VALUE="">
+% foreach my $cust_bill ( @cust_bill ) {
% foreach my $cust_bill ( @cust_bill ) {
<OPTION<% $cust_bill->invnum eq $invnum ? ' SELECTED' : '' %> VALUE="<% $cust_bill->invnum %>"><% $cust_bill->invnum %> - <% time2str("%D",$cust_bill->_date) %> - $<% $cust_bill->owed %>
@@ -90,3 +97,4 @@ my @cust_bill = sort { $a->_date <=> $b->_date
qsearch('cust_bill', { 'custnum' => $cust_credit->custnum } );
</%init>
+