<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Attachment for Customers and Suppliers]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8304&amp;type=atom" />
	<updated>2019-10-12T13:41:32Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8304</id>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36249#p36249" />
			<content type="html"><![CDATA[<p>Updated attachment in <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229">Post #17</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-12T13:41:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36249#p36249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36242#p36242" />
			<content type="html"><![CDATA[<p>Thanks....</p><p>It&#039;s working as expected now.</p>]]></content>
			<author>
				<name><![CDATA[Rmendez]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40570</uri>
			</author>
			<updated>2019-10-12T09:43:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36242#p36242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36240#p36240" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2019-10-11T09:27:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36240#p36240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36239#p36239" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2019-10-11T08:30:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36239#p36239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36237#p36237" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2019-10-11T07:07:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36237#p36237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36235#p36235" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2019-10-11T05:20:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36235#p36235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36234#p36234" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-11T04:32:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36234#p36234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36233#p36233" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Rmendez]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40570</uri>
			</author>
			<updated>2019-10-10T15:30:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36233#p36233</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36232#p36232" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-10T15:04:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36232#p36232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36231#p36231" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Rmendez]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40570</uri>
			</author>
			<updated>2019-10-10T13:44:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36231#p36231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36230#p36230" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-10T02:34:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36230#p36230</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-10T01:33:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36229#p36229</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36224#p36224" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-08T13:30:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36224#p36224</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36223#p36223" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Rmendez]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40570</uri>
			</author>
			<updated>2019-10-08T09:18:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36223#p36223</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Attachment for Customers and Suppliers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36222#p36222" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2019-10-08T08:17:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36222#p36222</id>
		</entry>
</feed>
