web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Default from Quantity not populating from last posted invoice

(0) ShareShare
ReportReport
Posted on by 52

Hi All,

I am facing a new issue in my D365 Environment. I have process a vendor invoice through purchase order and change the default from qty. from Product receipt quantity to Ordered qty and process invoice for posting. Now when I create new vendor invoice from purchase order the Default from qty showing Product receipt quantity again, ideally it should show Ordered qty from my previous invoice selection. Can anyone have any idea how can I resolved this issue.

pastedimage1577338461930v1.png

Your quick response will be highly appreciated.

Regards

Deepak Varma

I have the same question (0)
  • Deepak Varma Profile Picture
    52 on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Rahul,

    Can you please share the blog or document how can I enable or disable smart view ??

    Regards

    Deepak

  • Deepak Varma Profile Picture
    52 on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Zain,

    No any customization there. Using only vendor invoice approval workflow only for invoice posting.

  • Suggested answer
    Zain Mehmood Profile Picture
    4,171 Most Valuable Professional on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Deepak,

    Do you have any customisations involved on the invoice or any related page ? There can be the reason where that’s contradicting with the standard functionality.

    Warm Regards,

    Zain

  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at
    RE: Default from Quantity not populating from last posted invoice

    if you have enabled smart views then could consider disabling it and trying again

    better use smart views with PU31

  • Deepak Varma Profile Picture
    52 on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Zain,

    It is happening with every user who is processing vendor invoice. I know it is very strange but it is happening. I am using Update30.

    Regards

    Deepak

  • Deepak Varma Profile Picture
    52 on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Will WU,

    I am Functional person so please suggest is there any functional way to solve this issue..??

    Thanks for your quick response.

    Regards

    Deepak

  • Suggested answer
    Zain Mehmood Profile Picture
    4,171 Most Valuable Professional on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Deepak,

    Is it happening for every user that you are doing with or only your user? Because I did a new one just now, & it worked exactly the way it should have. Which version are you using? is it on-prem or cloud?

    Warm Regards,

    Zain

  • WillWU Profile Picture
    22,361 on at
    RE: Default from Quantity not populating from last posted invoice

    Hi Deepak,

    The dialog is pointed to the form VendEditInvoiceDefaultQuantityForLinesDropDialog.

    The default value is specified in the init method

    Capture111111111.PNG

    You can create a post event handler on the init method of the form:

        [PostHandlerFor(formStr(VendEditInvoiceDefaultQuantityForLinesDropDialog), formMethodStr(VendEditInvoiceDefaultQuantityForLinesDropDialog, init))]
        public static void VendEditInvoiceDefaultQuantityForLinesDropDialog_Post_init(XppPrePostArgs args)
        {
            FormRun             element       = Args.getThis();
            FormComboBoxControl         specQty   = element.design(0).controlName("SpecQty");
            specQty.selection(PurchUpdate::All);
        }

    Hope this helps.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,351

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 874 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 638 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans