Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

SP View Vendor Class

Posted on by 295

Use this query to make Smartlist Vendor Class Account Distribution

Create View PNI_Vendor_Class
as
select a.VNDCLSID as 'Class ID'
,a.VNDCLDSC as 'Class ID Description'

, COALESCE(b.ACTNUMST,'') 'Account Payable COA'

, COALESCE(c.ACTNUMST,'') 'Terms Discount Available'

, COALESCE(d.ACTNUMST,'') 'Terms Discount Taken'

, COALESCE(e.ACTNUMST,'') 'Finance Charges'

, COALESCE(f.ACTNUMST,'') 'Purchases'

, COALESCE(g.ACTNUMST,'') 'Trade Discount'

, COALESCE(h.ACTNUMST,'') 'Miscellaneous'

, COALESCE(i.ACTNUMST,'') 'Freight'

, COALESCE(j.ACTNUMST,'') 'Tax'

, COALESCE(k.ACTNUMST,'') 'Writeoffs'

, COALESCE(l.ACTNUMST,'') 'Accrued Purchases'

, COALESCE(m.ACTNUMST,'') 'Purchase Price Variance'

from PM00100 a
left join GL00105 b on a.PMAPINDX = b.ACTINDX
left join GL00105 c on a.PMDAVIDX = c.ACTINDX
left join GL00105 d on a.PMDTKIDX = d.ACTINDX
left join GL00105 e on a.PMFINIDX = e.ACTINDX
left join GL00105 f on a.PMPRCHIX = f.ACTINDX
left join GL00105 g on a.PMTDSCIX = g.ACTINDX
left join GL00105 h on a.PMMSCHIX = h.ACTINDX
left join GL00105 i on a.PMFRTIDX = i.ACTINDX
left join GL00105 j on a.PMTAXIDX = j.ACTINDX
left join GL00105 k on a.PMWRTIDX = k.ACTINDX
left join GL00105 l on a.ACPURIDX = l.ACTINDX
left join GL00105 m on a.PURPVIDX = m.ACTINDX

--where VNDCLSID = 'COM AP O'
go
GRANT SELECT ON PNI_Vendor_Class TO DYNGRP

*This post is locked for comments

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