X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fallocations%2Fsupplier_allocate.php;h=14632d7d013855c945438c72df72bd2d67f1d07f;hb=4deaa6ba6e084655989c30cfb7d9dd307408c7dc;hp=d26ed61bf796ce02c4e51dbf09c0f11c22ea8bd1;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/purchasing/allocations/supplier_allocate.php b/purchasing/allocations/supplier_allocate.php index d26ed61b..14632d7d 100644 --- a/purchasing/allocations/supplier_allocate.php +++ b/purchasing/allocations/supplier_allocate.php @@ -55,15 +55,13 @@ function edit_allocations_for_transaction($type, $trans_no) display_heading2(_("Date:") . " " . $cart->date_ . ""); - display_heading2(_("Total:"). " " . price_format(-$cart->bank_amount).' '.$cart->currency.""); - if (floatcmp($cart->bank_amount, $cart->amount)) - { - $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); - } + display_heading2(_("Total:"). " " . price_format(-$cart->bank_amount).' '.$cart->currency.""); + + $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 "
"; div_start('alloc_tbl'); @@ -92,7 +90,7 @@ if (isset($_POST['Process'])) { if (check_allocations()) { - $_SESSION['alloc']->write(); + write_supp_allocation($_SESSION['alloc']); clear_allocations(); $_POST['Cancel'] = 1; }