on 03-06-2009 6:20 AM
Hi All,
I have to make a report named "Statement of CST Sales for the Month....." for one of my client. This report contains the fields CST Payable and CST Paid (invoice wise). Please help me by telling where can I get CST Paid per invoice (Table Name, Field Name).
hi,
You can get it from TaxSum from Table PCH4 with staType for CST.
Try this query
SELECT T0.DocNum as 'Ap INV. No.', T0.DocDate, T0.CardName as 'Vendor Name',
T1.TaxSum AS 'CST on Purchase'
FROM [dbo].[Opch] T0 INNER JOIN pch4 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.staType = 4
Jeyakanthan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.