belongsTo(Shipment::class); } public function order() { return $this->belongsTo(Order::class); } // Helper: return order data with fallback to snapshot public function getDisplayQty() { return $this->order->qty ?? $this->order_qty; } public function getDisplayAmount() { return $this->order->ttl_amount ?? $this->order_ttl_amount; } }