From: Janusz Dobrowolski Date: Mon, 12 Oct 2009 22:09:14 +0000 (+0000) Subject: q X-Git-Tag: v2.4.2~19^2~1133 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=262bd1ad81de77261f55c4eff87dc1c7fa6e7bfe;p=fa-stable.git q --- diff --git a/purchasing/allocations/supplier_allocation_main.php b/purchasing/allocations/supplier_allocation_main.php index 4796399d..47360922 100644 --- a/purchasing/allocations/supplier_allocation_main.php +++ b/purchasing/allocations/supplier_allocation_main.php @@ -30,12 +30,6 @@ page(_("Supplier Allocations"), false, false, "", $js); start_form(); /* show all outstanding receipts and credits to be allocated */ - /*Clear any previous allocation records */ - if (isset($_SESSION['alloc'])) - { - unset($_SESSION['alloc']->allocs); - unset($_SESSION['alloc']); - } if (!isset($_POST['supplier_id'])) $_POST['supplier_id'] = get_global_supplier(); diff --git a/sales/allocations/customer_allocation_main.php b/sales/allocations/customer_allocation_main.php index ad031353..edccecfa 100644 --- a/sales/allocations/customer_allocation_main.php +++ b/sales/allocations/customer_allocation_main.php @@ -25,13 +25,8 @@ page(_("Customer Allocations"), false, false, "", $js); start_form(); /* show all outstanding receipts and credits to be allocated */ - /*Clear any previous allocation records */ - if (isset($_SESSION['alloc'])) - { - unset($_SESSION['alloc']->allocs); - unset($_SESSION['alloc']); - } - if (!isset($_POST['customer_id'])) + + if (!isset($_POST['customer_id'])) $_POST['customer_id'] = get_global_customer(); echo "
" . _("Select a customer: ") . "  ";