Condition_CanPayInsuranceFee
Description
Checks whether the specified entity has enough currency to pay the insurance fee for S1.
Fee type can be specified with S2:
- S2 = joining : compares against JoiningFee
Otherwise (including when S2 is None), this condition uses the recurring-fee path:
- compares against RecurringFee (only valid when the insurance has been billed)
- if the insurance status is overdue, it requires 2x recurring fee (B1Insurance::MAX_OVERDUE_COUNT == 2)
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The entity used as payer (Self or Target). |
| CompareType | Type of comparison operation (Equal or NotEqual). |
| S1 | Insurance id (Insurance.Id). |
| S2 | (Optional) Fee type: joining. (Otherwise treated as recurring.) |
Examples
| Description | BaseObject | Command | CompareType | S1 | S2 |
|---|---|---|---|---|---|
| Checks whether self can pay the joining fee. | Self | CanPayInsuranceFee | Equal | Insurance_* | joining |
| Checks whether self can pay the recurring fee. | Self | CanPayInsuranceFee | Equal | Insurance_* |