feat: 實作出貨單模組並暫時導向通用製作中頁面,同步優化盤點與調撥功能的活動日誌顯示
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 1m11s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-02-05 09:33:36 +08:00
parent 4299e985e9
commit 04f3891275
23 changed files with 1410 additions and 30 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Modules\Procurement\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ShippingOrderItem extends Model
{
use HasFactory;
protected $fillable = [
'shipping_order_id',
'product_id',
'batch_number',
'quantity',
'unit_price',
'subtotal',
'remark',
];
protected $casts = [
'quantity' => 'decimal:4',
'unit_price' => 'decimal:4',
'subtotal' => 'decimal:2',
];
public function shippingOrder()
{
return $this->belongsTo(ShippingOrder::class);
}
// 注意:在模組化架構下,跨模組關聯應謹慎使用或是直接在 Controller 水和 (Hydration)
// 但為了開發便利,暫時保留對 Product 的關聯(如果 Product 在不同模組,可能無法直接 lazy load
}