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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Codeunit customization to Auto Post Non-Invt. Items for Dropshipment Sales Orders.

(3) ShareShare
ReportReport
Posted on by 6
Hey Guys,
 
We are using Non-Invt Items with General Prod. Posting Group /FREIGHT/ add freight charges to the Sales and Purchase Orders, instead of Item Charges. 
 
For the Dropshipment orders, we had multiple scenarios where the freight line had to added to Sales Orders, but do not require it in a linked purchase order, as we have our own freighting companies to pick up P.Os from vendor, as forward freight. 
 
For these orders, we cannot automatically post freight lines in Sales Orders, as the freight line is not linked to P.O.
 
 
To address this issue, I am trying to develop a custom codeunit, and using Event handler, I am hoping to post the Sales Lines similar to the /Auto Post Non-Invt. via Whse. / function in BC, as below . 
 
 
I am struck at this stage, as I am struggling to figure out the exact trigger in codeunit: / Purch.-Post /. 
 
Can anyone suggest if I am on the right track, and which trigger I can use in this scenario.
 
Thanks in advance for any help
 
 
 
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans