Skip to content

Commit

Permalink
fix screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jack committed Jan 2, 2025
1 parent 3e1cb51 commit 0fcdb4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion innopacks/common/src/Repositories/OrderRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ class OrderRepo extends BaseRepo
*/
public static function getCriteria(): array
{
$statuses = \InnoShop\Common\Services\StateMachineService::getAllStatuses();
return [
['name' => 'number', 'type' => 'input', 'label' => trans('panel/order.number')],
['name' => 'customer_name', 'type' => 'input', 'label' => trans('panel/order.customer_name')],
['name' => 'email', 'type' => 'input', 'label' => trans('panel/order.email')],
['name' => 'telephone', 'type' => 'input', 'label' => trans('panel/order.telephone')],
['name' => 'shipping_method_name', 'type' => 'input', 'label' => trans('panel/order.shipping_method_name')],
['name' => 'billing_method_name', 'type' => 'input', 'label' => trans('panel/order.billing_method_name')],
['name' => 'status', 'type' => 'input', 'label' => trans('panel/order.status')],
['name' => 'status', 'type' => 'select', 'label' => trans('panel/order.status'), 'options' => $statuses, 'options_key'=>'status', 'options_label' => 'name'],
['name' => 'total', 'type' => 'range', 'label' => trans('panel/order.total'),
'start' => ['name' => 'start'],
'end' => ['name' => 'end'],
Expand Down

0 comments on commit 0fcdb4a

Please sign in to comment.