Start a conversation

How To Get Taxes Charged For Specified Users For A Specified Date Range?

Overview

You may want to know the amount of taxes charged for select users in each invoice within a certain date range to either refund the tax amounts, or for audit and accounting purposes.

 

Information

Provide the customer numbers for whom you want to extract the taxes charged and the date range in a support ticket.

<supportagent>

  1. Login to the Jump server 10.185.40.141.
  2. Open Microsoft SSMS and connect to aes.cons.com.
  3. Select New Query in the top bar.
  4. Select the client-specific database.
  5. Execute the following query with the dates and customer numbers as provided.
    select c.CustNo, i.InvoiceID, i.InvDate, sum(t.TaxTotal) as TaxAmount
    from InvoiceTax t
    inner join Invoice i on t.InvoiceID = i.InvoiceID
    inner join Customer c on c.CustID = i.CustID
    where c.CustNo in (<list of provided customer numbers>)
    and i.invdate between '<From date as MM/DD/YYYY>' and '<To date as MM/DD/YYYY>'
    group by i.InvoiceID, i.InvDate, c.CustNo
  6. Export and share the obtained results with the client.

</supportagent>

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments