mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
9ed67e74e2
- Supplier (AP) - PO - DO - INV - Customer (AR) - PO - DO - INV
28 lines
551 B
PHP
28 lines
551 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
|
|
|
class Transaction extends AbstractModel
|
|
{
|
|
protected $table = 'transaction';
|
|
|
|
public function company(): HasOne
|
|
{
|
|
return $this->hasOne(Companies::class, 'company_id', 'id');
|
|
}
|
|
|
|
public function currency(): HasOne
|
|
{
|
|
return $this->hasOne(Currency::class, 'currency_id', 'id');
|
|
}
|
|
|
|
public function original_currency(): HasOne
|
|
{
|
|
return $this->hasOne(Currency::class, 'original_currency_id', 'id');
|
|
}
|
|
|
|
}
|