<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add "Add attachment link" for Quotation]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8690&amp;type=atom" />
	<updated>2021-07-15T18:38:25Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8690</id>
		<entry>
			<title type="html"><![CDATA[Re: Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39721#p39721" />
			<content type="html"><![CDATA[<p>is possible to pdf attachment quote/invoice/purchase order in email to respective customer or supplier?</p>]]></content>
			<author>
				<name><![CDATA[geesyscare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42046</uri>
			</author>
			<updated>2021-07-15T18:38:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39721#p39721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37108#p37108" />
			<content type="html"><![CDATA[<p>@joe: Nice addition - want to absorb in the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-03-06T15:10:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37108#p37108</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37096#p37096" />
			<content type="html"><![CDATA[<p>I think what you&#039;re looking for is this: https://ibb.co/NYBnHkw</p><p>in sales_order_view.php add a new function:</p><div class="codebox"><pre><code>function attach_link($row) 
{
    global $trans_type;
        return pager_link( _(&quot;Attach Documents&quot;),
            &quot;/admin/attachments.php?filterType=&quot;.$trans_type.&quot;&amp;trans_no=&quot; .$row[&#039;order_no&#039;], ICON_ATTACH);
}</code></pre></div><p>then under-&gt; elseif ($trans_type == ST_SALESQUOTE) {<br /> add -&gt;&nbsp; array(&#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;attach_link&#039;)</p><br /><p>*you&#039;ll have to create/define ICON_ATTACH in includes/types.php</p>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2020-03-05T02:59:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37096#p37096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37009#p37009" />
			<content type="html"><![CDATA[<p>1. For delivery, using \sales\customer_delivery.php<br />2. We found that using hyperlink link<br />&nbsp; &nbsp; 1. $trans_type = ST_CUSTDELIVERY;<br />&nbsp; &nbsp; 2. hyperlink_params(&quot;$path_to_root/admin/attachments.php&quot;, _(&quot;Add an Attachment&quot;), &quot;filterType=$trans_type&amp;trans_no=$dispatch_no&quot;);<br />3. We also copy this link command to AddedID and UpdateID menu session<br />4. Also make reight document type and reference<br />Then after create and update delivery note, will show the link for attacment</p>]]></content>
			<author>
				<name><![CDATA[chingfai]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45299</uri>
			</author>
			<updated>2020-02-15T17:52:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37009#p37009</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37008#p37008" />
			<content type="html"><![CDATA[<p>1. We found all sales document create, update, view are using <br />&nbsp; &nbsp; &nbsp; &nbsp; a. \sales\sales_order_entry.php<br />&nbsp; &nbsp; &nbsp; &nbsp; b. Each type have a menu session<br />&nbsp; &nbsp; 2. Found the applied menu link at invoice session<br />&nbsp; &nbsp; 3. submenu_option(_(&quot;Add an Attachment&quot;), &quot;/admin/attachments.php?filterType=&quot;.ST_SALESINVOICE.&quot;&amp;trans_no=$invoice&quot;);<br />&nbsp; &nbsp; 4. That is the menu link with type of document and reference no.<br />&nbsp; &nbsp; 5. We just copy this link to right menu session<br />&nbsp; &nbsp; 6. And change the document type and reference variable <br />&nbsp; &nbsp; 7. ST_SALESORDER = sales order, ST_SALESQUOTE = Sales quotation, ST_CUSTDELIVERY = Sales delivery</p><p>Then all sales have the link to add attachment after create or update, like direct invoice</p>]]></content>
			<author>
				<name><![CDATA[chingfai]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45299</uri>
			</author>
			<updated>2020-02-15T17:49:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37008#p37008</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add "Add attachment link" for Quotation]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37007#p37007" />
			<content type="html"><![CDATA[<p>Front accounting 2.4.8 already have data table to store attachment for all type of document, also include sales quotation, sales order, sales delivery, sales invoice.<br />But only Invoice was applied the add attachment link after create or update the document.<br />We hope&nbsp; to make the link &quot;add attachment&quot; for all sales document</p>]]></content>
			<author>
				<name><![CDATA[chingfai]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45299</uri>
			</author>
			<updated>2020-02-15T17:45:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37007#p37007</id>
		</entry>
</feed>
