Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

SQL command please

Posted on by 395

Can someone help me with a SQL (SQL2008) command please? I need a command to execute sales by cashier with in date range. The result must show company name and total sales. Thank you.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: SQL command please

    Nazza

    You will not be able to modify the daily sales by cashier report.  What you can do is add the company name to the Detailed Sales report.  

    Add this to the report qrp file, using notepad.  Make it the first column entry under the //--- Columns ---//.   Save report as "Custom - Detailed Sales by Customer Company.qrp.

    Restart RMS Manager if open.  Your report will be under the custom report menu.

    Begin Column

      FieldName = "Customer.Company"

      DrillDownFieldName = ""

      DrillDownReportName = ""

      Title = "Company"

      VBDataType = vbString

      Formula =

      ColHidden = False

      ColNotDisplayable = False

      FilterDisabled = False

      ColWidth = 2205

      GroupMethod = groupmethodNone

      ColFormat = ""

      ColAlignment = flexAlignLeftCenter

    End Column

  • arishi Profile Picture
    arishi 740 on at
    RE: SQL command please

    my bad ..:(

    should have read carefully..

  • nazza Profile Picture
    nazza 395 on at
    RE: SQL command please

    I am talking about customer's company name. All our customers are retailers hence their company name is priority for us. By default, Customer name is on the report but now I have amended report to look for Customer.Company instead of Customer.Name. Working a treat, thanks.

  • Suggested answer
    arishi Profile Picture
    arishi 740 on at
    RE: SQL command please

    correction

    OS Manager --> File --> Configuration-->Store--> Name

  • Suggested answer
    arishi Profile Picture
    arishi 740 on at
    RE: SQL command please

    it does show company name, all the reports in RMS do that for sure

    make sure under OS Manager --> Store--> Name ( this is where it pick up the company name)

    good luck

  • nazza Profile Picture
    nazza 395 on at
    RE: SQL command please

    Thank you Arif, but those report does not show company name. I want it to show company name as all we are wholesalers and company name is more relevant than customer name. Or how can I add Company name column on those existing report?

  • Suggested answer
    arishi Profile Picture
    arishi 740 on at
    RE: SQL command please

    Hello Nazza,

    there are many type of Sales reports under SO Manager --> Reports --> Sales -->Summary Sales (Daily) --> by Cashier

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans