Breaking Changes in Version 6.0
Summary
In version 6.0 we've redesigned how we keep track of the payment status of invoices and credit memos, to better track partial payments and prepayments.
Unfortunately, this had the side effect that we had to refactor some objects and events related to sales targets. If you have implemented any customizations related to sales targets, please check this document to review whether you need to update them for this release or not.
If you have a customization developed by iDynamics, we probably have already taken care of making it compatible with version 6.0. Check whether you have an email from us with the updated customization (that should be updated after you update iDynamics Commissions) and, if not, don't hesitate to ask us through our support portal
Sales Target Statistics
Objects
These two are due to now being able to have more than one detailed stats line by invoice (when we are tracking partial payments). The table key had to be updated, and that meant creating a new table (other than that, the available fields will be the same).
- Table "IDPCOS Sales Target Stats Line" has been replaced by "IDPCOS Dtld Sales Target Stats".
- Page "IDPCOS Sales Tgt. Stats Lines" has been replaced by page "IDPCOS Dtld Sales Target Stats".
Events
Related to the updated objects, above, the following events have been replaced to use the new table, in Codeunit IDPCOS Sales Target Stats Mgt.:
- OnBeforeCreateSalesTargetStatsLineForManager -> OnBeforeCreateDtldSalesTargetStatsForManager.
- OnBeforeCreateSalesTargetStatsLineForTeamRole -> OnBeforeCreateDtldSalesTargetStatsForTeamRole.
- OnCreateSalesTargetStatsLineForSalespersonForCustomBaseAmountCalcType -> OnCreateDtldSalesTargetStatsForSalespersonForCustomBaseAmountCalcType.
- OnBeforeInsertSalesTargetStatsLine -> OnBeforeInsertDtldSalesTargetStats.
- OnAfterInsertSalesTargetStatsLine -> OnAfterInsertDtldSalesTargetStats.
- OnAfterModifySalesTargetStatsLine -> OnAfterModifyDtldSalesTargetStats.
You should be able to directly replace the old events with the new events, after changing the Record variable received from the event (IDPCOS Sales Target Stats Line -> IDPCOS Dtld Sales Target Stats).