Customer Payment, Supplier Payment: early discount support.
[fa-stable.git] / sales / allocations / customer_allocate.php
index 68a1ff43102285dcda74ec46604f8f2f2e220d90..50e9d6e6b23afb26e1297e917faa3a9e9729b870 100644 (file)
@@ -56,15 +56,14 @@ function edit_allocations_for_transaction($type, $trans_no)
     display_heading($cart->person_name);
 
     display_heading2(_("Date:") . " <b>" . $cart->date_ . "</b>");
-       display_heading2(_("Total:"). " <b>" . price_format($cart->bank_amount).' '.$cart->currency."</b>");
 
        if (floatcmp($cart->bank_amount, $cart->amount))
-       {
-           $total = _("Amount ot be settled:") . " <b>" . price_format($cart->amount).' '.$cart->person_curr."</b>";
-               if ($cart->currency != $cart->person_curr)
-               $total .= sprintf(" (%s %s/%s)",  exrate_format($cart->bank_amount/$cart->amount), $cart->currency, $cart->person_curr);
-               display_heading2($total);
-       }
+               display_heading2(_("Total:"). " <b>" . price_format($cart->bank_amount).' '.$cart->currency."</b>");
+
+       $total = _("Amount to be settled:") . " <b>" . '<span id="total">'.price_format($cart->amount).'</span> '.$cart->person_curr."</b>";
+       if ($cart->currency != $cart->person_curr)
+               $total .= sprintf(" (%s %s/%s)",  exrate_format($cart->bank_amount/$cart->amount), $cart->currency, $cart->person_curr);
+       display_heading2($total);
 
     echo "<br>";