migrate wallets and create function for regenerates invoice

This commit is contained in:
edmondlang
2023-03-11 16:48:54 +08:00
parent 9f8ba5163c
commit eea8708b76
69 changed files with 3526 additions and 66 deletions
+7 -3
View File
@@ -194,7 +194,11 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable,
return $this->hasManyDeep(Transaction::class, [Order::class], ['company_module_id', 'owner_id'], ['id', 'id']);
}
/**
* @return MorphMany
*/
public function wallets(): morphMany
{
return $this->morphMany(Wallet::class, 'owner');
}
}