Some checks failed
Tests / PHP 8.1 (push) Has been cancelled
Tests / PHP 8.2 (push) Has been cancelled
Tests / PHP 8.3 (push) Has been cancelled
39 lines
776 B
PHP
39 lines
776 B
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Models;
|
|
|
|
use App\Abstracts\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class ReconciliationMatch extends Model
|
|
{
|
|
protected $table = 'ec_reconciliation_matches';
|
|
|
|
protected $fillable = [
|
|
'company_id',
|
|
'settlement_line_id',
|
|
'order_id',
|
|
'match_type',
|
|
'matched_amount',
|
|
'status',
|
|
'rule_version',
|
|
'confirmed_by',
|
|
'confirmed_at',
|
|
'note',
|
|
];
|
|
|
|
protected $casts = [
|
|
'confirmed_at' => 'datetime',
|
|
];
|
|
|
|
public function settlementLine(): BelongsTo
|
|
{
|
|
return $this->belongsTo(SettlementLine::class);
|
|
}
|
|
|
|
public function order(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Order::class);
|
|
}
|
|
}
|