1. In the contract saving process, if, Detailed Commission Tracking = Y and when the Contract Status (Captorhe_contractstatus) = APPROVED and Commission Calculation Base Date = Y, need to add the commission entries as per the current state.
2. If the Document Type = QUOTE and Contract Status = VOID or CANCELLED, per credit note, need to enter the negative commission entries.