<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Purchase Order Report 209 extended with Non Field DB Data]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5458&amp;type=atom" />
	<updated>2015-01-08T16:24:23Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5458</id>
		<entry>
			<title type="html"><![CDATA[Purchase Order Report 209 extended with Non Field DB Data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22094#p22094" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-08T16:24:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22094#p22094</id>
		</entry>
</feed>
