<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Victoria Yudin</title>
	<atom:link href="http://victoriayudin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://victoriayudin.com</link>
	<description>Ramblings and musings of a Dynamics GP MVP</description>
	<lastBuildDate>Fri, 27 Jan 2012 19:07:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='victoriayudin.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/3cb782884f1419245af3e8375b2a1bff?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Victoria Yudin</title>
		<link>http://victoriayudin.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://victoriayudin.com/osd.xml" title="Victoria Yudin" />
	<atom:link rel='hub' href='http://victoriayudin.com/?pushpress=hub'/>
		<item>
		<title>SQL view for current Receivables aging in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 09:33:00 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3979</guid>
		<description><![CDATA[I have created a variation on my view that shows all unapplied Receivables transactions to show customer aging in buckets. This is only looking at functional currency and will return data in summary, meaning one row per customer with a balance. I am hard-coding the aging using the default aging setup installed with GP, which is aging by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3979&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I have created a variation on <a title="SQL view for all unapplied Receivables transactions in Dynamics GP" href="http://victoriayudin.com/2009/09/05/sql-view-for-all-unapplied-receivables-transactions-in-dynamics-gp/">my view that shows all unapplied Receivables transactions</a> to show customer aging in buckets. This is only looking at functional currency and will return data in summary, meaning one row per customer with a balance. I am hard-coding the aging using the default aging setup installed with GP, which is aging by due date and using the following buckets:</p>
<ul>
<li>
<div style="text-align:justify;">Current</div>
</li>
<li>
<div style="text-align:justify;">31 to 60 Days</div>
</li>
<li>
<div style="text-align:justify;">61 to 90 Days</div>
</li>
<li>
<div style="text-align:justify;">91 and Over</div>
</li>
</ul>
<p style="text-align:justify;">If you would like to use different aging buckets, just follow the examples in my code.</p>
<p style="text-align:justify;">You can find more Receivables code <a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/">here</a>, or links to additional reporting resources <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">on my GP Reports page</a>.</p>
<p><pre class="brush: sql;">
create view view_Current_Receivables_Aging_Summary
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Current_Receivables_Aging_Summary
-- Created Jan 25, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates see http://victoriayudin.com/gp-reports/
-- Shows current AR aging with hard-coded aging buckets
-- Tables used:
--     CM - RM00101 - Customer Master
--     CS - RM00103 – Customer Master Summary
--     RM - RM20101 - Open Transactions
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

SELECT
CM.CUSTNMBR Customer_ID, CM.CUSTNAME Customer_Name,
CM.PYMTRMID Customer_Terms, CM.CUSTCLAS Customer_Class,
CM.PRCLEVEL Price_Level,

sum(CASE
WHEN RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
ELSE RM.CURTRXAM * -1
END) Total_Due,

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &lt; 31 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &lt; 31 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM *-1
ELSE 0
END) [Current],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 31 and 60 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 31 and 60 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM * -1
ELSE 0
END) [31_to_60_Days],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 61 and 90 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) between 61 and 90 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM * -1
ELSE 0
END) [61_to_90_Days],

sum(CASE
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &gt; 90 and RM.RMDTYPAL &lt; 7 THEN RM.CURTRXAM
WHEN DATEDIFF(d, RM.DUEDATE, getdate()) &gt; 90 and RM.RMDTYPAL &gt; 6 THEN RM.CURTRXAM *-1
ELSE 0
END) [91_and_Over],

CS.LASTPYDT Last_Payment_Date,
CS.LPYMTAMT Last_Payment_Amount

FROM RM20101 RM

INNER JOIN RM00101 CM
     ON RM.CUSTNMBR = CM.CUSTNMBR
INNER JOIN RM00103 CS
     ON RM.CUSTNMBR = CS.CUSTNMBR

WHERE RM.VOIDSTTS = 0 and RM.CURTRXAM &lt;&gt; 0

GROUP BY CM.CUSTNMBR, CM.CUSTNAME, CM.PYMTRMID, CM.CUSTCLAS, CM.PRCLEVEL, CS.LASTPYDT,
CS.LPYMTAMT

