! -> Note
$ -> Affected files
+10-Swp-2009 Joe Hunt
+! By changing a simple sentence in allocation_cart.inc, the customer/supplier payments works with prompt payment discounts
+$ /includes/ui/allocation_cart.inc
+
09-Sep-2009 Janusz Dobrowolski
# Added two special access areas for bank gl postings and grn removal.
$ /gl/gl_journal.php
if ($_SESSION['alloc']->type == 21 || $_SESSION['alloc']->type == 22)
$amount = -$amount;
- if ($total_allocated - $amount > sys_prefs::allocation_settled_allowance())
+ if ($total_allocated - ($amount + input_num('discount')) > sys_prefs::allocation_settled_allowance())
{
display_error(_("These allocations cannot be processed because the amount allocated is more than the total amount left to allocate."));
return false;