Issue with Billing dates in Billing Plan in SD Contract orders
I'm facing an issue with Billing dates in the Billing Plan tab in SD Contracts.
My requirement is to update the 'Billing frequency' , the field FPLA-PERIO in the Billing Plan. i.e if the earlier value was "50" - Monthly on first of month, my program would update that field with '92' - Semi Annually on First of month or '93' - Annually on first of month etc. based on certain logic.
The issue is that that though the value for FPLA-PERIO is getting updated, the billing dates in the tabstrip below are not getting altered after the new value of FPLA-PERIO is saved. So, if there were 10 lines earlier and post the update of FPLA-PERIO, the dates need to be only upto 2/3 lines ( based on semi annual/annual ), thats not happening. I've tried using BILLING_SCHEDULE_SAVE, 'SD_SALES_BILLINGPLAN_CHANGE' etc to achieve this.
Can anybody provide any inputs on this please ?