X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fallocations%2Fcustomer_allocate.php;h=8c051386dfe81bd5f3c340780d66f123c5b82447;hb=c82cbc67f22454e4afd30e53c40043b54a732be3;hp=ab3a30013ab7cf11ea2c7d3dd960379d14e52321;hpb=95ff74b5722826544743a01daf527aa3c9efe11a;p=fa-stable.git diff --git a/sales/allocations/customer_allocate.php b/sales/allocations/customer_allocate.php index ab3a3001..8c051386 100644 --- a/sales/allocations/customer_allocate.php +++ b/sales/allocations/customer_allocate.php @@ -46,7 +46,12 @@ function edit_allocations_for_transaction($type, $trans_no) global $systypes_array; $cart = $_SESSION['alloc']; - + + if ($cart->type == ST_JOURNAL && $cart->bank_amount < 0) + { + $cart->bank_amount = -$cart->bank_amount; + $cart->amount = -$cart->amount; + } display_heading(sprintf(_("Allocation of %s # %d"), $systypes_array[$cart->type], $cart->trans_no)); display_heading($cart->person_name);