From 262bd1ad81de77261f55c4eff87dc1c7fa6e7bfe Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Mon, 12 Oct 2009 22:09:14 +0000 Subject: [PATCH] q --- purchasing/allocations/supplier_allocation_main.php | 6 ------ sales/allocations/customer_allocation_main.php | 9 ++------- 2 files changed, 2 insertions(+), 13 deletions(-) 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: ") . "  "; -- 2.30.2