export arrived parcel improvements

This commit is contained in:
Omair Saleh
2023-09-01 05:13:21 +08:00
parent 7979d89997
commit 63b212a66c
2 changed files with 12 additions and 4 deletions
+8 -2
View File
@@ -29,7 +29,7 @@ use App\Classes\General\Interfaces\Remarkable;
* Class CompanyModule
* @package App\Models
*
* @property \App\Models\Company company_id
* @property \App\Models\Company company_id
* @property integer type
* @property integer status
*/
@@ -111,6 +111,12 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable,
return $this->hasMany(CompanyConnection::class, 'invitee_id');
}
public function getMarking()
{
$connection = $this->inviters->first();
return $connection ? $connection->pivot->invitee_reference : '';
}
/**
* @return HasMany
*/
@@ -193,7 +199,7 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable,
{
return $this->hasManyDeep(Transaction::class, [Order::class], ['company_module_id', 'owner_id'], ['id', 'id']);
}
/**
* @return MorphMany
*/