Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

Detailed Sales report with Tax details

Posted on by Microsoft Employee

I have a few reports regrading detailed sales and taxes but they all combine the various taxes into one figure. I need a report that would give me the individual tax figures not the total taxes paid.

RMS Setup - standalone SO

Taxes assigned by item
   Item Taxes  ( 4 defined)
   Sales Tax ( 3 defined)

I would like a report that would break-down tax collected instead of giving me total sales tax collected per transaction. The stock "Detailed Sales with Taxes" report gives me the following.

Department   Category    trans #    Comment Item  Description  " Qty Sold"  "Sold Price"  "Total (Tax Ex)"  "Sale Tax"  "Total Sales"

But I would like the "Sale Tax" column to be separate into three Sales Tax  ie: TaxA  TaxB  TaxC .

Is it just a matter of me adding a few columns, any help would be appreciated.

Danny

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

//--- Report Summary --- //

Begin ReportSummary
   ReportType = reporttypeSales
   ReportTitle = "Detailed Sales with Taxes"
   PageOrientation = pageorientationLandscape
   WordWrap = False
   ShowDateTimePicker = False
   OutLineMode = True
   Groups = 1
   GroupDescription = ""
   DisplayLogo = True
   LogoFileName = "MyLogo.bmp"
   ProcedureCall = ""
   PreQuery1 = ""
   PreQuery2 = ""
   TablesQueried = <BEGIN>
     FROM     TransactionEntry INNER JOIN [Transaction] WITH(NOLOCK) ON TransactionEntry.TransactionNumber = [Transaction].TransactionNumber
         INNER JOIN  Batch WITH(NOLOCK) ON [Transaction].BatchNumber = Batch.BatchNumber
         LEFT JOIN   Item WITH(NOLOCK) ON TransactionEntry.ItemID = Item.ID
         LEFT JOIN   Department WITH(NOLOCK) ON Item.DepartmentID = Department.ID
         LEFT JOIN   Category WITH(NOLOCK) ON Item.CategoryID = Category.ID
         LEFT JOIN   Supplier WITH(NOLOCK) ON Item.SupplierID = Supplier.ID
         LEFT JOIN   ReasonCode AS ReasonCodeDiscount WITH(NOLOCK) ON TransactionEntry.DiscountReasonCodeID = ReasonCodeDiscount.ID
         LEFT JOIN   ReasonCode AS ReasonCodeTaxChange WITH(NOLOCK) ON TransactionEntry.TaxChangeReasonCodeID = ReasonCodeTaxChange.ID
         LEFT JOIN   ReasonCode AS ReasonCodeReturn WITH(NOLOCK) ON TransactionEntry.ReturnReasonCodeID = ReasonCodeReturn.ID
         LEFT JOIN   Register WITH(NOLOCK) ON Batch.RegisterID = Register.ID
         LEFT JOIN   Customer WITH(NOLOCK) ON [Transaction].CustomerID = Customer.ID
         LEFT JOIN   Cashier WITH(NOLOCK) ON [Transaction].CashierID = Cashier.ID
       LEFT JOIN   QuantityDiscount WITH(NOLOCK) ON TransactionEntry.QuantityDiscountID = QuantityDiscount.ID
<END>
   SelCriteria = ""
   GroupBy = ""
   SortOrder = ""
End ReportSummary

 

*This post is locked for comments

  • ToddB Profile Picture
    ToddB on at
    Re: Detailed Sales report with Tax details

    Good morning Danny,

    Thank you for posting your report question.

    The issue with adding the detailed tax information, onto a sales report, is that this will cause sales to be duplicated, triplicated, etc. depending on how many taxes are assigned.

    For example, if you have a state tax and a county tax the sales would be duplicated (once for each tax showing on the report).

    As such, we would not recommend adding the individual taxes onto the report.

    Please let me know if you have any questions.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Detailed Sales report with Tax details

    The stock "Detailed Sales with Taxes" report gives me the following.

    Department   Category    trans #    Comment Item  Description  " Qty Sold"  "Sold Price"  "Total (Tax Ex)"  "Sale Tax"  "Total Sales"

    But I would like the "Sale Tax" column to be separated into three Sales Tax  ie: TaxA  TaxB  TaxC as per the Sale tax defined inthe database.

    Thanks

    Danny

  • Gerald Rothaus Profile Picture
    Gerald Rothaus 2,930 on at
    Re: Detailed Sales report with Tax details

    Hi. Please be specific about what columns you want and in what order.

    -Jerry

    JR Data Inc

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    Re: Detailed Sales report with Tax details

    I was hoping someone already had a detailed Tax report - where the tax was broken down by sale's tax type and not just the aggregated salestax total value.

    When trying to get a report to work I get confused on whether or not to take discounts into account. The transaction (transaction.salestax) table  & transactionentry (transactionentry.salestax) table values should already account for any discounts that might have been applied to the items.

    I agree a View is the way to go - just trying to get a rough draft working and will refine it afterwards.

    Any more help would be appreciated.

  • Gerald Rothaus Profile Picture
    Gerald Rothaus 2,930 on at
    Re: Detailed Sales report with Tax details

    Only the Sales tax amount is recorded in the transaction (transaction.salestax) table and, by item, the transactionentry (transactionentry.salestax) table. you would have to derive the tax type via the item table.

    I would suggest you create a view of the item table and all it's personalities (department, cat., tax type, etc), it might make the report a lot faster and easier to read your code.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans