Example #1
0
 public function getDeleteDetail($id)
 {
     $saleDetail = SAleDetail::find($id);
     $saleDetail->delete();
     Session::flash('message', 'Sale Detail   Successfully Deleted');
     return Redirect::to('sales/index');
 }
Example #2
0
 public function getDeleteDetail($id)
 {
     $saleDetail = SAleDetail::find($id);
     $saleDetail->delete();
     $message = array('Sale Detail   Successfully Deleted');
     return new JsonResponse($message);
 }