import debtor

This commit is contained in:
edmondlang
2022-09-29 19:11:59 +08:00
parent f7a1ba05f8
commit b01e2022dc
10 changed files with 341 additions and 0 deletions
+9
View File
@@ -186,6 +186,15 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable,
return $this->morphMany(Remark::class, 'owner');
}
/**
* @return hasManyDeep
*/
public function transactions(): hasManyDeep
{
return $this->hasManyDeep(Transaction::class, [Order::class], ['company_module_id', 'owner_id'], ['id', 'id']);
}
}