if the item with custom Boolean field ON is deleted before posting the order then it should distribute the custom Boolean field item's cost using Line Amount of other items as weight so if the Boolean field item is marked as 50 cost and there are 4 other items each with 5 quantities with line amount as 30,50,50,70 so total sales value is 250.
It will require customization, You can create a codeunit to check if the item has the Boolean field set to true, calculate the total sales value of the remaining items, and distribute the Boolean item's cost based on each remaining item's line amount relative to the total sales value. The code would update the line amounts of the other items accordingly before the Boolean item is deleted, ensuring that the cost is effectively allocated.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.