<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Supplier Description is overwritten]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10267</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10267&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Supplier Description is overwritten.]]></description>
		<lastBuildDate>Fri, 28 Apr 2023 08:38:53 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42332#p42332</link>
			<description><![CDATA[<p>Once the description is set for an item in a PO, LIKE the price it should remain as it was set when cut, just if it is deliberately edited.</p>]]></description>
			<author><![CDATA[null@example.com (Kaya89)]]></author>
			<pubDate>Fri, 28 Apr 2023 08:38:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42332#p42332</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42323#p42323</link>
			<description><![CDATA[<p>These items has now been fixed and committed to stable repo.</p><p>See forum topic <a href="https://frontaccounting.com/punbb/viewtopic.php?id=10276">https://frontaccounting.com/punbb/viewt … p?id=10276</a></p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 27 Apr 2023 16:02:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42323#p42323</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42321#p42321</link>
			<description><![CDATA[<p>Related topic with some additional info that may be helpful:-</p><p><a href="https://frontaccounting.com/punbb/viewtopic.php?id=8318">https://frontaccounting.com/punbb/viewtopic.php?id=8318</a></p><p>Joe&#039;s post #13 is particularly pertinent.</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Wed, 26 Apr 2023 13:39:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42321#p42321</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42320#p42320</link>
			<description><![CDATA[<p>The description problem still exists.&nbsp; Once a PO is cut, the ENTIRE PO should remain as it was when it was cut unless it is later intentionally edited.&nbsp; If the price is changed later for the item for that supplier, we do not go back and change the price in the PO that was already cut.&nbsp; That being said, then why go back and change the description in an existing PO?&nbsp; Once the description is set for an item in a PO, LIKE the price it should remain as it was set when cut UNLESS it is deliberately edited.</p><p>As far as the pricing goes, I would recommend removing the rounding.</p>]]></description>
			<author><![CDATA[null@example.com (bradlanier)]]></author>
			<pubDate>Wed, 26 Apr 2023 04:24:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42320#p42320</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42307#p42307</link>
			<description><![CDATA[<p>Hello again,</p><p>@ckrosco<br />I understand your problem with the price decimals. We could simply remove the rounding and only calculate the $price = $price * $data[&#039;conversion_factor&#039;]. This lets you decide how many decimals the $price should be in. Or as you showed, 6 decimals. What do you think?</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 19 Apr 2023 14:55:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42307#p42307</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42306#p42306</link>
			<description><![CDATA[<p>@ckrosco<br />The supplier_code should only be updateded if there is no data for supplier price record. So this has been changed and committed.<br />Please replace the file on your server.</p><p>Regarding the price truncation, I will have a closer look into this.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 19 Apr 2023 05:21:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42306#p42306</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42304#p42304</link>
			<description><![CDATA[<p>As I mentioned above, I am not a programmer. But these changes are solving my problems:</p><p>purchasing/includes/purchasing_db.inc </p><p>line 113<br /></p><div class="codebox"><pre><code>if ($description = &quot;&quot;)</code></pre></div><p>line 109<br /></p><div class="codebox"><pre><code>$price = round($price * $data[&#039;conversion_factor&#039;], 6);</code></pre></div><p>Trouble is I have to remember to make these changes every time I upgrade.</p><p>FrontAccounting is great! These little hitches cause me grief, but at least I can mess with the code.</p><p>But if my messing is going to break something, please let me know!</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 18:48:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42304#p42304</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42303#p42303</link>
			<description><![CDATA[<div class="quotebox"><cite>ckrosco wrote:</cite><blockquote><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>@ckrosco: If you still want t, then your code should be checked:</p></blockquote></div><br /><p>Thanks - that&#039;s good to know. (non-programmer here)</p></blockquote></div><p>So I just tried it with == but then the suppliers description becomes blank. If I just use one = the suppliers description remains intact.</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 18:21:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42303#p42303</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42302#p42302</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>@ckrosco: If you still want t, then your code should be checked:</p><div class="codebox"><pre><code>if ($description = &quot;&quot;)</code></pre></div><p>is an assignment but it should be</p><div class="codebox"><pre><code>if ($description == &quot;&quot;)</code></pre></div><p>which is a comparison.</p></blockquote></div><p>Thanks - that&#039;s good to know. (non-programmer here)</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 17:56:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42302#p42302</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42301#p42301</link>
			<description><![CDATA[<p>And another really irritating change that happens during this order process is that the purchase price is truncated to the default number of decimal points.</p><p>I put the price in at 2.569879 but after processing the order it becomes 2.57 - which is wrong. </p><p>These names and prices were put in randomly. In my actual business I have several products that I buy in lots of 42. The per item price is e.g. 13.6904761905 X 42 = 575</p><p>When the price is truncated I get a decimal amount, and the supplier&#039;s currency does not use decimals.</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 17:48:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42301#p42301</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42300#p42300</link>
			<description><![CDATA[<p>I don&#039;t see a way to add two photos, so here is the second screen shot after processing the order.</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 17:38:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42300#p42300</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42299#p42299</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>The only person(s) that need to know the suppliers code is the suppler himself. Right?</p></blockquote></div><p>Right. But the supplier code is changed to $description everytime the supply order is processed (purchase order entry -&gt; receive purchase order items -&gt; enter supplier invoice)</p><p>Please see the attached screen shots. I created a product called &quot;General Settings name&quot;&nbsp; with the suppliers description = &quot;supplier&#039;s code&quot;</p><p>After processing the order, the suppliers description becomes &quot;General Settings name&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Tue, 18 Apr 2023 17:36:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42299#p42299</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42297#p42297</link>
			<description><![CDATA[<p>@ckrosco: If you still want t, then your code should be checked:</p><div class="codebox"><pre><code>if ($description = &quot;&quot;)</code></pre></div><p>is an assignment but it should be</p><div class="codebox"><pre><code>if ($description == &quot;&quot;)</code></pre></div><p>which is a comparison.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 18 Apr 2023 17:24:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42297#p42297</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42296#p42296</link>
			<description><![CDATA[<p>Hello @ckrosco</p><p>The only place the supplier&#039;s code or Description is shown is on the written purchase order. On all other places we are using our own name due to internal confusion otherwise.</p><p>So this is not a bug. The only person(s) that need to know the suppliers code is the suppler himself. Right?</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 18 Apr 2023 06:46:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42296#p42296</guid>
		</item>
		<item>
			<title><![CDATA[Supplier Description is overwritten]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42295#p42295</link>
			<description><![CDATA[<p>Items and Inventory -&gt; Items -&gt; Purchase Pricing</p><p>On every &quot;Purchase Order Delivery&quot; action the &quot;Supplier&#039;s Code or Description&quot; is overwritten with the product name in the &quot;General Settings&quot; tab.</p><p>Here is the fix:</p><p>purchasing/includes/purchasing_db.inc</p><p>Line 113<br /></p><div class="codebox"><pre><code>    if ($description != &quot;&quot;)
        $sql .= &quot;,supplier_description=&quot;.db_escape($description);
    $sql .= &quot; WHERE stock_id=&quot;.db_escape($stock_id).&quot; AND supplier_id=&quot;.db_escape($supplier_id);</code></pre></div><p>should be:</p><div class="codebox"><pre><code>    if ($description = &quot;&quot;)
        $sql .= &quot;,supplier_description=&quot;.db_escape($description);
    $sql .= &quot; WHERE stock_id=&quot;.db_escape($stock_id).&quot; AND supplier_id=&quot;.db_escape($supplier_id);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ckrosco)]]></author>
			<pubDate>Mon, 17 Apr 2023 20:34:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42295#p42295</guid>
		</item>
	</channel>
</rss>
