Skip to main content

Notifications

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.

(2) ShareShare
ReportReport
Posted on by 4
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
 
 
 

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans