Loading

InsPolicyService:createPolicyVersion – MTA Payment Schedule Entries Not Updated When useIsPaidFlag Is True

Publiseringsdato: Jul 7, 2026
Beskrivelse

When useIsPaidFlag is set to true, the InsPolicyService:createPolicyVersion service evaluates each existing payment schedule entry on the root or original policy before deciding whether to update or create entries. The service only updates entries that are in Status = 'Valid' and have isPaid = false (unchecked). Any entry that fails either condition causes the service to create new payment schedule entries instead of updating existing ones.

How the service decides to update vs. create:

The behavior depends on the Status of all existing payment schedule entries at the time createPolicyVersion is called:

  • All entries have Status = 'Valid' and isPaid = false: The service updates the existing payment schedule entries with recalculated premium, tax, and fee amounts.
  • Any entry has Status other than 'Valid' (for example, Pending) or isPaid = true: The service skips updating existing entries and creates new payment schedule entries instead.
    This design ensures that entries already processed or marked as paid are not overwritten during an MTA payment recalculation.
Løsning
  1. Before calling `createPolicyVersion`, update all Pending entries to 'Valid' and isPaid is unchecked
  2. Call createPolicyVersion with useIsPaidFlag: true
  3. After MTA completes, revert the entries back to 'Pending' if needed

 

Knowledge-artikkelnummer

005387145

 
Laster
Salesforce Help | Article