web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Split the cost of custom Boolean field item before deleting and split the cost to other items

(1) ShareShare
ReportReport
Posted on by 291
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. 
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,283 Super User 2026 Season 1 on at
    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.

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,937 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,031 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 700 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans