I am trying to pull amount paid to vendors in 2016. I know table PM00201 has amount paid last year; however, this amount is not the same as what is showing in the Vendor Summary Inquiry window. Additionally, when I run the following script, I get entirely different numbers.
SELECT V.VENDNAME AS Vendor, V.VENDORID AS VendorID, CAST(SUM(S.DOCAMNT) AS decimal(12, 2)) AS VendorSpend FROM PM00200 V INNER JOIN PM30200 S ON V.VENDORID = S.VENDORID WHERE YEAR(S.DOCDATE) = 2016 AND S.DOCTYPE = 6 GROUP BY V.VENDNAME, V.VENDORID ORDER BY Vendor
What am I missing?
—————————— Leah Nolan Financial Systems Analyst Med Fusion Lewisville TX ——————————
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!