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 GP (Archived)

I am looking for a formula for the 'date of last sale'. I am using Smartlist Bulider and trying to create a report with that info. Thanks

(0) ShareShare
ReportReport
Posted on by 455

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Michael Marinaro Profile Picture
    9 on at

    Hi Rosemary,

    You can find this information in the Customer Summary Master table.  There's a field called Last Transaction Date.  

    If you need more assistance with finding tables for report writing, Victoria Yudin has a very good description of tables and some field constants by module.  Here are the RM tables: victoriayudin.com/.../rm-tables

    Let me know if I can help you any further.

    Thanks,

    Mike

  • Rosemary Roopnarine Profile Picture
    455 on at

    Thanks a million, just what I needed.

    I am trying to determine slow moving items, this field is relative to AR??

  • Michael Marinaro Profile Picture
    9 on at

    My pleasure.  Please accept the answer so others will be able to benefit from your question.

    Thanks,

    Mike

  • Rosemary Roopnarine Profile Picture
    455 on at

    Hi Mike,

    I am trying to determine slow moving items for our Inventory department, this field is relative to AR??

  • Bron Profile Picture
    4 on at

    Rosemary

    The Inventory Module has a table IV30300 which stores a document date and Item Number. I often use this table to identify last transaction date of items.

    It can also be used to identify items with no transactional history.

    The table name is Inventory Transaction Amounts History. It gets updated every time an inventory item is posted (sold, received, adjusted, varianced, etc.).

    With Smartlist builder you could easily construct a SQL view which contains item number and last transaction date....

    Good Luck

  • Victoria Yudin Profile Picture
    22,769 on at

    Another option would be to look at the Sales Order Processing tables for this:

    SELECT ITEMNMBR Item_Number, max(DOCDATE) Last_Sale_Date

    FROM SOP30300 D

    INNER JOIN SOP30200 H

    ON H.SOPTYPE = D.SOPTYPE AND H.SOPNUMBE = D.SOPNUMBE

    WHERE H.SOPTYPE = 3 AND H.VOIDSTTS = 0 --only invoices and not voided

    GROUP BY ITEMNMBR

    ORDER BY ITEMNMBR

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 GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans