Merge pull request '20250410' (#146) from development into main

Reviewed-on: #146
This commit is contained in:
Nisse Lommerde 2025-04-10 18:09:32 +02:00
commit 5bdb0a4209
5 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,8 @@
# Changelog
**2025-04-10**
- Fixed #145 - Default order sort is incorrect (newest will always show on top now)
- Fixed #142 - Packing Slip content field should be required
**2025-04-08**
- Added #138 - Add Decoration method to order list
- Fixed #133 - Make product name not required

View File

@ -333,7 +333,7 @@ public static function table(Table $table): Table
->searchable()
->sortable(),
])
->defaultSort('order_date', 'desc')
->defaultSort('id', 'desc')
->filters([
SelectFilter::make('order_type')
->options(OrderType::class)

View File

@ -3,7 +3,6 @@
namespace App\Filament\Admin\Resources;
use App\Enums\IconEnum;
use App\Models\Customer;
use App\Models\Order;
use App\Models\PackingSlip;
use Filament\Forms\Components\DatePicker;

View File

@ -23,7 +23,7 @@
class Order extends Model
{
/** @use HasFactory<OrderFactory> */
use HasFactory, SoftDeletes, HasLocks;
use HasFactory, HasLocks, SoftDeletes;
protected $fillable = [
'customer_id',

View File

@ -25,7 +25,7 @@
| or any other location as required by the application or its packages.
*/
'version' => '20250403',
'version' => '20250410',
/*
|--------------------------------------------------------------------------