Beispiel #1
0
 /**
  * Close the store transactions
  */
 public function closeStore()
 {
     $production_item = new ProductionItem();
     Session::put("STORE", "CLOSE");
     Session::put("REGISTER", "CLOSE");
     Session::put("PRODUCTION", "CLOSE");
     //save the unsold items for the day
     $items = $production_item->saveUnsoldItems();
     //update the item status to unsold
     // $update =
     // return $items;
     return Response::json(['response' => '200', 'msg' => 'Success']);
 }