summaryrefslogtreecommitdiff
path: root/UI/payments
diff options
context:
space:
mode:
Diffstat (limited to 'UI/payments')
-rw-r--r--UI/payments/payments_detail.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/UI/payments/payments_detail.html b/UI/payments/payments_detail.html
index 6fabf8ca..206d0d59 100644
--- a/UI/payments/payments_detail.html
+++ b/UI/payments/payments_detail.html
@@ -198,8 +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 ?>
- <?lsmb currency ?></td>
+ <td class="invoice"><?lsmb r.total_due ?> <?lsmb currency ?></td>
<td class="payment" class="details_select">
<?lsmb INCLUDE input element_data = {
name = "paid_$r.contact_id"
@@ -294,10 +293,12 @@
value = icount
} ?>
<?lsmb IF !r.unselected;
- IF (${"paid_$r.contact_id"} == 'some');
+ IF (${"paid_$r.contact_id"} == 'all');
+ grand_total = grand_total + r.total_due;
+ ELSIF (${"paid_$r.contact_id"} == 'some');
grand_total = grand_total + contact_total;
ELSE;
- grand_total = grand_total + r.total_due;
+ contact_total = 'error';
END; # IF (paid...)
END # IF !r.unselected) ?>
<tr class="subtotal">