Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

default on sales order\sales quote\sales invoice

(0) ShareShare
ReportReport
Posted on by

Is there any way to set the default type when I enter a sales order or a sales invoice or a sales quote to item? 

most of the time we only use “item” not GL accounts or fixed assets etc. how can I make that by default when I create a new sale order I can go directly to the item no. and it will pull the item # from the inventory table?

my gain would be that I hide the type Column on a sales order or  a quote 

*This post is locked for comments

  • Verified answer
    Suresh Kulla Profile Picture
    47,773 on at
    RE: default on sales order\sales quote\sales invoice

    I have recently did this for a client and for that you need a small customization, instead of changing all the forms there is a standard function in the Sales Line Table called InitType and in that function add the following code as the last line

    Type := Type::Item

    If you want to restrict this for specific document types, just add an IF condition before the statement.

    You do need developer license to modify this code.

  • Luc van Vugt Profile Picture
    on at
    RE: default on sales order\sales quote\sales invoice

    To add to Jonathan's valid answer: the mini app Sales Invoice (PAG1304 and PAG1305) exactly does this. The Small Business profile makes use of this Sales Invoice by default.

  • Suggested answer
    keoma Profile Picture
    32,727 on at
    RE: default on sales order\sales quote\sales invoice

    if you have selected type=item in a sales line, that type is also selected automatically in the next sales line. if you want to autoselect type=tem in a new sales order, in the first line and/or all lines, that would need customization.

    for that add following code into trigger onnewrecord in page 46 sales order subform:

    type := type::item;

    for that change you need a dev license or contact your nav partner for assistance.

    to hide the column simply right click the column header of the sales lines, select "choose columns", remove column type from the "show columns" list.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans