mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 04:24:01 +00:00
added function to show the list of warehouse receive note list
This commit is contained in:
@@ -15,6 +15,18 @@ use Validator;
|
||||
|
||||
class WarehouseArrangementController extends Controller
|
||||
{
|
||||
/**
|
||||
* Show a list of all of the Warehouse receive note.
|
||||
*
|
||||
* @return Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$warehousearr = Warehousearr::where('com_id', Auth::user()->company())->get();
|
||||
|
||||
return response()->json(['warehousearr'=>$warehousearr],200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display a the warehouse arrangement.
|
||||
*
|
||||
@@ -43,6 +55,8 @@ class WarehouseArrangementController extends Controller
|
||||
{
|
||||
$user = Auth::user();
|
||||
|
||||
$so = App\So::find(1);
|
||||
|
||||
$warehousearr = new Warehousearr;
|
||||
$warehousearr->so_id = $so->id;
|
||||
$warehousearr->receive_on = $request->input('receive_on');
|
||||
|
||||
Reference in New Issue
Block a user