<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Email Receipt to customer]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4299</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4299&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Email Receipt to customer.]]></description>
		<lastBuildDate>Wed, 01 May 2019 16:44:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34850#p34850</link>
			<description><![CDATA[<p>@Joe Thanks, understood, will open forum topic first in future.<br />My question was more along the lines of: &quot;is sf fork + merge request a correct way to send code for consideration or you prefer patch file posted in forum?&quot;</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Wed, 01 May 2019 16:44:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34850#p34850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34849#p34849</link>
			<description><![CDATA[<p>I guess this forum is the best place to discuss improvements, but it is better if there are more users interesting in the improvements before implementing.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 01 May 2019 16:17:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34849#p34849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34848#p34848</link>
			<description><![CDATA[<p>@Joe I have submitted a merge request for exactly that functionality back in March, since I was using it already for a few years, but it was not present in 2.4.6 master<br />Git Merge Request #1: Added option to send Customer Receipt by e-mail (open)<br />https://sourceforge.net/p/frontaccounting/git/merge-requests/1/</p><p>Is there a better (preferred?) method of contributing to FrontAccounting development?<br />Pardon, if my question is obvious - new to Git and distributed open source development.</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Wed, 01 May 2019 16:09:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34848#p34848</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34847#p34847</link>
			<description><![CDATA[<p>@joe, thank you; it improves the workflow for a paperless system.</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Wed, 01 May 2019 14:47:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34847#p34847</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34846#p34846</link>
			<description><![CDATA[<p>Thanks poncho tested and it works.</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Wed, 01 May 2019 10:03:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34846#p34846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34845#p34845</link>
			<description><![CDATA[<p>Hello,</p><p>The reason for that this has no email menu is that you could write something at the bottom of the Receipt.</p><p>However, it should be up to you if you want to do this or not. So this has been fixed and committed to stable repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 01 May 2019 08:09:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34845#p34845</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34844#p34844</link>
			<description><![CDATA[<p>@apmuthu,<br />@joe,</p><p>This is an old thread, but it hasn&#039;t been answered: All the other nine document print reports have an email to option; but Print Customer Receipt rep112.php does not? Is there a reason for this? Or is it an omission?</p><p>The following code works but needs to be checked:-</p><div class="codebox"><pre><code>---\reporting\reports_mainOLD.php
+++ \reporting\reports_main.php
@@ -156,6 +156,7 @@
     array(    _(&#039;From&#039;) =&gt; &#039;RECEIPT&#039;,
             _(&#039;To&#039;) =&gt; &#039;RECEIPT&#039;,
             _(&#039;Currency Filter&#039;) =&gt; &#039;CURRENCY&#039;,
+            _(&#039;Email Customers&#039;) =&gt; &#039;YES_NO&#039;,
             _(&#039;Comments&#039;) =&gt; &#039;TEXTBOX&#039;,
             _(&#039;Orientation&#039;) =&gt; &#039;ORIENTATION&#039;));</code></pre></div><p>and</p><div class="codebox"><pre><code>---\reporting\rep112OLD.php
+++ \reporting\rep112.php
@@ -60,8 +60,9 @@
     $from = $_POST[&#039;PARAM_0&#039;];
     $to = $_POST[&#039;PARAM_1&#039;];
     $currency = $_POST[&#039;PARAM_2&#039;];
-    $comments = $_POST[&#039;PARAM_3&#039;];
-    $orientation = $_POST[&#039;PARAM_4&#039;];
+    $email = $_POST[&#039;PARAM_3&#039;];
+    $comments = $_POST[&#039;PARAM_4&#039;];
+    $orientation = $_POST[&#039;PARAM_5&#039;];
 
     if (!$from || !$to) return;
 
@@ -82,9 +83,14 @@
 
     $cur = get_company_Pref(&#039;curr_default&#039;);
 
-    $rep = new FrontReport(_(&#039;RECEIPT&#039;), &quot;ReceiptBulk&quot;, user_pagesize(), 9, $orientation);
+    if ($email == 0)
+        $rep = new FrontReport(_(&#039;RECEIPT&#039;), &quot;ReceiptBulk&quot;, user_pagesize(), 9, $orientation);
        if ($orientation == &#039;L&#039;)
         recalculate_cols($cols);
+    if ($email == 1)
+        {
+            $rep = new FrontReport(&quot;&quot;, &quot;&quot;, user_pagesize(), 9, $orientation);
+        }
     $rep-&gt;currency = $cur;
     $rep-&gt;Font();
     $rep-&gt;Info($params, $cols, null, $aligns);
@@ -181,7 +187,12 @@
             $rep-&gt;TextCol(5, 6, &quot;__________________&quot;, - 2);
             $rep-&gt;TextCol(6, 7, &quot;__________________&quot;);
         }
+        if ($email == 1)
+            {
+                $rep-&gt;End($email);
+            }
     }
-    $rep-&gt;End();
+    if ($email == 0)
+        $rep-&gt;End();
 }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 30 Apr 2019 22:15:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34844#p34844</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23784#p23784</link>
			<description><![CDATA[<p>+1 <br />and please consider https://frontaccounting.com/punbb/viewtopic.php?id=5815 as a feature request. <br />Sending out files with random names is not good for anyone.</p>]]></description>
			<author><![CDATA[null@example.com (RandomName)]]></author>
			<pubDate>Wed, 01 Jul 2015 08:44:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23784#p23784</guid>
		</item>
		<item>
			<title><![CDATA[Re: Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23666#p23666</link>
			<description><![CDATA[<p>I also want to do exactly like this.</p><p>Can anybody help?</p><p>regards</p><p>saad</p>]]></description>
			<author><![CDATA[null@example.com (saadsohailk)]]></author>
			<pubDate>Tue, 09 Jun 2015 17:33:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23666#p23666</guid>
		</item>
		<item>
			<title><![CDATA[Email Receipt to customer]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17366#p17366</link>
			<description><![CDATA[<p>Hi</p><p>Is it possible to add feature to be able to email the receipt to the customer. should use the same email under the branch as that for invoicing.</p><p>regards</p><p>wynand</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Wed, 14 Aug 2013 11:13:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17366#p17366</guid>
		</item>
	</channel>
</rss>
