isLoggedIn())
{
header ("location: ../login.php");
exit();
}
if(isset($_GET['action']))
{
$action=$_GET['action'];
switch($action)
{
case $action=='all':
$sec->closeSale();
break;
case $action=='item':
$pos=$_GET['pos'];
for($k=0;$kcloseSale();
}
break;
}
}
break;
case $action=='item_search':
unset($_SESSION['current_item_search']);
break;
case $action=='customer_search':
unset($_SESSION['current_customer_search']);
break;
}
}
header ("location: sale_ui.php");
$dbf->closeDBlink();
ob_end_flush();
?>