We are using the custom product scheduling in our organization.
When I am deleting the existing schedules its also updating the OpprtunityLineitem's quanity, salesprice and unitprice to '0'. Where as in standard schedule if we delete the schedule it will not update the above fields.
I don't t want to update the
OpportunityLineItem fields on deleting the schedule.
I am using the below query in my class:
Delete [SELECT id from OpportunityLineItemSchedule where OpportunityLineItemId = :oli.id ];
how to fix it?