mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix transaction model duplicated methods
This commit is contained in:
@@ -39,7 +39,7 @@ class Transaction extends AbstractModel implements Documentable, Transactionable
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MorphOne
|
||||
* @return \Illuminate\Database\Eloquent\Relations\MorphOne
|
||||
*/
|
||||
public function creditNoteTransaction()
|
||||
{
|
||||
@@ -47,21 +47,13 @@ class Transaction extends AbstractModel implements Documentable, Transactionable
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MorphMany
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function booking(): BelongsTo
|
||||
{
|
||||
return $this->BelongsTo(Booking::class, 'owner_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return MorphMany
|
||||
*/
|
||||
public function transactions(): MorphMany
|
||||
{
|
||||
return $this->MorphMany(Transaction::class, 'owner');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user