<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Email Receipt to customer]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4299&amp;type=atom" />
	<updated>2019-05-01T16:44:32Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4299</id>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34850#p34850" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Denis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44612</uri>
			</author>
			<updated>2019-05-01T16:44:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34850#p34850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34849#p34849" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2019-05-01T16:17:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34849#p34849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34848#p34848" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Denis]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44612</uri>
			</author>
			<updated>2019-05-01T16:09:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34848#p34848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34847#p34847" />
			<content type="html"><![CDATA[<p>@joe, thank you; it improves the workflow for a paperless system.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-01T14:47:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34847#p34847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34846#p34846" />
			<content type="html"><![CDATA[<p>Thanks poncho tested and it works.</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2019-05-01T10:03:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34846#p34846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34845#p34845" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2019-05-01T08:09:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34845#p34845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34844#p34844" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-04-30T22:15:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34844#p34844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23784#p23784" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[RandomName]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20525</uri>
			</author>
			<updated>2015-07-01T08:44:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23784#p23784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23666#p23666" />
			<content type="html"><![CDATA[<p>I also want to do exactly like this.</p><p>Can anybody help?</p><p>regards</p><p>saad</p>]]></content>
			<author>
				<name><![CDATA[saadsohailk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20462</uri>
			</author>
			<updated>2015-06-09T17:33:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23666#p23666</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Email Receipt to customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17366#p17366" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2013-08-14T11:13:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17366#p17366</id>
		</entry>
</feed>
