X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fallocations%2Fsupplier_allocate.php;h=2ebbb227858f6cf65ab0e95c9bbd62d3bcc30cd8;hb=c164d1f25c5258939976042fa8796b71ac54c188;hp=a12494067783efe391fafe93f3ba8ec5fdfbf02f;hpb=1571869d54be48452fdbe08f25130972ff0a7b5a;p=fa-stable.git
diff --git a/purchasing/allocations/supplier_allocate.php b/purchasing/allocations/supplier_allocate.php
index a1249406..2ebbb227 100644
--- a/purchasing/allocations/supplier_allocate.php
+++ b/purchasing/allocations/supplier_allocate.php
@@ -57,11 +57,12 @@ function edit_allocations_for_transaction($type, $trans_no)
display_heading2(_("Total:"). " " . price_format(-$cart->bank_amount).' '.$cart->currency."");
- if ($cart->currency != $cart->person_curr)
+ if (floatcmp($cart->bank_amount, $cart->amount))
{
- $total = _("Total in clearing currency:") . " " . price_format(-$cart->amount).""
- . sprintf(" %s (%s %s/%s)", $cart->person_curr, exrate_format($cart->bank_amount/$cart->amount), $cart->currency, $cart->person_curr);
- display_heading2($total);
+ $total = _("Amount ot be settled:") . " " . price_format(-$cart->amount).' '.$cart->person_curr."";
+ 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 "
";