CasperSecurity
<?php
session_start();
include '../../connection/connection.php';
$amount = $_REQUEST['amount'];
$asset_item_id = $_REQUEST['asset_item_id'];
$date = $_REQUEST['written_off_date'];
$action = $_REQUEST['action'];
if(!empty($asset_item_id)){
$db_handle=new DBController();
$upp=$db_handle->runMyUpdate("UPDATE asset_item SET asset_item_status = 'Written Off',written_off_date = '$date',asset_writeoff_cost = '$amount' ,physical_verification_status = '$action'
WHERE asset_item_id = '$asset_item_id' ");
if($upp == TRUE){
$_SESSION['ERROR_MSG'] = "Success";
$_SESSION['MSG_ALRT'] = "TRUE";
header('location:../../../web/home/modules/retire/Asset_lost_stolen/assetloststolengrid.php');
}else{
$_SESSION['ERROR_MSG'] = "Unsuccess";
$_SESSION['MSG_ALRT'] = "FALSE";
header('location:../../../web/home/modules/retire/Asset_lost_stolen/assetloststolengrid.php');
}
}
?>