Inventory/Stock
Tồn kho, nhưng
stockchỉ đơ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
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Auth\AuthenticationException; | |
| use League\OAuth2\Server\Exception\OAuthServerException; | |
| use Symfony\Bridge\PsrHttpMessage\Factory\DiactorosFactory; | |
| use Laravel\Passport\Http\Middleware\CheckClientCredentials; | |
| class MyCheckClientCredentials extends CheckClientCredentials | |
| { |
Inventory/Stock
Tồn kho, nhưng
stockchỉ đơ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).
MethodNotAllowedHttpExceptionis aHttpException. STOP now
500
Throw a exception
FatalThrowableErrorimmediately, middleware isnot called, STOP now
401, 403