<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Add Email column to Customer Transactions page]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10620</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10620&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Add Email column to Customer Transactions page.]]></description>
		<lastBuildDate>Fri, 27 Dec 2024 16:00:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Add Email column to Customer Transactions page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43466#p43466</link>
			<description><![CDATA[<p>Your approach to modifying the customer_inquiry.php file to include an email_link function seems solid.<br />One thing to consider is ensuring that the email status is accurately reflected. You might want to integrate a check to see if the email was successfully sent or if there were any errors. This could be done by linking to the email logs or using a flag in the database.</p>]]></description>
			<author><![CDATA[null@example.com (Stotle)]]></author>
			<pubDate>Fri, 27 Dec 2024 16:00:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43466#p43466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add Email column to Customer Transactions page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43460#p43460</link>
			<description><![CDATA[<p>@joe: Should this be included?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 27 Dec 2024 01:56:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43460#p43460</guid>
		</item>
		<item>
			<title><![CDATA[Add Email column to Customer Transactions page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=43459#p43459</link>
			<description><![CDATA[<p>Not sure if this was ever discussed in the past - I didn&#039;t see a topic after a quick search.<br />Also, I don&#039;t know the proper protocol for doing posting this.</p><p>Here&#039;s a quick change to add an Email column to the Customer Transactions - something that should be standard in the release, in my humble opinion.</p><p>Edit sales/inquiry/customer_inquiry.php</p><p>Add function email_lnk right after prt_link:</p><div class="codebox"><pre><code>function prt_link($row)
{
        if ($row[&#039;type&#039;] == ST_CUSTPAYMENT || $row[&#039;type&#039;] == ST_BANKDEPOSIT)
                return print_document_link($row[&#039;trans_no&#039;].&quot;-&quot;.$row[&#039;type&#039;], _(&quot;Print Receipt&quot;), true, ST_CUSTPAYMENT, ICON_PRINT);
        elseif ($row[&#039;type&#039;] == ST_BANKPAYMENT) // bank payment printout not defined yet.
                return &#039;&#039;;
        else
                return print_document_link($row[&#039;trans_no&#039;].&quot;-&quot;.$row[&#039;type&#039;], _(&quot;Print&quot;), true, $row[&#039;type&#039;], ICON_PRINT);
}

// New: Function for email column
function email_link($row)
{
        if (get_voided_entry($row[&#039;type&#039;], $row[&quot;trans_no&quot;]))
                return _(&quot;Void&quot;);

        if ($row[&#039;type&#039;] == ST_CUSTPAYMENT || $row[&#039;type&#039;] == ST_BANKDEPOSIT)
                return print_document_link($row[&#039;trans_no&#039;].&quot;-&quot;.$row[&#039;type&#039;], _(&quot;Email&quot;), true, ST_CUSTPAYMENT, ICON_EMAIL, &quot;printlink&quot;, &quot;&quot;, 1);
        elseif ($row[&#039;type&#039;] == ST_BANKPAYMENT) // bank payment printout not defined yet.
                return &#039;&#039;;
        else
                return print_document_link($row[&#039;trans_no&#039;].&quot;-&quot;.$row[&#039;type&#039;], _(&quot;Email&quot;), true, $row[&#039;type&#039;], ICON_EMAIL, &quot;printlink&quot;, &quot;&quot;, 1);
}
// End</code></pre></div><p>Add and center row to the table:</p><div class="codebox"><pre><code>$cols = array(
        _(&quot;Type&quot;) =&gt; array(&#039;fun&#039;=&gt;&#039;systype_name&#039;, &#039;ord&#039;=&gt;&#039;&#039;),
        _(&quot;#&quot;) =&gt; array(&#039;fun&#039;=&gt;&#039;trans_view&#039;, &#039;ord&#039;=&gt;&#039;&#039;, &#039;align&#039;=&gt;&#039;right&#039;),
        _(&quot;Order&quot;) =&gt; array(&#039;fun&#039;=&gt;&#039;order_view&#039;, &#039;align&#039;=&gt;&#039;right&#039;),
        _(&quot;Reference&quot;),
        _(&quot;Date&quot;) =&gt; array(&#039;name&#039;=&gt;&#039;tran_date&#039;, &#039;type&#039;=&gt;&#039;date&#039;, &#039;ord&#039;=&gt;&#039;desc&#039;),
        _(&quot;Due Date&quot;) =&gt; array(&#039;type&#039;=&gt;&#039;date&#039;, &#039;fun&#039;=&gt;&#039;due_date&#039;),
        _(&quot;Customer&quot;) =&gt; array(&#039;ord&#039;=&gt;&#039;&#039;),
        _(&quot;Branch&quot;) =&gt; array(&#039;ord&#039;=&gt;&#039;&#039;),
        _(&quot;Currency&quot;) =&gt; array(&#039;align&#039;=&gt;&#039;center&#039;),
        _(&quot;Amount&quot;) =&gt; array(&#039;align&#039;=&gt;&#039;right&#039;, &#039;fun&#039;=&gt;&#039;fmt_amount&#039;),
        _(&quot;Balance&quot;) =&gt; array(&#039;align&#039;=&gt;&#039;right&#039;, &#039;type&#039;=&gt;&#039;amount&#039;),
                array(&#039;align&#039;=&gt;&#039;center&#039;, &#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;gl_view&#039;),
                array(&#039;align&#039;=&gt;&#039;center&#039;, &#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;edit_link&#039;),
                array(&#039;align&#039;=&gt;&#039;center&#039;, &#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;credit_link&#039;),
                array(&#039;align&#039;=&gt;&#039;center&#039;, &#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;prt_link&#039;),
// Change - add email button and center all the icons
                array(&#039;align&#039;=&gt;&#039;center&#039;, &#039;insert&#039;=&gt;true, &#039;fun&#039;=&gt;&#039;email_link&#039;)

        );</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (dlajeunesse)]]></author>
			<pubDate>Thu, 26 Dec 2024 18:42:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=43459#p43459</guid>
		</item>
	</channel>
</rss>
