}
 } else {
     if ($form_id == 25) {
         ///edit inventry
         if (isset($_POST['inventry_id']) and !empty($_POST['inventry_id']) and isset($_POST['in_stock_count']) and isset($_POST['mrp']) and isset($_POST['tax_category_id']) and !empty($_POST['tax_category_id'])) {
             $inv = new inventry();
             $inv->id = $_POST['inventry_id'];
             $inv->getInventry();
             $inv->in_stock_count = $_POST['in_stock_count'];
             $inv->selling_prize = $_POST['mrp'];
             $inv->tax_category_id = $_POST['tax_category_id'];
             if ($inv->updateInventry()) {
                 $message = "Stock Updated Successfuly";
                 $responce = array('status' => 'success', 'error' => '', 'data' => array("message" => $message, "id" => $inv->id));
             } else {
                 $description = "Stock update failed, Stock : " . $inv->to_string();
                 Log::e($tag, $description);
                 $mysql_error = mysql_error();
                 if (empty($mysql_error)) {
                     $error_message = 'Some server error occured';
                 } else {
                     $error_message = $mysql_error;
                 }
                 $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
             }
         } else {
             $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
         }
     } else {
         if ($form_id == 27) {
             ///edit company
             }
         }
     } else {
         $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
     }
 } else {
     if ($form_id == 20) {
         ///stock: (inventry) delete
         if (isset($_POST['inventry_id']) and !empty($_POST['inventry_id'])) {
             $inventry = new inventry();
             $inventry->id = $_POST['inventry_id'];
             if ($inventry->deleteInventry()) {
                 $message = "Inventry deleted Successfuly";
                 $responce = array('status' => 'success', 'error' => '', 'data' => array("message" => $message, "id" => $inventry->id));
             } else {
                 $description = "Inventry delete failed, item : " . $inventry->to_string();
                 Log::e($tag, $description);
                 $mysql_error = mysql_error();
                 if (empty($mysql_error)) {
                     $error_message = 'Some server error occured';
                 } else {
                     $error_message = $mysql_error;
                 }
                 $responce = array('status' => 'failed', 'error' => $error_message, 'data' => array());
             }
         } else {
             $responce = array('status' => 'failed', 'error' => 'Data missing', 'data' => array());
         }
     } else {
         if ($form_id == 21) {
             ///customer delete