<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Accounts_Payable_Report_Queries</id>
	<title>Accounts Payable Report Queries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Accounts_Payable_Report_Queries"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Accounts_Payable_Report_Queries&amp;action=history"/>
	<updated>2026-05-15T15:15:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Accounts_Payable_Report_Queries&amp;diff=38&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Accounts_Payable_Report_Queries&amp;diff=38&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:47Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-37:rev-38 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Accounts_Payable_Report_Queries&amp;diff=37&amp;oldid=prev</id>
		<title>Chanson at 20:41, 28 January 2019</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Accounts_Payable_Report_Queries&amp;diff=37&amp;oldid=prev"/>
		<updated>2019-01-28T20:41:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
:[[AP Year End - Distribution Breakdown for Open Invoices]]&lt;br /&gt;
&lt;br /&gt;
==AP Year End - Top 10 Vendors==&lt;br /&gt;
This query returns a breakdown of all distributions for open invoices as of the end of the year.  It is useful for determining acrual entries required by companies filing taxes on a cash basis.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select i.vend_id &amp;quot;Vendor&amp;quot; ,v.name &amp;quot;Name&amp;quot;,i.invoice_date &amp;quot;Inv Dt&amp;quot;,i.invoice_no &amp;quot;Invoice NO&amp;quot;,i.gross_amount &amp;quot;Inv Amt&amp;quot;,i.invoice_bal &amp;quot;Inv Bal&amp;quot;,dt.Description &amp;quot;Description&amp;quot;,exp_gl &amp;quot;Dist GL&amp;quot; , a.description &amp;quot;Act Name&amp;quot;,   (I.INVOICE_BAL/I.GROSS_AMOUNT)*DIST_AMT &amp;quot;Open Dist&amp;quot;&lt;br /&gt;
from appinv_aging(:YE,:YE,0) i&lt;br /&gt;
inner join aptinvdt dt on (dt.session_no=I.AP_session_no) and (dt.trans_no=I.AP_trans_no)&lt;br /&gt;
inner join aptvend v on v.vend_id=i.vend_id&lt;br /&gt;
inner join gltacct a on a.gl_account=dt.exp_gl&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Formatting:&lt;br /&gt;
:Vendor,Name:  Break and Group 1&lt;br /&gt;
:Invoice Date, Invoice No, Inv Amt, Inv Amt: Break and Group 2&lt;br /&gt;
Formatting the date as mm/dd/yy and setting field widths down from default improve printing.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==AP 1099 List==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Select CO.COMPANY_NAME,VEND_ID,NAME,NAME_2,ADDRESS_1,ADDRESS_2,CITY,STATE,ZIP,PAYMENT_TERMS,TEN99_CLASS,TEN99_FLAG,PHONE_NO,FAX_NO,START_DATE,TAX_CODE,TEN99_ADDRESS_1,TEN99_ADDRESS_2,TEN99_CITY,TEN99_STATE,TEN99_ZIP,TAX_ID,TAX_ID_TYPE,ACTIVE_FLAG,LAST_PURCHASE_DATE,LAST_PAY_DATE,LAST_CHECK_NO,YTD_PURCHASES,YTD_PAYMENTS,LAST_YEAR_PURCHASES,LAST_YEAR_PAYMENTS,&lt;br /&gt;
case tax_id_type WHEN 'I' THEN 'Individual/Sole proprietor' &lt;br /&gt;
WHEN 'C' THEN 'C Corporation' &lt;br /&gt;
WHEN 'S' THEN 'S Corporation' &lt;br /&gt;
WHEN 'P' THEN 'Partnership' &lt;br /&gt;
WHEN '3' THEN 'Trust/Estate' &lt;br /&gt;
WHEN '4' THEN 'LLC C Corporation' &lt;br /&gt;
WHEN 'T' THEN 'LLC S Corporation' &lt;br /&gt;
WHEN 'D' THEN 'LLC Partnership' &lt;br /&gt;
WHEN 'L' THEN 'Corporation ' &lt;br /&gt;
WHEN 'X' THEN 'LLC ' &lt;br /&gt;
WHEN 'R' THEN 'LLC Disregarded Entity' &lt;br /&gt;
WHEN 'O' THEN 'Other' &lt;br /&gt;
WHEN '1' THEN 'Unspecified Business' &lt;br /&gt;
WHEN '2' THEN 'Unspecified Individual' end &amp;quot;TaxIDDesc&amp;quot;&lt;br /&gt;
&lt;br /&gt;
   FROM aptvenD V&lt;br /&gt;
LEFT OUTER JOIN CCTCOMPANY CO ON 1=1&lt;br /&gt;
where TEN99_CLASS IS NOT NULL and last_year_payments&amp;gt;= :&amp;quot;Min Last Yr Pmnt (eg 600)&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Chanson</name></author>
	</entry>
</feed>