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

Codeunit involved in sales order prepayment

(0) ShareShare
ReportReport
Posted on by

HI experts,

I've added a new field in Sales Order Subform, but when I do the prepayment the field is not copied to Post Sales Invoice. I think I need to do event subscriber for this, may I know what is the codeunit and procedure involved here? Thanks in advance

pastedimage1611904204670v1.png

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Have you added the same field with the same field id to the sales invoice line table? Transferfields function usually sorts this, no need for more code. You can search for any event in AL from VS code. There is an AL command for it. I think the keyboard shortcut is shift+alt+e if you choose one it will add the necessary code for you. There is a prepayment management codeunit but no events around this. I expect it will be in the main sales post codeunit if needed at all

  • Community Member Profile Picture
    on at

    Yes, is the same field type and field ID for both 'Sales Line' and 'Sales Invoice Line'. The new field did transfer to Posted Sales Invoice when I do the normal posting, but is not transfer when I do the prepayment invoice posting.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 768 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 541 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 324 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans