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

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

(0) ShareShare
ReportReport
Posted on by 397 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

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 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
    397 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
    Inge M. Bruvik Profile Picture
    1,105 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
    397 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

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,229

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans