|
|
@@ -13,7 +13,7 @@ class OrderPackageFilters
|
|
|
protected $request;
|
|
|
protected $queryBuilder;
|
|
|
protected $filters = ['logistic_number', 'status', 'received_at_start',
|
|
|
- 'received_at_end', 'is_weighed', 'logistic_id', 'owner_id', 'sent_at_start', 'sent_at_end', 'is_exception','default_date'];
|
|
|
+ 'received_at_end', 'is_weighed', 'logistic_id', 'owner_id', 'sent_at_start', 'sent_at_end', 'is_exception','exception_type','default_date'];
|
|
|
|
|
|
public function __construct(Request $request)
|
|
|
{
|
|
|
@@ -37,6 +37,10 @@ class OrderPackageFilters
|
|
|
{
|
|
|
$this->queryBuilder->where('logistic_number', $logistic_number);
|
|
|
}
|
|
|
+ private function exception_type($exception_type)
|
|
|
+ {
|
|
|
+ $this->queryBuilder->where('exception_type', $exception_type);
|
|
|
+ }
|
|
|
|
|
|
private function status($status)
|
|
|
{
|