<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
final class ReceiptAllocation extends Model { protected $fillable=['receipt_id','customer_invoice_id','amount']; protected function casts(): array{return ['amount'=>'decimal:4'];} public function receipt(): BelongsTo{return $this->belongsTo(Receipt::class);} public function invoice(): BelongsTo{return $this->belongsTo(CustomerInvoice::class,'customer_invoice_id');} }
