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...
Answered

How to get shipping/invoice amount back in blanket sales order?

(0) ShareShare
ReportReport
Posted on by 401 User Group Leader

Hello,

I set up a copy of the "Blanket Sales Order" and all the related components to created an additional list with the same functionality. So far everything is working as I wanted - the only thing is that after a order is created and the sales line (Sales Order) are shipped or invoiced the following fields stay empty:

pastedimage1659102153351v1.png

Normally in the blanket sales order the fields would show something like that:

pastedimage1659102231226v2.png

Do you think there would be a better solution? In fact I want to duplicate the functionality of the blanket sales order.

Tom

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    The fields you are showing there is automatically adjusted during posting.

    A blanket order is basically never posted unless you create a sales order first.

    So to replicate the functionality in the blanket order you can either see how it is done in the standard code or you have to find the correct event to subscribe to.

    And out of pure curiosity - if you are replicating the blanket order functionality why can't you just use the blanket order functionality as intended or extend the functionality in blanket order if something is missing?

  • T_Mauser Profile Picture
    401 User Group Leader on at

    Following functions are needed:

    • ability to change the no. series for the blanket sales order
      • for example pull a dialog to choose from the no. series which want be used
    • add full mail functionality to the blanket sales order page

    Yeah would probably the better way to customize the existing base. -> the thing I don't like is that the changes are made on every company - so actually I need it only in one company.

    Thank you,

    Tom

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    To solve the issue with the PTE covering all the companies i would solve that adding a field to the Sales setup where you decide if your customization should be used in this company or not. Can be a simple bolean.

    Then in your code you check the sales setup for the bolean value before you execute your customized code.

    Salessetup.findfirst();

    If SalesSetup.BlanketOrderCustomization = true then begin

    // Your customized code goes here.

    end;

    It is both a much used solution and a good practice to be able to control the behavior of your customization through a setup.

  • T_Mauser Profile Picture
    401 User Group Leader on at

    Good idea!  - I could solve all issues throught extend the functionality in blanket sales order.

    Thank you,

    Tom

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

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 720 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 436 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 409 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans