<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Attachment for Customers and Suppliers]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8304</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8304&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Attachment for Customers and Suppliers.]]></description>
		<lastBuildDate>Sat, 12 Oct 2019 13:41:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36249#p36249</link>
			<description><![CDATA[<p>Updated attachment in <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229">Post #17</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 12 Oct 2019 13:41:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36249#p36249</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36242#p36242</link>
			<description><![CDATA[<p>Thanks....</p><p>It&#039;s working as expected now.</p>]]></description>
			<author><![CDATA[null@example.com (Rmendez)]]></author>
			<pubDate>Sat, 12 Oct 2019 09:43:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36242#p36242</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36240#p36240</link>
			<description><![CDATA[<p>Thanks @itronics @apmuthu</p><p>Things are working as expected...</p><p>For filetype length I temporarily (awaiting 2.5) increased it to 80 from 60 and it seems OK.</p><div class="codebox"><pre><code>ALTER TABLE `0_attachments` CHANGE `filetype` `filetype` VARCHAR(80) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Fri, 11 Oct 2019 09:27:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36240#p36240</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36239#p36239</link>
			<description><![CDATA[<p>I have pushed additional&nbsp; <a href="https://sourceforge.net/p/frontaccounting/git/ci/039e2f9b14460f2c1fd0c3cbe2b39983b1b7e93b/">fixes</a> to repo, hopefully all will work now as expected. Regarding change in <strong>attachments.filetype</strong> length it will be addressed in 2.5 upgrade scripts.<br />Thank you.<br />J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 11 Oct 2019 08:30:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36239#p36239</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36237#p36237</link>
			<description><![CDATA[<p>@ApMuthu</p><p>Thanks for the fix. But in the three mentioned files &#039;false&#039;/&#039;true&#039; string appears in completely different context i.e. as text representation of boolean value, so there s no need for change here.</p><p>@rafat<br />I will fix those issues too.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 11 Oct 2019 07:07:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36237#p36237</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36235#p36235</link>
			<description><![CDATA[<p>@apmuthu</p><p>Thanks ,.. its working fine now.</p><p>Two minor things still needs addressing;</p><p>1) Mime (filetype) length for MS Office docs needs increasing.<br />2) In Setup-&gt;Attach Documents-&gt;Supplier/Customer if one does not choose a customer/supplier the system continues with no warning/error. Maybe a message needs to popup to enter a customer / supplier first.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Fri, 11 Oct 2019 05:20:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36235#p36235</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36234#p36234</link>
			<description><![CDATA[<p>@Rmendez: Thanks for testing it.</p><p>The use of the string <strong>&#039;false&#039;</strong> instead of the boolean <strong>false</strong> and the out of order include have contributed to the problem and has been rectified in the attachment which includes the diff file and the screenshot of successful addition of new supplier.</p><p>A few more files (need to properly check on what has worked till now anyway) that have this kind of construct (and <strong>&#039;true&#039;</strong> as well) are:<br /></p><div class="codebox"><pre><code>reporting/includes/fpdi/pdf_parser.php
reporting/includes/tcpdf.php
includes/JsHttpRequest.php</code></pre></div><br /><p>@itronics / @joe: can commit it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 11 Oct 2019 04:32:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36234#p36234</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36233#p36233</link>
			<description><![CDATA[<p>@apmuthu</p><p>Sorry....I refer to supplier.....doesn&#039;t save new supplier!!!!</p><p>Customer is ok...as Apmuthu say.</p>]]></description>
			<author><![CDATA[null@example.com (Rmendez)]]></author>
			<pubDate>Thu, 10 Oct 2019 15:30:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36233#p36233</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36232#p36232</link>
			<description><![CDATA[<p>No problem adding customer.</p><p>See screenshots attached.</p><p>Provide more information regarding your issue with debug and sql_trails along with platform versions.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 10 Oct 2019 15:04:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36232#p36232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36231#p36231</link>
			<description><![CDATA[<p>@itronics&nbsp; and @apmuthu</p><p>Thanks for the excellent job to make possible this funcionality.&nbsp; </p><p>Trying to add a new customer it&#039;s not possible with the files downloaded.&nbsp; &nbsp;Please fix it........</p>]]></description>
			<author><![CDATA[null@example.com (Rmendez)]]></author>
			<pubDate>Thu, 10 Oct 2019 13:44:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36231#p36231</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36230#p36230</link>
			<description><![CDATA[<p>Further testing reveals that popup windows need to be enabled for the FA site for the Setup =&gt; Attachments View button functionality to work. The Sales =&gt; Add?Manage Customers =&gt; Attachments View Attachment button works okay even without such settings.</p><p>This is so because, the former uses a &quot;button&quot; tag whilst the latter uses the &quot;a href&quot; tag.</p><p># Setup =&gt; Attachments (needs popup exception for FA domain)<br /># Sales =&gt; Add/Manage Customer =&gt; Attachments (no need for pop settings)</p><p>The HTML code inspection reveals the <span class="bbu">Concerned Lines:</span><br /># Lines 199 and 227 in admin/attachments.php<br /></p><div class="codebox"><pre><code>&lt;td&gt;&lt;button type=&quot;submit&quot; class=&quot;editbutton&quot; name=&quot;view3&quot; value=&quot;1&quot; title=&quot;View&quot;&gt;
&lt;img src=&quot;../themes/default/images/view.gif&quot; 
     style=&quot;vertical-align:middle;width:12px;height:12px;border:0;&quot;&gt;
&lt;/button&gt;
&lt;/td&gt;</code></pre></div><p># Line 95 in includes/ui/attachments.inc<br /></p><div class="codebox"><pre><code>&lt;td style=&quot;text-align: center;&quot;&gt;
&lt;a target=&quot;_blank&quot; class=&quot;viewlink&quot; 
   href=&quot;../../admin/attachments.php?vw=3&quot; 
   onclick=&quot;javascript:openWindow(this.href,this.target); return false;&quot; 
   accesskey=&quot;V&quot;&gt;
&lt;img src=&quot;../../themes/default/images/view.gif&quot; 
     style=&quot;vertical-align:middle;width:12px;height:12px;border:0;&quot;&gt;
&lt;/a&gt;
&lt;/td&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 10 Oct 2019 02:34:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36230#p36230</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229</link>
			<description><![CDATA[<p>This feature has finally been incorporated into the FA Core by @itronics. Thanks a lot for the spit and polish and fully working state.</p><p><span class="bbu">Commits:</span><br />https://github.com/FrontAccountingERP/FA/commit/3d95c6844745f183ebab970251cd254dd6cbdcec<br />https://github.com/FrontAccountingERP/FA/commit/15576cedd9e46caac2884c2815875e7ec9fd4802</p><p>Attached are the changed files for FA 2.4.7+ as on date.</p><p>Those who have used the old code will need to take note of:<br /></p><div class="quotebox"><blockquote><p>To preserve some FA types numbering scheme consistency, the <strong>type_no</strong> used are 41 and 42 as customer/supplier attachment type (instead of 5 and 6&nbsp; in original code).</p><p>Seems the original code was not ready for production, expect nobody will have problem with renumbering existing records in attachments table&#039;s field <strong>type_no</strong> with something like:</p><div class="codebox"><pre><code>UPDATE 0_attachments SET type_no=41 WHERE type_no=5;
UPDATE 0_attachments SET type_no=42 WHERE type_no=6;</code></pre></div><p>Use Table prefix as appropriate instead of the <strong>0_</strong> above.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 10 Oct 2019 01:33:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36224#p36224</link>
			<description><![CDATA[<p>@itronics is working on it. We finally need to get rid of the <strong>includes/ui/attachment.inc</strong> file and get it working consistently across user interfaces.</p><p><span class="bbu">Known issues:</span></p><p>1. Attaching MS Office documents like <strong>docx, xlsx, pptx</strong>, etc will result in error as the mime type exceeds 60 characters - need to increase the size of the field <strong>attachments.filetype</strong> to say 100 from the current 60 characters.</p><p>2. Edit of the attachment record in <strong>Sales =&gt; Add and Manage Customers =&gt; Attachments tab</strong> does not work as yet.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 08 Oct 2019 13:30:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36224#p36224</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36223#p36223</link>
			<description><![CDATA[<p>@apmuthu</p><p>Theres are some errore when editing attachments. Say this.....</p><p>Undefined index: type_no<br />Undefined index: trans_no<br />Undefined index: title<br />Undefined index: filename<br />Undefined index: date</p><p>In this files...................../includes/ui/simple_crud_class.inc .......En la línea 258</p><p>and this error .......</p><p>Undefined index: date........in this file........../includes/ui/attachment.inc ..........En la línea 118<br />Undefined index: title.........in this file........./includes/ui/attachment.inc ...........En la línea 119</p>]]></description>
			<author><![CDATA[null@example.com (Rmendez)]]></author>
			<pubDate>Tue, 08 Oct 2019 09:18:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36223#p36223</guid>
		</item>
		<item>
			<title><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36222#p36222</link>
			<description><![CDATA[<p>Yes.. Its working now.</p><p>There is an error somehow in 247 when attaching an MS Office files like .docx. It does not attach and error log has the following:</p><p>&lt;b&gt;DATABASE ERROR :&lt;/b&gt; Attachment could not be inserted&lt;br&gt;error code : 1406&lt;br&gt;error message : Data too long for column &#039;filetype&#039; at row 1.</p><p>Its working OK with 246.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Tue, 08 Oct 2019 08:17:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36222#p36222</guid>
		</item>
	</channel>
</rss>
