diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-09-25 02:01:35 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-09-25 02:01:35 +0000 |
commit | 7fad3552f9a62dcaf51fb13880bf0dba476883bf (patch) | |
tree | 53bd6883280b5f57290a7a1ccfbd28cd0d4ccf85 /UI | |
parent | 0a1573bd053a30b3ba2690fcf3545be02cb2eaa8 (diff) |
Addressing performance issues in multiple payments interface. Adding additional formatting options to format_number, and making multiple payment interface more locale safe.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2340 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r-- | UI/payments/payments_detail.html | 57 |
1 files changed, 26 insertions, 31 deletions
diff --git a/UI/payments/payments_detail.html b/UI/payments/payments_detail.html index c69a88fe..f80cab95 100644 --- a/UI/payments/payments_detail.html +++ b/UI/payments/payments_detail.html @@ -5,8 +5,8 @@ 'UI/payments/payments.css' ] ?> -<?lsmb BLOCK format_money ?><?lsmb FILTER format('%15.2f') ?><?lsmb number -?><?lsmb END # filter ?><?lsmb END # block ?> +<?lsmb BLOCK format_money ?><?lsmb number +?><?lsmb END # block ?> <?lsmb PROCESS elements.html # Include form elements helper. ?> <?lsmb contact_type = (account_class == 1) ? text('Vendor') : text('Customer') ?> @@ -198,7 +198,7 @@ ELSE ; 'name_has_no_vouchers' ; END ?>"><?lsmb r.contact_name ?></span></td> - <td class="invoice"><?lsmb INCLUDE format_money number=r.total_due ?> + <td class="invoice"><?lsmb r.total_due ?> <?lsmb currency ?></td> <td class="payment" class="details_select"> <?lsmb INCLUDE input element_data = { @@ -243,47 +243,42 @@ <?lsmb icount = icount + 1 ?> <tr> <td class="invoice_date_list"> <?lsmb i.2 ?></td> - <?lsmb PROCESS input element_data = { - name = "invdate_$i.0" + <input + name = "<?lsmb "invdate_$i.0" ?>" type = "hidden" value = i.2 - } ?> + /> <td class="invoice_list"> <?lsmb i.1 ?></td> - <?lsmb PROCESS input element_data = { - name = "invnumber_$i.0" + <input + name = "<?lsmb "invnumber_$i.0" ?>" type = "hidden" - value = i.1 + value = "<?lsmb i.1 ?>" } ?> <td class="total_due_list"> - <?lsmb INCLUDE format_money number=i.3 ?></td> + <?lsmb i.3 ?></td> <td class="paid_list"> - <?lsmb INCLUDE format_money number=i.4 ?></td> + <?lsmb i.4 ?></td> <td class="net_due_list"> - <?lsmb INCLUDE format_money number= i.6 ?> + <?lsmb i.6 ?> <?lsmb currency ?></td> <td class="to_pay_list"> - <?lsmb IF ! ${"payment_$r.contact_id_$i.0"} ?> - - <?lsmb ${"payment_$r.contact_id_$i.0"} = - INCLUDE format_money number= i.6 ?> - <?lsmb END # if ?> - <?lsmb INCLUDE input element_data = { - name = "payment_$r.contact_id_$i.0" - value = ${"payment_$r.contact_id_$i.0"} + <input + name = "<?lsmb "payment_$i.0" ?>" + value = "<?lsmb ${"payment_$i.0"} ?>" size = 20 type = "text" class = "monetary" - } ?> - <?lsmb INCLUDE input element_data = { + /> + <input type = "hidden" - name = "invoice_${r.contact_id}_$icount" - value = i.0 - } ?> - <?lsmb INCLUDE input element_data = { + name = "<?lsmb "invoice_${r.contact_id}_$icount" ?>" + value = "<?lsmb i.0 ?>" + /> + <input type = "hidden" - name = "net_$i.0" - value = ${"payment_$r.contact_id_$i.0"} - } ?> + name = "<?lsmb "net_$i.0" ?>" + value = "<?lsmb ${"payment_$r.contact_id_$i.0"} ?>" + /> </td> </tr> <?lsmb END # foreach i ?> @@ -297,7 +292,7 @@ <?lsmb text('Contact Total (if paying "some")') ?> </td> <td><span id='<?lsmb ${"contact_total_$r.id"} ?>'> - <?lsmb INCLUDE format_money number= r.contact_total ?> + <?lsmb r.contact_total ?> </span><span class="currency"> <?lsmb currency ?></span> </td> @@ -310,7 +305,7 @@ <td class="total_label"><?lsmb text('Grand Total') ?></td> <td> <span id="grand_total"> - <?lsmb INCLUDE format_money number = grand_total ?> + <?lsmb grand_total ?> </span> <span class="currency"> <?lsmb currency ?> |