<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Purchase Order Report 209 extended with Non Field DB Data]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5458</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5458&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Purchase Order Report 209 extended with Non Field DB Data.]]></description>
		<lastBuildDate>Thu, 08 Jan 2015 16:24:23 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Purchase Order Report 209 extended with Non Field DB Data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22094#p22094</link>
			<description><![CDATA[<p>If a supplier provides free Pre Paid Freight if the order exceeds a certain value (eg., PPFrt#2000) and accepts orders above a certain Minimum Order value (eg., MO#100) and we need these values on the Purchase Order, the <a href="https://github.com/apmuthu/frontaccounting/commit/320521f45801c3fe3b4e6ec44e7d64aecf21b172">commit</a> in my GitHub repo does it.</p><p>The said formatted values should already exist in the <strong>#_suppliers.notes</strong> field.</p><p>During the preparation of this mod, starting with a fresh FA install with customer, supplier and items imported, the sql statements necessary to reset the FA database after testing POs were:<br /></p><div class="codebox"><pre><code>TRUNCATE TABLE `1_audit_trail`;
TRUNCATE TABLE `1_comments`;
TRUNCATE TABLE `1_gl_trans`;
TRUNCATE TABLE `1_grn_batch`;
TRUNCATE TABLE `1_grn_items`;
TRUNCATE TABLE `1_purch_data`;
TRUNCATE TABLE `1_purch_order_details`;
TRUNCATE TABLE `1_purch_orders`;
TRUNCATE TABLE `1_refs`;

-- SELECT * FROM `1_stock_master` WHERE material_cost &lt;&gt; 0&#039;
-- UPDATE `1_stock_master` SET `material_cost`=&#039;0&#039; WHERE `material_cost`&lt;&gt;&#039;0&#039;
UPDATE `1_stock_master` SET `material_cost`=&#039;0&#039; WHERE `stock_id`=&#039;ITEM001&#039;;

TRUNCATE TABLE `1_stock_moves`;
TRUNCATE TABLE `1_supp_invoice_items`;
TRUNCATE TABLE `1_supp_trans`;

-- SELECT * FROM `1_sys_types` WHERE next_reference &lt;&gt; 1;
UPDATE 1_sys_types SET next_reference=1 WHERE next_reference &lt;&gt; 1;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 08 Jan 2015 16:24:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22094#p22094</guid>
		</item>
	</channel>
</rss>
