Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Report Sales order

Posted on by 180

Hi,

I want to take sale line value Quantity - Quantity shipped and I have to store the values in column.

I will add the screen short for better understanding. I want only the values which is marked in yellow I dont want the red values.7484.123.JPG1234.JPG

pleas help me with the code. Thanks

*This post is locked for comments

  • Sathish C Profile Picture
    Sathish C 180 on at
    RE: Report Sales order

    Sir can you Show me the Sample coding..

    because  i have tried  that and its not working

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Report Sales order

    Ok so you need to blank the value for the other fields. In your case, at first step (when J = 1) you assign RemQty_01 to your value and RemQty_02 and RemQty_03 are 0.

    When J = 2, you assign RemQty_02 to your value but RemQty_01 has the previous assigned value.

    When J = 3,  you assign RemQty_03 to your value but RemQty_01 and RemQty_02 have the previous assigned values.

    I think that on every iteration you need to:

    1) add the value to your desired variable

    2) clear the other two not used variables.

  • Sathish C Profile Picture
    Sathish C 180 on at
    RE: Report Sales order

    Thank You for replying Sir

    but I need like this.

    In sales line there is tow fields quantity and quantity shipped. i want to subtract the the two values and get it in report. The line value should print in Remain QTY1 and second value should print in Remain QTY2  and 3rd value should print in Remain QTY3 if more lines are there then it should print in Remain QTY3  The values which should come in report is marked in yellow.

  • Sathish C Profile Picture
    Sathish C 180 on at
    RE: Report Sales order

    in sales line there is tow fields quantity and quantity shipped. i want to subtract the the two values and get it in report. The line value should print in Remain QTY1 and second value should print in Remain QTY2  and 3rd value should print in Remain QTY3 if more lines are there then it should print in Remain QTY3  The values which should come in report is marked in yellow.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Report Sales order

    It's difficult to know what you want to obtain. If I've understood, you need to blank the value that you don't want for the lines accordingly to the J index. So:

    IF j = 1 THEN BEGIN

     RemQty_01 := .....;

     RemQty_02 := 0;

     RemQty_03 := 0;

    END;

  • Suggested answer
    RockwithNav Profile Picture
    RockwithNav 6,562 on at
    RE: Report Sales order

    Can you  first let is know what's the logic on to which you want this to be executed?

    How will you differentiate between Yellow and Red ones?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans