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 :
Microsoft Dynamics AX (Archived)

How to add the zero quantity in the PurchPurchase order report?

(0) ShareShare
ReportReport
Posted on by 931

Hi experts,

I need to add the line in the purchase order report. I have 2 questions, Normally if the quantity is zero, the posting of purchase order doesn't take place. Can someone tell me where is the logic to disable the posting-> purchase order button.

And my second question is, as i said , if i add another line and give the quantity as 0.00, this doesn't print in the screen, only the line with quantity filled in.. Where i have to do customization to print the quantity as 0.00 in the report?

Kindly Advice.

*This post is locked for comments

I have the same question (0)
  • veera seenivasan Profile Picture
    575 on at

    Hi Rusty,


                  Pls check the PurchformLetter class and you can find the solution

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    For your 1st question, typically in both AX2009 and 2012, there is class to handle such buttons e.g. Classes\SalesTableType\canInvoiceBeUpdated

    Here logic to enable disable buttons is written.

    For your 2nd question, Have a look at report's query. Possibly somewhere lines with 0 quantity are being excluded as range.

  • ThivaKar Profile Picture
    931 on at

    Hi, Sohaib . Thanks for your reply,

    The lines with quanitity zero is not updated in the purcheditlines form,

    I think the lines with quantity zero is not passed to the purcheditlines.. To pass these lines to the PurchEditLines Form, I have to use

    PurchFormLetter class or PurchFormLettter_PurchOrder class??

    If i found out how the Lines are passing there , i can customize there?

    Am i in the right path? Advice...

  • ThivaKar Profile Picture
    931 on at

    Hi Michael, Can you please explain a bit more?

    There are many methods in PurchFormLetter Class,

    in my case,  CheckLines(), ChooseLine(), ChooseLines() methods.. From which method the lines are passing to the PurchEditLines Form???

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    I see, you want to send lines with zero quantity in actual confirmation journals. I would recommend you to get stack trace for insert() method of journals. This can give you exact path or full stack trace of how data is landed, in specific journal(confirmation, packing, invoice)

    Since, you have not motioned clearly which journal/process you are talking about, so telling you stack trace is difficult. Also we don't remember all details of ax2009, as of today, as it been very old now.

    kindly put below line of code in destination table where you want to take your data

    info(con2Str(xSession::xppCallStack()));

    This way, you can get the entire journey of your process.

  • ThivaKar Profile Picture
    931 on at

    Hi again Sohaib ,

    I will try ur suggestion and just to make clear of my requirment, incase i didn't explained clearly.. When Posting the Purchase Order.. Posting -> Purchase Order..

    PurchEditLines Form Opens.. Here, the lines in the purchase order are displayed in the PurchEditLines-> Lines Tab..

    If the Lines with the quantity is 0.00 are not passed in the PurchEditLines ->Lines Tab. Only if the quantity is not equal to null gets passed. So, I seek advice here to know about which method checks this condition and passing the lines to PurchEditLines Form..

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    you can also turn on debugger for PurchEditLines, which can show you from where it opened.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans