! -> Note
$ -> Affected files
+04-Dec-2009 Janusz Dobrowolski
+# [0000179] Cannot allocate ST_BANKPAYMENT type payments
+$ /includes/ui/allocation_cart.inc
+
04-Dec-2009 Joe Hunt
# Print Statement prints balances in wrong place.
$ /reporting/rep108.php
03-Dec-2009 Janusz Dobrowolski
-# Fixed bug [0000179] data error in supplier allocations
+# Fixed bug [0000178] data error in supplier allocations
$ /includes/ui/allocation_cart.inc
------------------------------- Release 2.2.1 ----------------------------------
}
$amount = $_SESSION['alloc']->amount;
- if ($_SESSION['alloc']->type == 21 || $_SESSION['alloc']->type == 22)
+
+
+ if (in_array($_SESSION['alloc']->type, array(ST_BANKPAYMENT, ST_SUPPCREDIT, ST_SUPPAYMENT)))
$amount = -$amount;
if ($total_allocated - ($amount + input_num('discount')) > $SysPrefs->allocation_settled_allowance())