-- add permissions for DYNGRP
GO
GRANT SELECT ON view_Current_Receivables_Aging_Summary TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/featured/'>featured</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3979/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3979/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3979/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3979&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/25/sql-view-for-current-receivables-aging-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/abacus.jpg?w=69" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/abacus.jpg?w=69" medium="image">
			<media:title type="html">abacus</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for sales quantities by item by year</title>
		<link>http://victoriayudin.com/2012/01/23/sql-view-for-sales-quantities-by-item-by-year-2/</link>
		<comments>http://victoriayudin.com/2012/01/23/sql-view-for-sales-quantities-by-item-by-year-2/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 12:37:59 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[SOP SQL code]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3960</guid>
		<description><![CDATA[Even since I published my view for sales by item by year I started receiving requests for the same type of view showing quantities instead of amounts. There are two ways of doing this, once from inventory and another from sales.  Hard to say which is the best, as I have seen arguments for both, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3960&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Even since I published my <a title="SQL view for sales by item by year" href="http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/">view for sales by item by year</a> I started receiving requests for the same type of view showing quantities instead of amounts. There are two ways of doing this, once from inventory and another from sales.  Hard to say which is the best, as I have seen arguments for both, but I prefer to do this from the SOP module. The view below makes a number of assumptions (listed in the view comments in green), and I am hard coding years from 2000 through 2012 as well as adding an overall total column at the end. You can easily change the years or add new ones by following the example in my code.</p>
<p style="text-align:justify;">To see additional Dynamics GP SOP code please take look at <a title="SOP SQL Views" href="http://victoriayudin.com/gp-reports/sop-sql-views/">this page</a>. For additional GP reporting information and links, check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports</a> page.</p>
<p><pre class="brush: sql;">

create view view_Sales_Qty_by_Item_by_Year
as

--***********************************************************************************
--view_Sales_Qty_by_Item_by_Year
--Created Jan 23, 2012 by Victoria Yudin - Flexible Solutions, Inc.
--For updates see http://victoriayudin.com/gp-reports/
--Returns total sales quantities fulfilled (invoices - returns) for each item by year
--Only posted invoices and returns are included
--Quantity is calculated by multiplying by QTYBSUOM column in case other UofM's are
--     used on transations
--Voided transations are excluded
--Item Description is taken from Inventory Item Maintenance for all inventory items
--     and from SOP line items for non-inventory items
--***********************************************************************************

SELECT
D.ITEMNMBR Item_Number, D.Item_Description,
sum(case when year(D.DOCDATE) = 2000 then D.Qty else 0 end) as [2000_Qty],
sum(case when year(D.DOCDATE) = 2001 then D.Qty else 0 end) as [2001_Qty],
sum(case when year(D.DOCDATE) = 2002 then D.Qty else 0 end) as [2002_Qty],
sum(case when year(D.DOCDATE) = 2003 then D.Qty else 0 end) as [2003_Qty],
sum(case when year(D.DOCDATE) = 2004 then D.Qty else 0 end) as [2004_Qty],
sum(case when year(D.DOCDATE) = 2005 then D.Qty else 0 end) as [2005_Qty],
sum(case when year(D.DOCDATE) = 2006 then D.Qty else 0 end) as [2006_Qty],
sum(case when year(D.DOCDATE) = 2007 then D.Qty else 0 end) as [2007_Qty],
sum(case when year(D.DOCDATE) = 2008 then D.Qty else 0 end) as [2008_Qty],
sum(case when year(D.DOCDATE) = 2009 then D.Qty else 0 end) as [2009_Qty],
sum(case when year(D.DOCDATE) = 2010 then D.Qty else 0 end) as [2010_Qty],
sum(case when year(D.DOCDATE) = 2011 then D.Qty else 0 end) as [2011_Qty],
sum(case when year(D.DOCDATE) = 2012 then D.Qty else 0 end) as [2012_Qty],
sum(D.Qty) Total_Qty

FROM
(SELECT SH.DOCDATE, SD.ITEMNMBR,
 coalesce(I.ITEMDESC, SD.ITEMDESC) Item_Description,
 CASE SD.SOPTYPE
     WHEN 3 THEN SD.QTYFULFI*QTYBSUOM
     WHEN 4 THEN SD.QUANTITY*QTYBSUOM*-1
     END Qty
 FROM SOP30200 SH
 INNER JOIN
     SOP30300 SD
     ON SD.SOPNUMBE = SH.SOPNUMBE
     AND SD.SOPTYPE = SH.SOPTYPE
 LEFT OUTER JOIN
     IV00101 I
     ON I.ITEMNMBR = SD.ITEMNMBR
 WHERE SH.VOIDSTTS = 0
     AND SH.SOPTYPE IN (3,4)
     AND SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%') D

GROUP BY D.ITEMNMBR, D.Item_Description

GO
GRANT SELECT ON view_Sales_Qty_by_Item_by_Year TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3960/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3960/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3960/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3960&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/23/sql-view-for-sales-quantities-by-item-by-year-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/guywithboxes.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/guywithboxes.jpg?w=96" medium="image">
			<media:title type="html">3d boxes</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for customer yearly totals in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 18:31:31 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Receivables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Receivables]]></category>
		<category><![CDATA[SQL code]]></category>
		<category><![CDATA[year end close]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3947</guid>
		<description><![CDATA[As a follow up to my SQL view for vendor yearly totals, here is something similar for customers. I have combined sales less credits/returns in one column, please take a look at the notes above the code (on lines 5 through 16 below) to see more details about the logic I am using. The code [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3947&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">As a follow up to my <a title="SQL view for vendor yearly totals in Dynamics GP" href="http://victoriayudin.com/2012/01/04/sql-view-for-vendor-yearly-totals-in-dynamics-gp/">SQL view for vendor yearly totals</a>, here is something similar for customers.</p>
<p style="text-align:justify;">I have combined sales less credits/returns in one column, please take a look at the notes above the code (on lines 5 through 16 below) to see more details about the logic I am using. The code below will give you 2007 through 2012 calendar years as well as &#8216;life-to-date&#8217; total sales. You can add or remove years as needed following my example.</p>
<p style="text-align:justify;">For more Dynamics GP Receivables code, take a look at my <a title="Receivables SQL Views" href="http://victoriayudin.com/gp-reports/receivables-sql-views/">Receivables SQL Views page</a>. Or check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a> for views in other modules and additional report writing and coding tips.</p>
<p><pre class="brush: sql;">
CREATE VIEW view_Customer_Totals_by_Year
AS

-- *********************************************************************
-- Created Jan 9, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please check http://victoriayudin.com/gp-reports/
-- Includes all posted receivables transactions in GP
-- Document dates and calendar years are used for groupings
-- Voided transactions are excluded
-- Sales amount adds Invoices, Debit Memos and Finance Charges
--      and subtracts Credit Memos and Returns
-- Amount includes subtotal plus misc amount less trade discount
-- Only fucntional currency is shown
-- Note that Returns are assumed as 'on account', if this is not
--      typically the case, Returns should be excluded
-- Total columns shows all years, not just what is shown in the columns
-- *********************************************************************

SELECT
T.CUSTNMBR [Customer ID], C.CUSTNAME [Customer Name], C.CUSTCLAS [Class ID],
sum(case when YEAR(T.DOCDATE) = 2012 then T.Amount else 0 end) [2012 Sales],
sum(case when YEAR(T.DOCDATE) = 2011 then T.Amount else 0 end) [2011 Sales],
sum(case when YEAR(T.DOCDATE) = 2010 then T.Amount else 0 end) [2010 Sales],
sum(case when YEAR(T.DOCDATE) = 2009 then T.Amount else 0 end) [2009 Sales],
sum(case when YEAR(T.DOCDATE) = 2008 then T.Amount else 0 end) [2008 Sales],
sum(case when YEAR(T.DOCDATE) = 2007 then T.Amount else 0 end) [2007 Sales],
sum(T.Amount) [Total Sales]

FROM -- all posted RM transactions, exclude voids
(SELECT  CUSTNMBR, DOCDATE, GLPOSTDT, DOCNUMBR,
 case when RMDTYPAL in (1,3,4) then (SLSAMNT + MISCAMNT - TRDISAMT)
	  when RMDTYPAL in (7,8) then -1*(SLSAMNT + MISCAMNT - TRDISAMT)
	  else 0 end Amount
 FROM RM20101
 WHERE VOIDSTTS = 0
UNION ALL
 SELECT  CUSTNMBR, DOCDATE, GLPOSTDT, DOCNUMBR,
 case when RMDTYPAL in (1,3,4) then (SLSAMNT + MISCAMNT - TRDISAMT)
	  when RMDTYPAL in (7,8) then -1*(SLSAMNT + MISCAMNT - TRDISAMT)
	  else 0 end Amount
 FROM RM30101
 WHERE VOIDSTTS = 0) T

LEFT OUTER JOIN RM00101 C  -- customer master
     ON T.CUSTNMBR = C.CUSTNMBR

GROUP BY T.CUSTNMBR, C.CUSTNAME, C.CUSTCLAS

GO
GRANT SELECT ON view_Customer_Totals_by_Year TO DYNGRP
</pre></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/receivables-sql-code/'>Receivables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/receivables/'>Receivables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a>, <a href='http://victoriayudin.com/tag/year-end-close/'>year end close</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3947/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3947/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3947/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3947&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/09/sql-view-for-customer-yearly-totals-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/calculator.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/calculator.jpg?w=96" medium="image">
			<media:title type="html">calculator</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for vendor yearly totals in Dynamics GP</title>
		<link>http://victoriayudin.com/2012/01/04/sql-view-for-vendor-yearly-totals-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2012/01/04/sql-view-for-vendor-yearly-totals-in-dynamics-gp/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 11:10:40 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Payables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>
		<category><![CDATA[year end close]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3931</guid>
		<description><![CDATA[There has been a lot of talk lately about the year end close Payables and Receivables. I feel like I have spent the last week or two justifying my reasoning for not needing to perform the year end close for Payables and Receivables to many of my customers and blog readers. (For more on this, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3931&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">There has been a lot of talk lately about the year end close Payables and Receivables. I feel like I have spent the last week or two justifying my reasoning for not needing to perform the year end close for Payables and Receivables to many of my customers and blog readers. (For more on this, please see my <a title="Year end close in Dynamics GP" href="http://victoriayudin.com/2008/11/14/year-end-close-in-dynamics-gp/" target="_blank">Year end close in Dynamics GP blog post</a>.)</p>
<p style="text-align:justify;">My main reasoning has always been that the only thing accomplished by the year end close is updating the &#8216;amounts since last close&#8217; year-to-date and last-year totals and since that can be easily (and maybe even better?) accomplished by a custom report, why waste time on the year end close for these modules in GP? However, where is this custom report?</p>
<p style="text-align:justify;">For Payables &#8211; you now have 2 choices.  I previously published <a title="SQL view to show yearly totals for Dynamics GP Vendors" href="http://victoriayudin.com/2010/07/15/sql-view-to-show-yearly-totals-for-dynamics-gp-vendors/" target="_blank">this view</a> that results in one row per vendor per year with the columns being the different possible totals GP tracks for vendors. This is often useful for comparing year to year information for one vendor at a time.</p>
<p style="text-align:justify;">However, many people have asked to see this in columns representing years, so they can see all the vendor totals at the same time for all the years. That&#8217;s what you have below. I included separate columns for amounts billed and paid &#8211; please take a look at the notes (in green) for more details on the logic. The code below will give you 2007 through 2012 calendar years as well as &#8216;life-to-date&#8217; totals. You can add or remove years as needed following my example.</p>
<p style="text-align:justify;">I will be posting a similar view for Receivables in the next few days, so keep an eye out. For more Dynamics GP Payables code, take a look at my <a title="Payables SQL Views" href="http://victoriayudin.com/gp-reports/payables-sql-views/">Payables SQL Views page</a>. Or check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a> for views in other modules and additional report writing and coding tips.</p>
<p><pre class="brush: sql;">
CREATE VIEW view_Vendor_Totals_by_Year
AS

-- ****************************************************************
-- Created Jan 4, 2012 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please check http://victoriayudin.com/gp-reports/
-- Includes all posted payables transactions in GP
-- Document dates and calendar years are used for groupings
-- Voided transactions are excluded
-- Billed amount adds Invoices, Finance Charges and Misc Charges
--      and subtracts Credit Memos and Returns
-- Only fucntional currency is shown
-- Note that Returns are assumed as 'on account', if this is not
--      typically the case, Returns should be excluded
-- ****************************************************************

SELECT
P.VENDORID [Vendor ID],
V.VENDNAME [Vendor Name],
sum(case when year(P.DOCDATE) = 2012 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2012 Billed],
sum(case when year(P.DOCDATE) = 2012 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2012 Paid],
sum(case when year(P.DOCDATE) = 2011 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2011 Billed],
sum(case when year(P.DOCDATE) = 2011 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2011 Paid],
sum(case when year(P.DOCDATE) = 2010 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2010 Billed],
sum(case when year(P.DOCDATE) = 2010 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2010 Paid],
sum(case when year(P.DOCDATE) = 2009 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2009 Billed],
sum(case when year(P.DOCDATE) = 2009 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2009 Paid],
sum(case when year(P.DOCDATE) = 2008 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2008 Billed],
sum(case when year(P.DOCDATE) = 2008 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2008 Paid],
sum(case when year(P.DOCDATE) = 2007 and P.DOCTYPE &lt; 6
   then P.DOCAMNT else 0 end) [2007 Billed],
sum(case when year(P.DOCDATE) = 2007 and P.DOCTYPE = 6
   then P.DOCAMNT else 0 end) [2007 Paid],
sum(case when P.DOCTYPE &lt; 6 then P.DOCAMNT else 0 end) [Life Billed],
sum(case when P.DOCTYPE = 6 then P.DOCAMNT else 0 end) [Life Paid]

FROM --all posted payables transactions, exclude voids
 (SELECT VENDORID, DOCTYPE, DOCDATE, PSTGDATE,
 case when DOCTYPE in (4,5) then DOCAMNT *-1 else DOCAMNT end DOCAMNT
 FROM PM20000
 WHERE VOIDED = 0
 UNION ALL
 SELECT VENDORID, DOCTYPE, DOCDATE, PSTGDATE,
 case when DOCTYPE in (4,5) then DOCAMNT *-1 else DOCAMNT end DOCAMNT
 FROM PM30200
 WHERE VOIDED = 0) P

INNER JOIN -- vendor master
 PM00200 V
 ON V.VENDORID = P.VENDORID

GROUP BY P.VENDORID, V.VENDNAME

GO
GRANT SELECT ON view_Vendor_Totals_by_Year TO DYNGRP
</pre></p>
<p><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/payables-sql-code/'>Payables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/payables/'>Payables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a>, <a href='http://victoriayudin.com/tag/year-end-close/'>year end close</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3931/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3931/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3931/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3931&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/04/sql-view-for-vendor-yearly-totals-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" medium="image">
			<media:title type="html">briefcase invoice</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy New Year &#8211; 2012</title>
		<link>http://victoriayudin.com/2012/01/02/happy-new-year-2012/</link>
		<comments>http://victoriayudin.com/2012/01/02/happy-new-year-2012/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 18:12:34 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[awards]]></category>
		<category><![CDATA[Microsoft MVP]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3924</guid>
		<description><![CDATA[I found out yesterday that I have been awarded the Microsoft Most Valuable Professional Award for Dynamics GP for another year. This makes the 8th year in a row for me. I am very honored to get this award again and would like to thank everyone that reads my blog &#8211; this would not be possible without you! [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3924&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I found out yesterday that I have been awarded the Microsoft Most Valuable Professional Award for Dynamics GP for another year. This makes the 8th year in a row for me. I am very honored to get this award again and would like to thank everyone that reads my blog &#8211; this would not be possible without you!</p>
<p style="text-align:justify;">For those curious, the <a title="About the Microsoft MVP program" href="https://mvp.support.microsoft.com/gp/aboutmvp" target="_blank">Microsoft MVP program</a> has been in place since the early 1990&#8242;s and currently recognizes about 4,000 active MVPs worldwide. You can <a title="search for Microsoft MVPs by product" href="https://mvp.support.microsoft.com/communities/mvp.aspx" target="_blank">search for MVPs by product</a> or take a look at the list of <a title="current Dynamics GP MVPs" href="https://mvp.support.microsoft.com/communities/mvp.aspx?product=1&amp;competency=Dynamics+GP" target="_blank">current Dynamics GP MVPs</a>.</p>
<p style="text-align:justify;">Happy, healthy and prosperous 2012!</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/microsoft/'>Microsoft</a> Tagged: <a href='http://victoriayudin.com/tag/awards/'>awards</a>, <a href='http://victoriayudin.com/tag/microsoft-mvp/'>Microsoft MVP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3924/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3924/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3924/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3924&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2012/01/02/happy-new-year-2012/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2012/01/mvp-logo1.jpg?w=128" />
		<media:content url="http://victoriayudin.files.wordpress.com/2012/01/mvp-logo1.jpg?w=128" medium="image">
			<media:title type="html">MVP Logo</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view to show monthly totals for Dynamics GP Vendors</title>
		<link>http://victoriayudin.com/2011/12/09/sql-view-to-show-monthly-totals-for-dynamics-gp-vendors/</link>
		<comments>http://victoriayudin.com/2011/12/09/sql-view-to-show-monthly-totals-for-dynamics-gp-vendors/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 11:35:17 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Payables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3902</guid>
		<description><![CDATA[In response to a reader request, I have created this new view based on my Vendor Yearly Totals view that will show monthly totals for your Dynamics GP Vendors for all years. This view will show both the numbers and names of the months and assumes that you have 12 periods corresponding to the calendar [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3902&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">In response to a reader request, I have created this new view based on my <a title="SQL view to show yearly totals for Dynamics GP Vendors" href="http://victoriayudin.com/2010/07/15/sql-view-to-show-yearly-totals-for-dynamics-gp-vendors/">Vendor Yearly Totals view</a> that will show monthly totals for your Dynamics GP Vendors for all years.</p>
<p style="text-align:justify;">This view will show both the numbers and names of the months and assumes that you have 12 periods corresponding to the calendar months. To get results for a particular year you can run the following query against this view after creating it:</p>
<p><code> select * from view_Vendor_Monthly_Totals<br />
where [Year] = 2011 <span style="color:#008000;">--change the year as desired</span><br />
</code></p>
<p>For more Dynamics GP Payables code, take a look at my <a title="Payables SQL Views" href="http://victoriayudin.com/gp-reports/payables-sql-views/">Payables SQL Views page</a>. Or check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a> for views in other modules and additional report writing and coding tips.</p>
<p><pre class="brush: sql;">

CREATE VIEW view_Vendor_Monthly_Totals
AS

-- ***************************************************************
-- view_Vendor_Monthly_Totals
-- Created Dec 9, 2011 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please see http://victoriayudin.com/gp-reports/
-- Shows totals for all AP vendors per month and year
-- Assumes periods are calendar months
-- Results shown for calendar months and functionaly currency
-- ***************************************************************

SELECT VT.VENDORID Vendor_ID,
       VM.VENDNAME Vendor_Name,
       VM.VNDCLSID Class_ID,
       case VM.VENDSTTS
          when 1 then 'Active'
          when 2 then 'Inactive'
          when 3 then 'Temporary'
          end Vendor_Status,
       case VM.TEN99TYPE
          when 1 then 'Not a 1099 Vendor'
          when 2 then 'Dividend'
          when 3 then 'Interest'
          when 4 then 'Miscellaneous'
          end [1099_Type],
       VM.PYMTRMID Payment_Terms_ID,
       VT.PERIODID Period,
       datename(month, DATEADD(month, VT.PERIODID, -1 )) [Month],
       VT.YEAR1 [Year],
       sum(VT.AMBLDLIF) Amount_Billed,
       sum(VT.AMTPDLIF) Amount_Paid,
       sum(VT.TEN99ALIF) [1099_Amount],
       sum(VT.FINCHLIF) Finance_Charges,
       sum(VT.WROFSLIF) Writeoffs,
       sum(VT.RTRNSLIF) [Returns],
       sum(VT.TRDTKLIF) Trade_Discounts,
       sum(VT.DISAVLIF) Term_Discounts_Avail,
       sum(VT.DISTKNLF) Term_Discounts_Taken,
       sum(VT.DISLSTLF) Term_Discounts_Lost,
       sum(VT.Withholding_LIFE) Withholding,
       sum(VT.NOINVLIF) Num_Of_Invoices,
       sum(VT.NFNCHLIF) Num_Of_Finance_Charges,
       VM.ADDRESS1 Address_1,
       VM.ADDRESS2 Address_2,
       VM.ADDRESS3 Address_3,
       VM.CITY City,
       VM.[STATE] [State],
       VM.ZIPCODE Zip_Code,
       VM.COUNTRY Country,
       VM.TXIDNMBR Tax_ID

FROM PM00202 VT

INNER JOIN PM00200 VM
       ON VT.VENDORID = VM.VENDORID

WHERE VT.HISTTYPE = 0

GROUP BY VT.VENDORID, VM.VENDNAME, VM.VNDCLSID, VM.VENDSTTS, VM.TEN99TYPE,
		 VM.PYMTRMID, VT.PERIODID, VT.YEAR1, VM.ADDRESS1, VM.ADDRESS2,
         VM.ADDRESS3, VM.CITY, VM.[STATE], VM.ZIPCODE, VM.COUNTRY, VM.TXIDNMBR

GO
GRANT SELECT ON view_Vendor_Monthly_Totals TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/payables-sql-code/'>Payables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/payables/'>Payables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3902/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3902&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/12/09/sql-view-to-show-monthly-totals-for-dynamics-gp-vendors/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/12/shaking-hands.jpg?w=110" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/12/shaking-hands.jpg?w=110" medium="image">
			<media:title type="html">shaking hands</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Decisions Fall 2011 &#8211; GP Day is today</title>
		<link>http://victoriayudin.com/2011/12/06/decisions-fall-2011-gp-day-is-today/</link>
		<comments>http://victoriayudin.com/2011/12/06/decisions-fall-2011-gp-day-is-today/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 13:21:15 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[MSDynamicsWorld]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3886</guid>
		<description><![CDATA[Come talk to us about new features in GP Reports Viewer at MSDynamicsWorld&#8217;s Decisions Fall 2011 today. I will be there all day along with our senior developer and SRS expert Mickie Stamm. Filed under: Dynamics GP, Events Tagged: Dynamics GP, MSDynamicsWorld<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3886&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Come talk to us about <a title="new features in GP Reports Viewer" href="http://GPReportsViewer.com/newsletters/201111.html" target="_blank">new features in GP Reports Viewer</a> at MSDynamicsWorld&#8217;s <a title="MSDynamicsWorld's Decisions Fall 2011 " href="http://decisions.msdynamicsworld.com/" target="_blank">Decisions Fall 2011</a> today. I will be there all day along with our senior developer and SRS expert Mickie Stamm.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/events/'>Events</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/msdynamicsworld/'>MSDynamicsWorld</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3886/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3886/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3886/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3886&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/12/06/decisions-fall-2011-gp-day-is-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/12/fall_decisions_02.jpg?w=104" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/12/fall_decisions_02.jpg?w=104" medium="image">
			<media:title type="html">fall_decisions_02</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Protect your investment in Microsoft Dynamics GP</title>
		<link>http://victoriayudin.com/2011/11/07/protect-your-investment-in-microsoft-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2011/11/07/protect-your-investment-in-microsoft-dynamics-gp/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 20:02:43 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[articles]]></category>
		<category><![CDATA[MSDynamicsWorld]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3871</guid>
		<description><![CDATA[MSDynamicsWorld.com has just published my new article called Protect Your Investment: Five Things You Must Document in a Microsoft Dynamics GP Solution. For more of my articles on MSDynamicsWorld, take a look at my profile page. And while you&#8217;re there, don&#8217;t forget to register for Decisions Fall 2011. Filed under: Dynamics GP Tagged: articles, Dynamics GP, MSDynamicsWorld<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3871&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="MSDynamicsWorld.com" href="http://www.msdynamicsworld.com/" target="_blank">MSDynamicsWorld.com</a> has just published my new article called <a title="Protect Your Investment: Five Things You Must Document in a Microsoft Dynamics GP Solution" href="http://msdynamicsworld.com/story/protect-your-investment-five-things-you-must-document-microsoft-dynamics-gp-solution" target="_blank">Protect Your Investment: Five Things You Must Document in a Microsoft Dynamics GP Solution</a>. For more of my articles on MSDynamicsWorld, take a look at my <a title="Victoria Yudin articles on MSDynamicsWorld" href="http://msdynamicsworld.com/author/victoria-yudin" target="_blank">profile page</a>. And while you&#8217;re there, don&#8217;t forget to register for <a title="Decisions Fall 2011" href="http://decisions.msdynamicsworld.com/" target="_blank">Decisions Fall 2011</a>.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a> Tagged: <a href='http://victoriayudin.com/tag/articles/'>articles</a>, <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/msdynamicsworld/'>MSDynamicsWorld</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3871/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3871/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3871/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3871&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/11/07/protect-your-investment-in-microsoft-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/11/orange-pen.jpg?w=57" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/11/orange-pen.jpg?w=57" medium="image">
			<media:title type="html">orange pen</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for SOP email setup in GP 2010</title>
		<link>http://victoriayudin.com/2011/10/24/sql-view-for-sop-email-setup-in-gp-2010/</link>
		<comments>http://victoriayudin.com/2011/10/24/sql-view-for-sop-email-setup-in-gp-2010/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:46:02 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP 2010]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[System/Setup SQL code]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3845</guid>
		<description><![CDATA[I am starting to work with emailing SOP documents using Dynamics GP 2010 and new functionality that we are going to be releasing in an upcoming build of GP Reports Viewer. It&#8217;s pretty cool stuff, however, as I am working with customers to set this up, we&#8217;re finding that out-of-the box GP does not have any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3845&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I am starting to work with emailing SOP documents using Dynamics GP 2010 and new functionality that we are going to be releasing in an upcoming build of <a title="GP Reports Viewer" href="http://www.GPReportsViewer.com/gpreports.html" target="_blank">GP Reports Viewer</a>. It&#8217;s pretty cool stuff, however, as I am working with customers to set this up, we&#8217;re finding that out-of-the box GP does not have any easy way to check all of the email setup.</p>
<p style="text-align:justify;">To help with this, I have added the email tables to my <a title="Company/System Tables" href="http://victoriayudin.com/gp-tables/companysystem-tables/" target="_blank">Company/System Tables page</a> and have created the view below that lists all customers, the email addresses for their default Bill To Address and what has been set up for emailing SOP documents for each of them.</p>
<p><pre class="brush: sql;">
create view view_Customer_SOP_Email_Setup
as

--****************************************************************
-- created 10/20/2011 by Victoria Yudin - Flexible Solutions, Inc. 
-- for updates please see http://victoriayudin.com/gp-reports/ 
-- only shows email addresses for the default bill to address
-- ***************************************************************

select
CM.CUSTNMBR Customer_ID,
CM.CUSTNAME Customer_Name,
CM.PRBTADCD Default_Bill_To_Address_ID,
coalesce(II.EmailToAddress,'') Email_To,
coalesce(II.EmailCcAddress,'') Email_Cc,
coalesce(II.EmailBccAddress,'') Email_Bcc,
case E1.EmailDocumentEnabled
	when 1 then case E1.EmailDocumentFormat
		when 1 then 'DOCX'
		when 2 then 'HTML'
		when 3 then 'PDF'
		when 4 then 'XPS'
		else ''
		end
	else 'Not enabled'
	end Email_SOP_Quote,
case E2.EmailDocumentEnabled
	when 1 then case E2.EmailDocumentFormat
		when 1 then 'DOCX'
		when 2 then 'HTML'
		when 3 then 'PDF'
		when 4 then 'XPS'
		else ''
		end
	else 'Not enabled'
	end Email_SOP_Order,
case E3.EmailDocumentEnabled
	when 1 then case E3.EmailDocumentFormat
		when 1 then 'DOCX'
		when 2 then 'HTML'
		when 3 then 'PDF'
		when 4 then 'XPS'
		else ''
		end
	else 'Not enabled'
	end Email_SOP_Invoice,
case E4.EmailDocumentEnabled
	when 1 then case E4.EmailDocumentFormat
		when 1 then 'DOCX'
		when 2 then 'HTML'
		when 3 then 'PDF'
		when 4 then 'XPS'
		else ''
		end
	else 'Not enabled'
	end Email_SOP_Return,
case E6.EmailDocumentEnabled
	when 1 then case E6.EmailDocumentFormat
		when 1 then 'DOCX'
		when 2 then 'HTML'
		when 3 then 'PDF'
		when 4 then 'XPS'
		else ''
		end
	else 'Not enabled'
	end Email_SOP_Fulfillment_Order

FROM RM00101 CM  --customer master 
LEFT OUTER JOIN RM00102 CA  --customer addresses
ON CM.CUSTNMBR = CA.CUSTNMBR and CM.PRBTADCD = CA.ADRSCODE

LEFT OUTER JOIN SY01200 II  --internet information
ON CM.CUSTNMBR = II.Master_ID and II.Master_Type = 'CUS'
     and CM.PRBTADCD = II.ADRSCODE

LEFT OUTER JOIN SY04905 E1  --email setup for SOP Quote 
ON CM.CUSTNMBR = E1.EmailCardID AND E1.MODULE1 = 11
     AND E1.EmailDocumentID = 1

LEFT OUTER JOIN SY04905 E2  --email setup for SOP Order 
ON CM.CUSTNMBR = E2.EmailCardID AND E2.MODULE1 = 11
     AND E2.EmailDocumentID = 2

LEFT OUTER JOIN SY04905 E3  --email setup for SOP Invoice
ON CM.CUSTNMBR = E3.EmailCardID AND E3.MODULE1 = 11
     AND E3.EmailDocumentID = 3

LEFT OUTER JOIN SY04905 E4  --email setup for SOP Return
ON CM.CUSTNMBR = E4.EmailCardID AND E4.MODULE1 = 11
     AND E4.EmailDocumentID = 4

LEFT OUTER JOIN SY04905 E6  --email setup for SOP Fulfillment Order 
ON CM.CUSTNMBR = E6.EmailCardID AND E6.MODULE1 = 11
     AND E6.EmailDocumentID = 6

GO
GRANT SELECT ON view_Customer_SOP_Email_Setup TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-2010/'>GP 2010</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/category/gp-reports-code/systemsetup-sql-code/'>System/Setup SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3845/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3845/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3845/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3845&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/10/24/sql-view-for-sop-email-setup-in-gp-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/10/email-red.jpg?w=63" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/10/email-red.jpg?w=63" medium="image">
			<media:title type="html">3d small people - email</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Holiday status poll</title>
		<link>http://victoriayudin.com/2011/10/07/holiday-status-poll/</link>
		<comments>http://victoriayudin.com/2011/10/07/holiday-status-poll/#comments</comments>
		<pubDate>Fri, 07 Oct 2011 16:52:09 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3823</guid>
		<description><![CDATA[The holidays are coming up, so I thought I would start a little poll to see what&#8217;s happening this year&#8230;be truthful! Filed under: Miscellaneous Tagged: Miscellaneous<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3823&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The holidays are coming up, so I thought I would start a little poll to see what&#8217;s happening this year&#8230;be truthful!</p>
<p style="text-align:center;"><a href="http://polldaddy.com/poll/5565309">Take Our Poll</a></p>
<br />Filed under: <a href='http://victoriayudin.com/category/miscellaneous/'>Miscellaneous</a> Tagged: <a href='http://victoriayudin.com/tag/miscellaneous/'>Miscellaneous</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3823/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3823/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3823/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3823&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/10/07/holiday-status-poll/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/10/santa.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/10/santa.jpg?w=96" medium="image">
			<media:title type="html">run santa</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for bank deposits and receipts in Dynamics GP</title>
		<link>http://victoriayudin.com/2011/10/06/sql-view-for-bank-deposits-and-receipts-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2011/10/06/sql-view-for-bank-deposits-and-receipts-in-dynamics-gp/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 20:03:30 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Bank Rec SQL code]]></category>
		<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Bank Reconciliation]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3813</guid>
		<description><![CDATA[About a year ago I published a view for a Checkbook Register and have received some follow up requests asking for a way to show the receipt details. Primarily this request seems to come from the need to see the difference in dates between the receipts and the deposits for tracking down possible bank reconciliation issues. I didn&#8217;t want to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3813&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">About a year ago I published a view for a <a title="SQL view for Dynamics GP Checkbook Register" href="http://victoriayudin.com/2010/10/14/sql-view-for-dynamics-gp-checkbook-register/" target="_blank">Checkbook Register</a> and have received some follow up requests asking for a way to show the receipt details. Primarily this request seems to come from the need to see the difference in dates between the receipts and the deposits for tracking down possible bank reconciliation issues. I didn&#8217;t want to clutter up the original view with this, so I thought it would be better to create a separate view showing the receipt details.</p>
<p style="text-align:justify;">The view below shows all the posted deposits and the associated receipts.  Each receipt is on a separate line and the deposit information will be repeated as many times as there are receipts in that deposit.</p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<pre>CREATE VIEW view_Bank_Deposits_and_Receipts
as</pre>
<p><span style="color:#888888;"><code>/*******************************************************************</code></span><br />
<span style="color:#888888;"><code>view_Bank_Deposits_and_Receipts</code></span><br />
<span style="color:#888888;"><code>Created on Oct 6, 2011 by Victoria Yudin</code></span><br />
<span style="color:#888888;"><code>For updates please see http://victoriayudin.com/gp-reports/</code></span><br />
<span style="color:#888888;"><code>All bank rec deposits with their receipts - one line per receipt</code></span><br />
<span style="color:#888888;"><code>Includes voided transactions </code></span><br />
<span style="color:#888888;"><code>Tables: </code></span><br />
<span style="color:#888888;"><code>CM20200 - bank transactions </code></span><br />
<span style="color:#888888;"><code>CM20300 - bank receipts </code></span><br />
<span style="color:#888888;"><code>CM40101 - transaction type setup</code></span><br />
<span style="color:#888888;"><code>*******************************************************************/</code></span></p>
<pre>SELECT
     T.CHEKBKID Checkbook_ID,
     T.CMTrxNum Deposit_Number,
     T.TRXDATE Deposit_Date,
     T.GLPOSTDT Deposit_GL_Posting_Date,
     T.Checkbook_Amount Deposit_Amount,
     T.CURNCYID Currency_ID,
     T.DSCRIPTN 'Description',
     T.ClrdAmt Cleared_Amount,
     CASE T.Recond
     WHEN 1 THEN 'Yes'
       ELSE 'No'
       END Reconciled,
     T.AUDITTRAIL Audit_Trail,
     CASE T.VOIDED
       WHEN 1 THEN 'Yes'
       ELSE 'No'
       END Deposit_Voided,
     R.RCPTNMBR Receipt_Number,
     R.receiptdate Receipt_Date,
     R.GLPOSTDT Receipt_GL_Posting_Date,
     CASE R.RcpType
       WHEN 1 THEN 'Check'
       WHEN 2 THEN 'Cash'
       WHEN 3 THEN 'Credit Card'
       END Receipt_Type,
     R.RcvdFrom Received_From,
     R.ORIGAMT Originating_Amount,
     R.Checkbook_Amount Receipt_Amount,
     R.CURNCYID Receipt_Currency,
     CASE R.VOIDED
       WHEN 1 THEN 'Yes'
       ELSE 'No'
       END Receipt_Voided

FROM CM20200 T

LEFT OUTER JOIN CM40101 D
ON D.CMTrxType = T.CMTrxType

LEFT OUTER JOIN CM20300 R
ON R.depositnumber = T.CMTrxNum

WHERE D.DOCABREV = 'DEP'</pre>
<p><code></code><br />
<span style="color:#339966;"><code>/** the following will grant permissions to this view to DYNGRP,</code></span><br />
<code><span style="color:#339966;">leave this section off if you do not want to grant permissions **/</span></code><code><br />
</code><code>GO</code><br />
<code>GRANT SELECT ON view_Bank_Deposits_and_Receipts TO DYNGRP</code></p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/gp-reports-code/bank-rec-sql-code/'>Bank Rec SQL code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a> Tagged: <a href='http://victoriayudin.com/tag/bank-reconciliation/'>Bank Reconciliation</a>, <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3813/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3813/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3813/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3813&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/10/06/sql-view-for-bank-deposits-and-receipts-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2008/10/piggybank.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2008/10/piggybank.jpg?w=96" medium="image">
			<media:title type="html">piggy bank</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for current Payables aging in Dynamics GP</title>
		<link>http://victoriayudin.com/2011/09/30/sql-view-for-current-payables-aging-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2011/09/30/sql-view-for-current-payables-aging-in-dynamics-gp/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 12:51:22 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[Payables SQL code]]></category>
		<category><![CDATA[GP SQL view]]></category>
		<category><![CDATA[Payables]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3790</guid>
		<description><![CDATA[Over the past few years I have had several requests for a summary current Payables aging report that can be easily exported into Excel. Yes, you can play with the Report Writer aging report to take out the headers and make it export to Excel, but sometimes there are other reasons for wanting a report outside [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3790&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Over the past few years I have had several requests for a summary current Payables aging report that can be easily exported into Excel. Yes, you can play with the Report Writer aging report to take out the headers and make it export to Excel, but sometimes there are other reasons for wanting a report outside of Report Writer.</p>
<p style="text-align:justify;">Below is a script to create a view for this. It is only looking at functional currency and will return one row per vendor with a balance. I am hard-coding the aging using the default aging setup installed with GP, which is aging by due date and using the following buckets:</p>
<ul>
<li>
<div style="text-align:justify;">Current</div>
</li>
<li>
<div style="text-align:justify;">31 to 60 Days</div>
</li>
<li>
<div style="text-align:justify;">61 to 90 Days</div>
</li>
<li>
<div style="text-align:justify;">91 and Over</div>
</li>
</ul>
<p style="text-align:justify;">If you would like to use different aging buckets, just follow the examples in my code.</p>
<p><pre class="brush: sql;">
create view view_Current_Payables_Aging_Summary
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Current_Payables_Aging_Summary
-- Created Sep 30, 2011 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates please see http://victoriayudin.com/gp-reports/
-- Shows current AP aging
-- Functional currency only
-- Updated on Jan 25, 2012 to fix all aging buckets to use due dates
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

SELECT
VM.VENDORID Vendor_ID, VM.VENDNAME Vendor_Name, 
VM.VNDCLSID Vendor_Class, VM.PYMTRMID Vendor_Terms,

sum(CASE
   WHEN P.DOCTYPE &lt; 4 THEN P.CURTRXAM
   ELSE P.CURTRXAM * -1
   END) Unapplied_Amount,

sum(CASE
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) &lt; 31 and P.DOCTYPE &lt; 4 THEN P.CURTRXAM
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) &lt; 31 and P.DOCTYPE &gt; 3 THEN P.CURTRXAM * -1
   ELSE 0
   END) [Current],

sum(CASE
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) between 31 and 60 
      and P.DOCTYPE &lt; 4 THEN P.CURTRXAM
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) between 31 and 60 
      and P.DOCTYPE &gt; 3 THEN P.CURTRXAM * -1
   ELSE 0
   END) [31_to_60_Days],

sum(CASE
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) between 61 and 90
      and P.DOCTYPE &lt; 4 THEN P.CURTRXAM
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) between 61 and 90
      and P.DOCTYPE &gt; 3 THEN P.CURTRXAM * -1
   ELSE 0
   END) [61_to_90_Days],

sum(CASE
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) &gt; 90 and P.DOCTYPE &lt; 4 THEN P.CURTRXAM
   WHEN DATEDIFF(d, P.DUEDATE, getdate()) &gt; 90 and P.DOCTYPE &gt; 3 THEN P.CURTRXAM * -1
   ELSE 0
   END) [91_and_Over]

FROM PM00200 VM  --vendor master
INNER JOIN PM20000 P  --open payables
   ON P.VENDORID = VM.VENDORID

WHERE P.CURTRXAM &lt;&gt; 0 AND VOIDED = 0

GROUP BY VM.VENDORID, VM.VENDNAME, VM.PYMTRMID, VM.VNDCLSID

-- add permissions for DYNGRP
GO
GRANT SELECT ON view_Current_Payables_Aging_Summary TO DYNGRP
</pre></p>
<p>style=&#8221;text-align: justify;&#8221;&gt;<em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/payables-sql-code/'>Payables SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/gp-sql-view/'>GP SQL view</a>, <a href='http://victoriayudin.com/tag/payables/'>Payables</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3790/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3790/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3790/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3790&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/09/30/sql-view-for-current-payables-aging-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/02/briefcaseinvoice.jpg?w=85" medium="image">
			<media:title type="html">briefcase invoice</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for user activity in Dynamics GP</title>
		<link>http://victoriayudin.com/2011/09/12/sql-view-for-user-activity-in-dynamics-gp/</link>
		<comments>http://victoriayudin.com/2011/09/12/sql-view-for-user-activity-in-dynamics-gp/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 14:13:22 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[System/Setup SQL code]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3773</guid>
		<description><![CDATA[There are many different pieces of code that I have seen for this over the years, but more often than not what our users ask me for is a way to quickly see who is logged into GP, what company, and when did they log in. While this can easily be seen on the User Activity window (GP &#124; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3773&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><span style="color:#888888;"><span style="color:#000000;">There are many different pieces of code that I have seen for this over the years, but more often than not what our users ask me for is a way to quickly see who is logged into GP, what company, and when did they log in. While this can easily be seen on the User Activity window (<em>GP | Tools | Utilities | System | User Activity</em>), many users do not have access to this window and sometimes this need arises when someone is either not able to get into GP or does not want to take the time to do so. </span></span></p>
<p style="text-align:justify;"><span style="color:#888888;"><span style="color:#000000;">Below is a view to show all the users logged in and a count of the batches, resources and tables each user has locked or open. Please note that this code will not show details of what the users have locked or open, just the counts. The idea behind this is that if a user has something locked, you may not want to simply delete them out of the ACTIVITY table, because those resources, tables or batches will still be locked by the user. This code can also be helpful to monitor users who are not logging out of the system at night or have multiple companies open.</span></span></p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p><code>CREATE VIEW view_User_Activity<br />
AS</code><br />
<span style="color:#339966;"><code>/*</code></span><br />
<span style="color:#339966;"><code>view_User_Activity<br />
created Sep 12, 2011 by Victoria Yudin<br />
for updates please see http://victoriayudin.com/gp-reports/</code></span><br />
<span style="color:#339966;"><code>*/</code></span></p>
<pre>SELECT
a.USERID GP_User_ID,
um.USERNAME [User_Name],
a.CMPNYNAM Company_Name,
a.LOGINDAT+a.LOGINTIM Login_Date_and_Time,
coalesce(b.batch_count,0) Batch_Activity_Records,
coalesce(r.resource_count,0) Resource_Activity_Records,
coalesce(t.table_locks,0) Table_Lock_Records

FROM DYNAMICS..ACTIVITY a

LEFT OUTER JOIN
(SELECT USERID, count(*) batch_count
 FROM DYNAMICS..SY00800
 GROUP BY USERID) b -- batch activity
ON a.USERID = b.USERID

LEFT OUTER JOIN
(SELECT USERID, count(*) resource_count
 FROM DYNAMICS..SY00801
 GROUP BY USERID) r -- resource activity
ON a.USERID = r.USERID

LEFT OUTER JOIN
(SELECT Session_ID, COUNT(*) table_locks
 FROM tempdb..DEX_LOCK
 GROUP BY Session_ID) t -- table locks
ON a.SQLSESID = t.Session_ID

LEFT OUTER JOIN
DYNAMICS..SY01400 um -- user master
ON a.USERID = um.USERID</pre>
<p><code></code><br />
<span style="color:#339966;"><code>/** the following will grant permissions to this view to DYNGRP,<br />
leave this section off if you do not want to grant permissions **/ </code></span><br />
<code>GO<br />
GRANT SELECT ON view_User_Activity TO DYNGRP</code></p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/systemsetup-sql-code/'>System/Setup SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3773/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3773/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3773/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3773&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/09/12/sql-view-for-user-activity-in-dynamics-gp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/09/rocking-horse.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/09/rocking-horse.jpg?w=96" medium="image">
			<media:title type="html">baby and horse</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for sales by item by month</title>
		<link>http://victoriayudin.com/2011/08/29/sql-view-for-sales-by-item-by-month/</link>
		<comments>http://victoriayudin.com/2011/08/29/sql-view-for-sales-by-item-by-month/#comments</comments>
		<pubDate>Mon, 29 Aug 2011 13:57:35 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[SOP SQL code]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3760</guid>
		<description><![CDATA[Here is a new Dynamics GP SQL view in reponsse to a reader that liked my view for sales by item by year, but wanted to see the same thing by month. I am making a few assumptions (listed in the view comments), and am hard coding one year at a time (2011 in this example). You can easily [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3760&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Here is a new Dynamics GP SQL view in reponsse to a reader that liked my view for <a title="SQL view for sales by item by year" href="http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/" target="_blank">sales by item by year</a>, but wanted to see the same thing by month. I am making a few assumptions (listed in the view comments), and am hard coding one year at a time (2011 in this example). You can easily change the year as needed for one year at a time.</p>
<p><pre class="brush: sql;">
&lt;code&gt;create view view_Sales_by_Item_by_Month
as

-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
-- view_Sales_by_Item_by_Month
-- Created Aug 29, 2011 by Victoria Yudin - Flexible Solutions, Inc.
-- For updates see http://victoriayudin.com/gp-reports/
-- Returns total sales (invoices - returns) for each item by month 
--     (for the specified year)
-- Only posted invoices and returns are included
-- Voided transations are excluded
-- Item Description is taken from Inventory Item Maintenance for all
-- inventory items, and from SOP line items for non-inventory items
-- Document Date is used (not GL Posting Date)
-- Updated Aug 29, 2011 to add Generic Description, Item Class and User Category 1
-- Updated Jan 25, 2012 to make column names Crystal-friendly 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~

SELECT
D.ITEMNMBR Item_Number,
D.Item_Description,
D.Generic_Description,
D.Item_Class,
D.User_Category_1,
sum(case when month(D.DOCDATE) = 1 then D.SALES else 0 end) as [Jan_Sales],
sum(case when month(D.DOCDATE) = 2 then D.SALES else 0 end) as [Feb_Sales],
sum(case when month(D.DOCDATE) = 3 then D.SALES else 0 end) as [Mar_Sales],
sum(case when month(D.DOCDATE) = 4 then D.SALES else 0 end) as [Apr_Sales],
sum(case when month(D.DOCDATE) = 5 then D.SALES else 0 end) as [May_Sales],
sum(case when month(D.DOCDATE) = 6 then D.SALES else 0 end) as [Jun_Sales],
sum(case when month(D.DOCDATE) = 7 then D.SALES else 0 end) as [Jul_Sales],
sum(case when month(D.DOCDATE) = 8 then D.SALES else 0 end) as [Aug_Sales],
sum(case when month(D.DOCDATE) = 9 then D.SALES else 0 end) as [Sep_Sales],
sum(case when month(D.DOCDATE) = 10 then D.SALES else 0 end) as [Oct_Sales],
sum(case when month(D.DOCDATE) = 11 then D.SALES else 0 end) as [Nov_Sales],
sum(case when month(D.DOCDATE) = 12 then D.SALES else 0 end) as [Dec_Sales]

FROM
(SELECT SH.DOCDATE, SD.ITEMNMBR,
 coalesce(I.ITEMDESC, SD.ITEMDESC) Item_Description,
 coalesce(I.ITMGEDSC, '') Generic_Description,
 coalesce(I.ITMCLSCD,'') Item_Class,
 coalesce(I.USCATVLS_1,'') User_Category_1,
 CASE SD.SOPTYPE
     WHEN 3 THEN SD.XTNDPRCE
     WHEN 4 THEN SD.XTNDPRCE*-1
     END SALES
 FROM SOP30200 SH
 INNER JOIN
     SOP30300 SD
     ON SD.SOPNUMBE = SH.SOPNUMBE
     AND SD.SOPTYPE = SH.SOPTYPE
 LEFT OUTER JOIN
     IV00101 I
     ON I.ITEMNMBR = SD.ITEMNMBR
 WHERE SH.VOIDSTTS = 0
     AND SH.SOPTYPE IN (3,4)
     AND SD.XTNDPRCE &lt;&gt; 0
     AND SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%'
     AND year(SH.DOCDATE) = 2011 --change year as needed 
     ) D

GROUP BY D.ITEMNMBR, D.Item_Description, D.Generic_Description, D.Item_Class, 
D.User_Category_1

-- add permissions for DYNGRP
GO
GRANT SELECT ON view_Sales_by_Item_by_Month TO DYNGRP
</pre></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3760/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3760/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3760/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3760&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/08/29/sql-view-for-sales-by-item-by-month/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/08/orange-man-box.jpg?w=65" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/08/orange-man-box.jpg?w=65" medium="image">
			<media:title type="html">Orange man box</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL view for sales by item by year</title>
		<link>http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/</link>
		<comments>http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 11:56:51 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[GP SQL scripts]]></category>
		<category><![CDATA[SOP SQL code]]></category>
		<category><![CDATA[Sales Order Processing]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3729</guid>
		<description><![CDATA[I had a request from a blog reader for a view that shows sales of items by year. This seemed like pretty useful code to create, so I put the following view together. I am making a few assumptions (listed in the view comments), and am hard coding years from 2005 through 2011. You can easily change the years or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3729&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I had a request from a blog reader for a view that shows sales of items by year. This seemed like pretty useful code to create, so I put the following view together. I am making a few assumptions (listed in the view comments), and am hard coding years from 2005 through 2011. You can easily change the years or add new ones by following the example in my code.</p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p><code>create view view_Sales_by_Item_by_Year<br />
as</code><br />
<code><span style="color:#888888;">/******************************************************************</span></code><br />
<code><span style="color:#888888;">view_Sales_by_Item_by_Year</span></code><br />
<span style="color:#808080;"><code>Created Aug 11, 2011 by Victoria Yudin - Flexible Solutions, Inc.<br />
For updates see http://victoriayudin.com/gp-reports/<br />
- Returns total sales (invoices - returns) for each item by year<br />
- Only posted invoices and returns are included<br />
- Voided transations are excluded<br />
- Item Description is taken from Inventory Item Maintenance<br />
for all inventory items,<br />
and from SOP line items for non-inventory items</code></span><br />
<span style="color:#808080;"><code>******************************************************************/</code></span></p>
<pre>SELECT
   D.ITEMNMBR [Item_Number],
   D.Item_Description,
   sum(case when year(D.DOCDATE) = 2005
      then D.SALES else 0 end) as [2005 Sales],
   sum(case when year(D.DOCDATE) = 2006
      then D.SALES else 0 end) as [2006 Sales],
   sum(case when year(D.DOCDATE) = 2007
      then D.SALES else 0 end) as [2007 Sales],
   sum(case when year(D.DOCDATE) = 2008
      then D.SALES else 0 end) as [2008 Sales],
   sum(case when year(D.DOCDATE) = 2009
      then D.SALES else 0 end) as [2009 Sales],
   sum(case when year(D.DOCDATE) = 2010
      then D.SALES else 0 end) as [2010 Sales],
   sum(case when year(D.DOCDATE) = 2011
      then D.SALES else 0 end) as [2011 Sales]

FROM
(SELECT SH.DOCDATE, SD.ITEMNMBR,
 coalesce(I.ITEMDESC, SD.ITEMDESC) Item_Description,
 CASE SD.SOPTYPE
     WHEN 3 THEN SD.XTNDPRCE
     WHEN 4 THEN SD.XTNDPRCE*-1
     END SALES
 FROM SOP30200 SH
 INNER JOIN
     SOP30300 SD
     ON SD.SOPNUMBE = SH.SOPNUMBE
     AND SD.SOPTYPE = SH.SOPTYPE
 LEFT OUTER JOIN
     IV00101 I
     ON I.ITEMNMBR = SD.ITEMNMBR
 WHERE SH.VOIDSTTS = 0
     AND SH.SOPTYPE IN (3,4)
     AND SD.XTNDPRCE &lt;&gt; 0
     AND SD.ITEMNMBR not like 'XXXXXXXXXXXXXXX%') D

GROUP BY D.ITEMNMBR, D.Item_Description

<span style="color:#339966;">/** the following will grant permissions to this view to DYNGRP,
leave this section off if you do not want to grant permissions **/ </span></pre>
<p><code>GO<br />
GRANT SELECT ON view_Sales_by_Item_by_Year TO DYNGRP</code></p>
<p style="text-align:center;"><span style="color:#888888;">~~~~~</span></p>
<p style="text-align:justify;"><em>Disclaimer: I tested this on limited data, if you find an issue or have a suggestion for improvement, please let me know and I will post the update here for everyone.</em></p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/dynamics-gp/gp-sql-scripts/'>GP SQL scripts</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sop-sql-code/'>SOP SQL code</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sales-order-processing/'>Sales Order Processing</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3729/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3729/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3729/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3729&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/08/11/sql-view-for-sales-by-item-by-year/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/08/moneyman.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/08/moneyman.jpg?w=96" medium="image">
			<media:title type="html">dollar chrome symbol</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Management Reporter versions</title>
		<link>http://victoriayudin.com/2011/07/04/management-reporter-versions/</link>
		<comments>http://victoriayudin.com/2011/07/04/management-reporter-versions/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 14:18:10 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Management Reporter]]></category>
		<category><![CDATA[management reporter]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3714</guid>
		<description><![CDATA[I am starting to do some work with Management Reporter, so I thought it would be useful to have a list of the versions for various service pack levels. What I have so far is only for version 2.0 and it may not be complete. If anyone has other versions, please let me know and I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3714&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I am starting to do some work with Management Reporter, so I thought it would be useful to have a list of the versions for various service pack levels. What I have so far is only for version 2.0 and it may not be complete. If anyone has other versions, please let me know and I will update this list.</p>
<table>
<tbody>
<tr>
<td><span style="color:#993300;"><strong>Management Reporter</strong></span></td>
<td style="text-align:center;"><strong>SP 1</strong></td>
<td style="text-align:center;"><strong>FP 1</strong></td>
<td style="text-align:center;"><strong>SP 2</strong></td>
<td style="text-align:center;"><strong>SP 2 Update</strong></td>
</tr>
<tr>
<td><strong>Version 2.0</strong></td>
<td style="text-align:center;">2.0.1663.3</td>
<td style="text-align:center;"> 2.0.1664.19</td>
<td style="text-align:center;"> 2.0.1700.31</td>
<td style="text-align:center;"> 2.0.1700.66</td>
</tr>
</tbody>
</table>
<br />Filed under: <a href='http://victoriayudin.com/category/management-reporter/'>Management Reporter</a> Tagged: <a href='http://victoriayudin.com/tag/management-reporter-2/'>management reporter</a>, <a href='http://victoriayudin.com/tag/version/'>version</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3714/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3714/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3714/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3714&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/07/04/management-reporter-versions/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/07/orange-man-magnifying-glass.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/07/orange-man-magnifying-glass.jpg?w=96" medium="image">
			<media:title type="html">Orange man magnifying glass</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Dynamics GP 2010 Implementation &#8211; now on Kindle!</title>
		<link>http://victoriayudin.com/2011/06/23/microsoft-dynamics-gp-2010-implementation-now-on-kindle/</link>
		<comments>http://victoriayudin.com/2011/06/23/microsoft-dynamics-gp-2010-implementation-now-on-kindle/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 11:44:27 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[book]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3697</guid>
		<description><![CDATA[Yes, you read that right &#8211; my Microsoft Dynamics GP 2010 Implementation book is now on Kindle! I have been thinking about getting a Kindle for a while, and have admired the few I have seen owned by friends and family, but there was no compelling enough reason for me to get one. Until now, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3697&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yes, you read that right &#8211; <a href="http://www.amazon.com/gp/product/B0057EUR6Q/ref=as_li_ss_tl?ie=UTF8&amp;tag=vicyudramandm-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=B0057EUR6Q">my Microsoft Dynamics GP 2010 Implementation book is now on Kindle!</a><img style="border:none!important;margin:0!important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=B0057EUR6Q&amp;camp=217145&amp;creative=399373" alt="" width="1" height="1" border="0" /></p>
<p>I have been thinking about getting a <a title="Kindle" href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2Fkindle-store-ebooks-newspapers-blogs%2Fb%3Fie%3DUTF8%26node%3D133141011%26ref_%3Dsr_tc_sc_2_0%26qid%3D1308829118%26sr%3D1-2-tc%23&amp;tag=vicyudramandm-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957" target="_blank">Kindle</a> for a while, and have admired the few I have seen owned by friends and family, but there was no compelling enough reason for me to get one. Until now, that is. As soon as I saw the email from my book&#8217;s editor saying it is now available on it, I placed the order for my own shiny new <a href="http://www.amazon.com/gp/redirect.html?ie=UTF8&amp;location=http%3A%2F%2Fwww.amazon.com%2Fkindle-store-ebooks-newspapers-blogs%2Fb%3Fie%3DUTF8%26node%3D133141011%26ref_%3Dsr_tc_sc_2_0%26qid%3D1308829118%26sr%3D1-2-tc%23&amp;tag=vicyudramandm-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957">Kindle</a>. There are some nice deals available, so it&#8217;s a great time to buy one. Now I am thinking I should have gone for the overnight shipping&#8230;waiting until Friday will be unbearable.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a> Tagged: <a href='http://victoriayudin.com/tag/book/'>book</a>, <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3697/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3697/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3697/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3697&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/06/23/microsoft-dynamics-gp-2010-implementation-now-on-kindle/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/05/0325en_mockupcover.png?w=78" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/05/0325en_mockupcover.png?w=78" medium="image">
			<media:title type="html">Dynamics GP 2010 Implementation</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://www.assoc-amazon.com/e/ir?t=&#38;l=as2&#38;o=1&#38;a=B0057EUR6Q&#38;camp=217145&#38;creative=399373" medium="image" />
	</item>
		<item>
		<title>Sign up for Decisions Spring 2011</title>
		<link>http://victoriayudin.com/2011/05/24/sign-up-for-decisions-spring-2011/</link>
		<comments>http://victoriayudin.com/2011/05/24/sign-up-for-decisions-spring-2011/#comments</comments>
		<pubDate>Tue, 24 May 2011 17:17:16 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[GP Reports Viewer]]></category>
		<category><![CDATA[Decisions]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3659</guid>
		<description><![CDATA[MSDynamicsWorld.com is putting on another virtual show in a few weeks called Decisions Spring 2011. My company, Flexible Solutions, has been a sponsor at the last few Decisions events and they just keep getting better. All the Dynamics products have their own day, Dynamics GP day is June 15.  You can read all about the exciting [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3659&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><a title="MSDynamicsWorld.com" href="http://MSDynamicsWorld.com" target="_blank">MSDynamicsWorld.com</a> is putting on another virtual show in a few weeks called <a title="Decisions Spring 2011" href="http://decisions.msdynamicsworld.com/" target="_blank">Decisions Spring 2011</a>. My company, <a title="Flexible Solutions" href="http://www.flex-solutions.com/" target="_blank">Flexible Solutions</a>, has been a sponsor at the last few Decisions events and they just keep getting better. All the Dynamics products have their own day, Dynamics GP day is June 15. </p>
<p style="text-align:justify;">You can read all about the exciting content on the <a title="Decisions Spring 2011" href="http://decisions.msdynamicsworld.com/" target="_blank">official site</a>, but the real reason you should sign up is to stop by the Flexible Solutions&#8217; booth where you can:</p>
<ul>
<li style="text-align:justify;">Chat with our team</li>
<li style="text-align:justify;">Learn more about <a title="GP Reports Viewer" href="http://www.gpreportsviewer.com/gpreports.html" target="_blank">GP Reports Viewer</a> &#8211; our fabulous product that makes running and administering Crystal and SRS reports in GP a breeze</li>
<li>Request some <a title="GP Reports Viewer" href="http://www.gpreportsviewer.com/gpreports.html" target="_blank">GP Reports Viewer</a> goodies - we know one of the cool things about going to a trade show is picking up goodies. Just because this is a virtual show doesn&#8217;t mean that you have to go without. We have them ready and waiting:<a href="http://www.gpreportsviewer.com/gpreports.html"><img class="aligncenter size-full wp-image-3677" title="GP Reports Viewer goodies" src="http://victoriayudin.files.wordpress.com/2011/05/gp-reports-viewer-goodies2.png?w=450" alt=""   /></a></li>
</ul>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/category/events/'>Events</a>, <a href='http://victoriayudin.com/category/gp-reports-viewer/'>GP Reports Viewer</a> Tagged: <a href='http://victoriayudin.com/tag/decisions/'>Decisions</a>, <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a>, <a href='http://victoriayudin.com/tag/gp-reports-viewer/'>GP Reports Viewer</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3659/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3659/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3659/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3659&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/05/24/sign-up-for-decisions-spring-2011/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/05/decisions2011logo.jpg?w=128" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/05/decisions2011logo.jpg?w=128" medium="image">
			<media:title type="html">Decisions Spring 2011</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>

		<media:content url="http://victoriayudin.files.wordpress.com/2011/05/gp-reports-viewer-goodies2.png" medium="image">
			<media:title type="html">GP Reports Viewer goodies</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting the name of a month from the month number in SQL Server</title>
		<link>http://victoriayudin.com/2011/05/23/getting-the-name-of-a-month-from-the-month-number-in-sql-server/</link>
		<comments>http://victoriayudin.com/2011/05/23/getting-the-name-of-a-month-from-the-month-number-in-sql-server/#comments</comments>
		<pubDate>Mon, 23 May 2011 12:21:18 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[GP Reports code]]></category>
		<category><![CDATA[SQL coding]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL code]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3636</guid>
		<description><![CDATA[I was creating a SmartList for a customer recently and was using the GL11110 and GL11111 views in GP for monthly summaries of P&#38;L accounts, but wanted to show the month names instead of period ID&#8217;s to make it a bit more user-friendly. I could have linked to the fiscal period setup table to get the period names, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3636&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I was creating a SmartList for a customer recently and was using the GL11110 and GL11111 views in GP for monthly summaries of P&amp;L accounts, but wanted to show the month names instead of period ID&#8217;s to make it a bit more user-friendly. I could have linked to the fiscal period setup table to get the period names, but many companies do not actually change the period names there, so all I would have gotten would be &#8216;Period 1&#8242;, &#8216;Period 2&#8242;, etc. </p>
<p style="text-align:justify;">Instead of &#8216;hard-coding&#8217; these with a case statement I thought I would try to find a way to do this more elegantly. So I did some searching on the internet and put together the SQL statement below. I thought I would share it to save others time:</p>
<p><span style="color:#333399;"><code>SELECT DATENAME(month, DATEADD(month, GL.PERIODID, -1 )) </code></span></p>
<p style="text-align:justify;">You can see how to do this without writing code using Crystal Reports and SSRS in the <a title="GP Reports Viewer May 2011 newsletter" href="http://www.flex-solutions.com/newsletters/200904.html" target="_blank">May issue of our GP Reports Viewer Newsletter</a>.  </p>
<p style="text-align:justify;">More tips like this can be found on my <a title="SQL Server Coding Tips" href="http://victoriayudin.com/gp-reports/sql-server-coding-tips/">SQL Server Coding Tips page</a>. For more Dynamics GP code, check out my <a title="GP Reports" href="http://victoriayudin.com/gp-reports/">GP Reports page</a>.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/category/gp-reports-code/sql-coding/'>SQL coding</a>, <a href='http://victoriayudin.com/category/sql-server/'>SQL Server</a> Tagged: <a href='http://victoriayudin.com/tag/gp-reports-code/'>GP Reports code</a>, <a href='http://victoriayudin.com/tag/sql-code/'>SQL code</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3636/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3636/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3636/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3636&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/05/23/getting-the-name-of-a-month-from-the-month-number-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/05/gear.jpg?w=96" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/05/gear.jpg?w=96" medium="image">
			<media:title type="html">turn the gears</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamics Month at Packt Publishing</title>
		<link>http://victoriayudin.com/2011/05/16/dynamics-month-at-packt-publishing/</link>
		<comments>http://victoriayudin.com/2011/05/16/dynamics-month-at-packt-publishing/#comments</comments>
		<pubDate>Mon, 16 May 2011 12:48:42 +0000</pubDate>
		<dc:creator>Victoria Yudin</dc:creator>
				<category><![CDATA[Dynamics GP]]></category>
		<category><![CDATA[book]]></category>

		<guid isPermaLink="false">http://victoriayudin.com/?p=3622</guid>
		<description><![CDATA[May is Dynamics Month over at Packt Publishing, the publisher for my Dynamics GP 2010 Implementation book, Mark Polino&#8217;s Dynamics GP 2010 Cookbook and a newly published Dynamics GP 2010 Reporting book. Now, I personally believe that every month is Dynamics month , but if you&#8217;ve been waiting to get your Dynamics books, now is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3622&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">May is <a title="Packt Dynamics Month" href="http://www.packtpub.com/article/exclusive-offer-microsoft-dynamics-books" target="_blank">Dynamics Month</a> over at <a title="http://www.packtpub.com" href="http://victoriayudin.wordpress.com/wp-admin/Packt%20Publishing" target="_blank">Packt Publishing</a>, the publisher for my <a title="Microsoft Dynamics GP 2010 Implementation" href="https://www.packtpub.com/microsoft-dynamics-gp-2010-implementation/book" target="_blank">Dynamics GP 2010 Implementation book</a>, Mark Polino&#8217;s <a title="Microsoft Dynamics GP 2010 Cookbook" href="http://www.packtpub.com/microsoft-dynamics-gp-2010-cookbook/book?utm_source=victoriayudin.com&amp;utm_medium=bookrev&amp;utm_content=blog&amp;utm_campaign=mdb_003886" target="_blank">Dynamics GP 2010 Cookbook</a> and a newly published <a title="Microsoft Dynamics GP 2010 Reporting" href="http://link.packtpub.com/4LoGn0" target="_blank">Dynamics GP 2010 Reporting</a> book.</p>
<p style="text-align:justify;">Now, I personally believe that every month is Dynamics month <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> , but if you&#8217;ve been waiting to get your Dynamics books, now is the time. Check out the discounts on the <a title="Packt Dynamics month" href="http://www.packtpub.com/article/exclusive-offer-microsoft-dynamics-books" target="_blank">Packt website</a>.</p>
<p style="text-align:justify;">I also just received a copy of the <a title="Microsoft Dynamics GP 2010 Reporting" href="http://link.packtpub.com/4LoGn0" target="_blank">Dynamics GP 2010 Reporting</a> book to review. If you&#8217;ve read my blog before you know this is a topic close to my heart, I hope to have a review of the book posted soon.</p>
<br />Filed under: <a href='http://victoriayudin.com/category/dynamics-gp/'>Dynamics GP</a> Tagged: <a href='http://victoriayudin.com/tag/book/'>book</a>, <a href='http://victoriayudin.com/tag/dynamics-gp/'>Dynamics GP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/victoriayudin.wordpress.com/3622/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/victoriayudin.wordpress.com/3622/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/victoriayudin.wordpress.com/3622/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=victoriayudin.com&amp;blog=4884873&amp;post=3622&amp;subd=victoriayudin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://victoriayudin.com/2011/05/16/dynamics-month-at-packt-publishing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://victoriayudin.files.wordpress.com/2011/05/0325en_mockupcover.png?w=78" />
		<media:content url="http://victoriayudin.files.wordpress.com/2011/05/0325en_mockupcover.png?w=78" medium="image">
			<media:title type="html">Dynamics GP 2010 Implementation</media:title>
		</media:content>

		<media:content url="http://1.gravatar.com/avatar/17a8ce996aec3d35caf943487b6956a5?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">Victoria</media:title>
		</media:content>
	</item>
	</channel>
</rss>
