Inventory/Stock
Tồn kho, nhưng
stock
chỉ đơn thuần nói về số lượng tồn không bao gôm giá trị nhưinventory
Purchase Order
Đơn mua hàng gửi đến nhà cung cấp, bao gồm số lượng, giá cả thoả thuận...
Purchase Return
Inventory/Stock
Tồn kho, nhưng
stock
chỉ đơn thuần nói về số lượng tồn không bao gôm giá trị nhưinventory
Purchase Order
Đơn mua hàng gửi đến nhà cung cấp, bao gồm số lượng, giá cả thoả thuận...
Purchase Return
must add <\/closetag>
var markup = '<div class="media">'+
' <div class="media-left">'+
' <img class="media-object" src="'+ thumb +'" style="height:40px; width:40px;">'+
' <\/div>'+
' <div class="media-body">'+
' <div><strong class="media-heading">'+item.name+'</strong><\/div>'+
' <strong class="text-red"> '+numeral(item.price).format('0,0')+ '<\/strong>'+</strong>
$results = Stock::whereHas('receiptNotes',function ($query) { $query->where('status', 'approved'); })->where(function ($query) use ($q) { $query->where('name','like',"%$q%")->orWhere('code','like',"%$q%"); })->limit(10)->get();
#salipro: bug laravel, khong hoat dong neu nhu the nay
//->where('name','like',"%$q%")
//->orWhere('code','like',"%$q%")
Only override this method on Model
/**
* @param array $attributes
*
* @throws \Illuminate\Database\Eloquent\MassAssignmentException
* @return $this
*/
public function fill(array $attributes)
Copy this code to place that run for every request (bootstrap, base...)
app('view')->prependNamespace('admin', resource_path('views/admin'));
That mean system will replace view of admin
package with a same name file, same folder structure in view/admin
ex:
('admin::partials.header')
replace byview/admin/partials/header.blade.php
Only create resources/views/vendor/packagename
folder. Keep file and folder structure same as views
folder in package.
Header
must contains Accept: application/json
405
Method not exist, throw a exception immediately, middleware isnot called (except global middleware).
MethodNotAllowedHttpException
is aHttpException
. STOP now
500
Throw a exception
FatalThrowableError
immediately, middleware isnot called, STOP now
401, 403
You may define your API's scopes using the Passport::tokensCan
method in the boot method of your AuthServiceProvider
. Client can not request access_token with scopes if it does not define in tokensCan
already.
use Laravel\Passport\Passport;
Passport::tokensCan([
'place-orders' => 'Place orders',
'check-status' => 'Check order status',
]);