Loading
ただいま大変多くのお問い合わせをいただいており、ご連絡までにお時間を頂戴しております続きを読む

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

公開日: Jul 7, 2026
説明

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.
解決策
  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

 

その他のリソース

InsPolicyService:createPolicyVersion

ナレッジ記事番号

005387145

 
読み込み中
Salesforce Help | Article