From 61e988d7675346395d24f1d7a2e89f4d90b95a6c Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 20 Dec 2012 23:01:07 -0800 Subject: credit line items interface: set credit amounts, RT#18676 --- httemplate/edit/credit-cust_bill_pkg.html | 48 ++++++++++++++++------- httemplate/edit/process/credit-cust_bill_pkg.html | 2 +- 2 files changed, 35 insertions(+), 15 deletions(-) (limited to 'httemplate/edit') diff --git a/httemplate/edit/credit-cust_bill_pkg.html b/httemplate/edit/credit-cust_bill_pkg.html index e317936b3..f5c4eefbf 100644 --- a/httemplate/edit/credit-cust_bill_pkg.html +++ b/httemplate/edit/credit-cust_bill_pkg.html @@ -20,18 +20,18 @@ % next unless $amount > 0; % if ( $cust_bill_pkg->invnum ne $old_invnum ) { -   - Invoice #<% $cust_bill_pkg->invnum %> - <% time2str($date_format, $cust_bill_pkg->cust_bill->_date) %> +   + Invoice #<% $cust_bill_pkg->invnum %> - <% time2str($date_format, $cust_bill_pkg->cust_bill->_date) %> % $old_invnum = $cust_bill_pkg->invnum; % } +% my $el_name = 'billpkgnum'. $cust_bill_pkg->billpkgnum. '-'. $setuprecur; @@ -39,24 +39,35 @@ <% $cust_bill_pkg->desc |h %> %# show one-time/setup vs recur vs usage? <% $money_char. $amount %> + + <% $money_char %> + % } -  +  - Subtotal: + Subtotal: <% $money_char %><% sprintf('%.2f', 0) %> - Taxes: + Taxes: <% $money_char %><% sprintf('%.2f', 0) %> - Total credit amount: + Total credit amount: <% $money_char %><% sprintf('%.2f', 0) %> @@ -183,12 +194,21 @@ function calc_total(what) { var setuprecurs = []; var amounts = []; for (var i=0; iparam("billpkgnum$billpkgnum_setuprecur"); + my $amount = $cgi->param("billpkgnum$billpkgnum_setuprecur-amount"); my( $billpkgnum, $setuprecur ) = split('-', $billpkgnum_setuprecur); push @billpkgnums, $billpkgnum; push @setuprecurs, $setuprecur; -- cgit v1.2.1