<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Suggestion:  Make Payment Link Prettier]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3738</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3738&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Suggestion:  Make Payment Link Prettier.]]></description>
		<lastBuildDate>Mon, 20 Dec 2021 16:49:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40391#p40391</link>
			<description><![CDATA[<p>I agree with tm its what I did so you get the URL printed and the QR on the invoice</p><p>copy the library from here <a href="https://sourceforge.net/projects/phpqrcode/files/latest/download">https://sourceforge.net/projects/phpqrc … t/download</a><br />to --&gt; /reporting/includes/</p><p>in the file <br />/reporting/includes/doctext.inc</p><p>in the top<br /></p><div class="codebox"><pre><code>// add QR Support mod
    $path_to_root=&quot;..&quot;;
    include_once($path_to_root . &quot;/reporting/includes/phpqrcode/qrlib.php&quot;);

    $tempDir = $path_to_root .&quot;/company/1/pdf_files/&quot;; // &lt;--NOTE must be your temp location
// end</code></pre></div><p>the if statement around line 270 should look like this</p><div class="codebox"><pre><code>    if (@$this-&gt;formData[&#039;payment_service&#039;])    //payment link
    {
        $amt = number_format($this-&gt;formData[&quot;ov_freight&quot;] + $this-&gt;formData[&quot;ov_gst&quot;] + $this-&gt;formData[&quot;ov_amount&quot;], user_price_dec());
        $service = $this-&gt;formData[&#039;payment_service&#039;];
        $url = payment_link($service, array(
            &#039;company_email&#039; =&gt; $this-&gt;company[&#039;email&#039;],
            &#039;amount&#039; =&gt; $amt,
            &#039;currency&#039; =&gt; $this-&gt;formData[&#039;curr_code&#039;],
            &#039;comment&#039; =&gt; $this-&gt;title . &quot; &quot; . $this-&gt;formData[&#039;reference&#039;],
            &#039;invoice&#039; =&gt; $this-&gt;formData[&#039;document_number&#039;]
            ));
        $Footer[_(&quot;You can pay through&quot;). &quot; $service: &quot;] = &quot;$url&quot;;
// QR Mod
        $tempname = tempnam($tempDir,&#039;QRcode&#039;);
        QRcode::png($url, $tempname.&#039;.png&#039;, QR_ECLEVEL_L, 3);
        $this-&gt;Image($tempname.&#039;.png&#039;,486,670,100,100);
// End
    }</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Mon, 20 Dec 2021 16:49:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40391#p40391</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=19118#p19118</link>
			<description><![CDATA[<p>You could also insert the URL as a QR code. There are libraries available to generate and insert them into TCPDF&#039;s output, but it might require changing the layout a bit. (I don&#039;t use FA&#039;s invoices, but I&#039;ve done something quite similar elsewhere with FPDF.)</p><p>A more keyboard-friendly approach would be building a simple URL shortening and redirection service, but that would involve interfacing with a publicly accessible web server.</p>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Mon, 27 Jan 2014 21:58:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=19118#p19118</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15063#p15063</link>
			<description><![CDATA[<p>Just to finish up a previous side conversation...</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Obtained the backup sql of your system and am testing it out in an OpenVZ VPS - a sort of test ride&nbsp; troubleshooting using it.</p><p>The changes from the stock FA v2.3.13 to the Mercurial Build now as far as the database is concerned is only the following statements (You are using company 0 with a table prefix of &quot;<strong>f1_</strong>&quot;):</p><p>(SQL Statements removed)</p></blockquote></div><p>Thanks for that info.&nbsp; If I decide to do a backup of my production data and restore it into Mercurial I&#039;ll remember to run those SQL statements so the the db is correct.</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Typo in Company Name - <em>Extraordi<strong>na</strong>ire</em>.</p></blockquote></div><p>Thanks for pointing that out!&nbsp; <img src="https://frontaccounting.com/punbb/img/smilies/lol.png" width="15" height="15" alt="lol" />&nbsp; I type that word so often I often don&#039;t look at it closely any more!</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The config.php must be matched with the config.default.php to make up for the missing/changed entries. Stick to <strong>default</strong> themes for now till the other themes are updated to accommodate the changed function locations that affect the <strong>renderer.php</strong> in the older themes.</p></blockquote></div><p>I&#039;ll keep that in mind, too, if I decide to do the export/import thing into Mercurial.</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The choice of white background in your logo blends well with stock white paper invoice!</p></blockquote></div><p>Yes, it does.&nbsp; I tried a logo with a transparent background but the transparency converted to black in the PDF reader.&nbsp; I never use colored paper for business purposes, so the white background works just fine.</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>COA has Retained Earnings, Owner&#039;s Drawings and Owner&#039;s Equity in Owner&#039;s Capital type(7).</p></blockquote></div><p>That&#039;s right.&nbsp; Owner&#039;s Equity is my capital investment in the company (i.e. shares).&nbsp; Owner&#039;s Draw is used for occasionally putting some operating funds into the company or drawing-out funds for personal use.&nbsp; &nbsp; Although I <em>could</em> record draws to Owner&#039;s Equity, I prefer to keep those two types of transactions separate.</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p> <br />Working on the prettier link without having to change the code much.....</p></blockquote></div><p>See my comment above.</p><p>Thanks, again, apmuthu for your help!</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Mon, 14 Jan 2013 17:59:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15063#p15063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15062#p15062</link>
			<description><![CDATA[<p>Sounds to me like my suggestion has &quot;fixed&quot; one problem, long and ugly URL&#039;s at the end of the invoice, but has created several others. including possible support issues with PDF readers.&nbsp; Although personally <em>I</em> would prefer not having the long and ugly URL, I now realize there are logical reasons for having it (so that customers who print the report can manually type it in).</p><p>Perhaps it&#039;s best to leave things be?&nbsp; I&#039;m sure I&#039;ll get used to the URL&#039;s.&nbsp; Sorry if my suggestion caused anyone to waste time/effort that could have been better spent on other matters.</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Mon, 14 Jan 2013 17:43:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15062#p15062</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15060#p15060</link>
			<description><![CDATA[<p>Yes, I know this is possible, but this is another unneeded support issue.</p><p>The other argument against it is that a good typist could easily enter the URL in a browser from a printed copy. This is not possible at all with this new implementation.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 17:23:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15060#p15060</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15059#p15059</link>
			<description><![CDATA[<p>See this <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=15058#p15058">thread</a> - It works in Foxit Reader as well.</p><p>In Foxit Reader:<br />Edit -&gt; Preferences -&gt; Trust Manager -&gt; Enable Safe Reading Mode -&gt; Uncheck</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 16:02:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15059#p15059</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15056#p15056</link>
			<description><![CDATA[<p>We are not planning to update the TCPDF&nbsp; in a while. They used to have upgrades every week a while ago.</p><p>As told, this doesn&#039;t work in Foxit reader and we should not change something that does not work in all pdf viewers.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 15:11:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15056#p15056</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15050#p15050</link>
			<description><![CDATA[<p>Works in Adobe Acrobat Reader X<br />Works in the Browser plugin in MS IE 8 and FF 18.0<br />Works from <a href="https://kjkpub.s3.amazonaws.com/sumatrapdf/rel/SumatraPDF-2.2.1.zip">Sumatra PDF Reader v2.2.1</a> - 2.5 MB</p><p>Please let me know which PDF Reader it did not work.</p><p>If the PayPal Link is necessary to be shown in full, maybe we can add a config variable (all companies) for it or a setup preference (sys_prefs) variable for it (per company basis). The patch contains the native way to populate a link in TCPDF with no dependency of FPDF parsers. The latest TCPDF also has ShotCodes, Extended barcodes / QCodes as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 13:46:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15050#p15050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15048#p15048</link>
			<description><![CDATA[<p>Hold your horses a bit. This new link does not work in certain PDF-readers.</p><p>The old, ugly one, did work. And for printed copies, you could just enter the URL in your browser and pay it this way too.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 14 Jan 2013 13:06:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15048#p15048</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15041#p15041</link>
			<description><![CDATA[<p>Lines 205 and 209 in the file <strong>reporting/includes/header2.inc</strong> attached in the previous post are both:<br /></p><div class="codebox"><pre><code>$this-&gt;row -= $this-&gt;lineHeight;</code></pre></div><p>If the said lines are commented out, the blank line in the middle of the footer disappears.</p><p>Attached herein is the before and after picture set of an invoice.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 11:21:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15041#p15041</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15038#p15038</link>
			<description><![CDATA[<p>Your Pretty Link is done!<br />Replace file reporting/includes/header2.inc with the one attached.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 10:58:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15038#p15038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15032#p15032</link>
			<description><![CDATA[<p>Obtained the backup sql of your system and am testing it out in an OpenVZ VPS - a sort of test ride&nbsp; troubleshooting using it.</p><p>The changes from the stock FA v2.3.13 to the Mercurial Build now as far as the database is concerned is only the following statements (You are using company 0 with a table prefix of &quot;<strong>f1_</strong>&quot;):</p><div class="codebox"><pre><code># Default value is not &#039;1&#039; but blank
ALTER TABLE `f1_users` 
    CHANGE `print_profile` `print_profile` varchar(30)  COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `pos`;

# InnoDB needed for Foreign Keys - not mere unique key
ALTER TABLE `f1_tag_associations` 
    ADD PRIMARY KEY(`record_id`,`tag_id`), 
    DROP KEY `record_id`, ENGINE=InnoDB; 

ALTER TABLE `f1_tags` ENGINE=InnoDB; 

# New feature in Mercurial build needs it
INSERT INTO `f1_sys_prefs` VALUES (&#039;bcc_email&#039;, &#039;setup.company&#039;, &#039;varchar&#039;, &#039;100&#039;, NULL);</code></pre></div><p>Typo in Company Name - <em>Extraordi<strong>na</strong>ire</em>.</p><p>The config.php must be matched with the config.default.php to make up for the missing/changed entries. Stick to <strong>default</strong> themes for now till the other themes are updated to accommodate the changed function locations that affect the <strong>renderer.php</strong> in the older themes.</p><p>The choice of white background in your logo blends well with stock white paper invoice!<br />COA has Retained Earnings, Owner&#039;s Drawings and Owner&#039;s Equity in Owner&#039;s Capital type(7).</p><p>Working on the prettier link without having to change the code much.....</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 08:11:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15032#p15032</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15006#p15006</link>
			<description><![CDATA[<p>Hi, apmuthu!</p><p>Your point about the link in a printed report not being click-able is well taken.&nbsp; However, with such a long URL it&#039;s a bit doubtful someone is going to type it all in manually, especially since it contains special characters (e.g. &quot;&amp;&quot; for field parameters and &quot;%40&quot; instead of &quot;@&quot;).&nbsp; So, getting rid of all that, even though it means someone who prints the report can&#039;t type it, probably isn&#039;t that big a deal.</p><p>Anyway, I tried making the changes you suggested above and now neither the word &quot;PayPal&quot; nor the long URL are click-able, although the URL is blue instead of black.&nbsp; If you PM me your e-mail address, I can e-mail you a PDF&#039;ed invoice to look at (I don&#039;t want to post one online.)</p><p>***<br />EDIT:&nbsp; Actually, the payment link now looks like this (and is unclickable):</p><p>&lt;a href=&#039;https://www.paypal.com/xclick/business=chris%40crazychris.ca&amp;item_name=INVOICE+146&amp;amount=24.30&amp;currency_code=CAD&#039;&gt;Payment Link&lt;/a&gt;</p><p>In other words, it&#039;s printing out the whole URL, not just &quot;Payment Link&quot;.<br />***</p><p>Thanks, again, for your help!</p><p>Regards,</p><p>Chris</p><p>P.S.&nbsp; I sent you a PM about accessing my system.&nbsp; I hope you got it?</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Sun, 13 Jan 2013 04:43:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15006#p15006</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15000#p15000</link>
			<description><![CDATA[<p>If the only usage is a pdf that will be emailed or seen in a browser, then the shortened text with the hyperlink beneath it would have been okay.</p><p>The reason that is expanded in full is that in a printout the URL is not clickable!</p><p>Please try replacing Lines 1350-1355 in <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/file/84d291d54d89/includes/ui/ui_view.inc"><strong>includes/ui/ui_view.inc</strong></a> for your requirement (inspite of reason listed) with:<br /></p><div class="codebox"><pre><code>if (!isset($payment_services))
{
    $payment_services = array(
        &#039;PayPal&#039; =&gt; &quot;&lt;a href=&#039;https://www.paypal.com/xclick/business=&lt;company_email&gt;&amp;item_name=&lt;comment&gt;&amp;amount=&lt;amount&gt;&amp;currency_code=&lt;currency&gt;&#039;&gt;Payment Link&lt;/a&gt;&quot;,
    );
}</code></pre></div><p>Line 259 in file <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/file/84d291d54d89/reporting/includes/doctext.inc"><strong>reporting/includes/doctext.inc</strong></a>:<br /></p><div class="codebox"><pre><code>$Footer[_(&quot;You can pay through&quot;). &quot; $service: &quot;] = &quot;$url&quot;;</code></pre></div><p>and Line 1014 in file <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/file/84d291d54d89/reporting/includes/pdf_report.inc"><strong>reporting/includes/pdf_report.inc</strong></a>:<br /></p><div class="codebox"><pre><code>$msg.= _(&quot;You can pay through&quot;). &quot; $service: $url\n\n&quot;;</code></pre></div><p>are used to display the assembled <strong>$url</strong> string.</p><p>BTW: your screenshot was <strong>http</strong> and not <strong>https</strong> and yes, upload rights are controlled by the board admin.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 12 Jan 2013 13:44:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15000#p15000</guid>
		</item>
		<item>
			<title><![CDATA[Re: Suggestion:  Make Payment Link Prettier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=14991#p14991</link>
			<description><![CDATA[<p>I don&#039;t see a way of adding an attachment to this message (maybe I don&#039;t have privileges?), so here&#039;s a link for you:</p><p><a href="https://www.crazychris.ca/screenshot-1.png">https://www.crazychris.ca/screenshot-1.png</a></p><p>Hope that helps...</p><p>Regards,</p><p>Chris</p>]]></description>
			<author><![CDATA[null@example.com (chrison)]]></author>
			<pubDate>Sat, 12 Jan 2013 08:58:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=14991#p14991</guid>
		</item>
	</channel>
</rss>
