[FEAT] 銷售訂單管理:補齊欄位、即時搜尋、篩選與來源自動判定
This commit is contained in:
@@ -11,9 +11,11 @@ class SalesOrder extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'external_order_id',
|
||||
'name',
|
||||
'status',
|
||||
'payment_method',
|
||||
'total_amount',
|
||||
'total_qty',
|
||||
'sold_at',
|
||||
'raw_payload',
|
||||
'source',
|
||||
@@ -24,6 +26,7 @@ class SalesOrder extends Model
|
||||
'sold_at' => 'datetime',
|
||||
'raw_payload' => 'array',
|
||||
'total_amount' => 'decimal:4',
|
||||
'total_qty' => 'decimal:4',
|
||||
];
|
||||
|
||||
public function items(): HasMany
|
||||
|
||||
Reference in New Issue
Block a user