fix and update the functionality and the ui for accounting automation

This commit is contained in:
Omair Saleh
2023-04-18 12:07:27 +08:00
parent 6aa2ed53c7
commit 4a6ae598fa
38 changed files with 2088 additions and 566 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StatementTransactionOwner extends Model
{
use HasFactory;
protected $fillable = [
'statement_transaction_id',
'type',
'system',
'owner_type',
'owner_id',
'invoice_reference',
'receipt_reference',
'status',
];
public function transaction(): BelongsTo
{
return $this->belongsTo(StatementTransaction::class, 'statement_transaction_id', 'id');
}
}