feat(migrations): update franchise to percentage in tenant_insurances and tenant_service_coverage
- Changed franchise_rials to franchise_percent in tenant_insurances and tenant_service_coverage tables. - Reset old rial values to 0/NULL as they are not convertible to percentage. feat(command): add SeedInsuranceScenarioCommand for seeding insurance data - Implemented a command to seed supplementary insurance contracts, patients, and claims for a specified doctor. - Includes functionality for purging existing scenario data and generating new entries with predefined contracts and patient scenarios.
This commit is contained in:
@@ -6,14 +6,17 @@ final readonly class CoverageRule
|
||||
{
|
||||
public function __construct(
|
||||
public float $coveragePercent,
|
||||
/** فقط برای بیمهٔ تکمیلی معنا دارد؛ در بیمهٔ پایه در محاسبه دخالت نمیکند. */
|
||||
public int $franchiseRials,
|
||||
/**
|
||||
* درصدِ سهم اجباری بیمار از مبلغ تحت پوشش — از سهم بیمه کسر میشود.
|
||||
* فقط برای بیمهٔ تکمیلی معنا دارد؛ در بیمهٔ پایه در محاسبه دخالت نمیکند.
|
||||
*/
|
||||
public float $franchisePercent,
|
||||
public ?int $ceilingRials,
|
||||
public bool $covered = true,
|
||||
) {}
|
||||
|
||||
public static function notCovered(): self
|
||||
{
|
||||
return new self(0.0, 0, null, false);
|
||||
return new self(0.0, 0.0, null, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user