I have a Work Order which is using bill of materials revision which is marked as inactive. When I try to edit the start date of the Work Order in suitescript, BOM revision is automatically changed to one that is not inactive.
If I load the record dynamically (isDynamic = true) and explicitly set the BOM revision to be the inactive one (the one that is currently selected on Work Order), record.save() will throw an INVALID_FLD_VALUE exception.
Start date can be changed manually from the UI while keeping the inactive BOM revision selected, so i guess this should be possible through suitescript as well.
How do I prevent this change from happening in suitescript? I want to keep the previously selected BOM revision despite it now being inactive.