<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Amount in words in Invoice]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4095&amp;type=atom" />
	<updated>2022-06-06T10:51:56Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4095</id>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41151#p41151" />
			<content type="html"><![CDATA[<p>Hello @Apmuthu,</p><p>Thanks for your prompt response always.</p><p>I need you to attend to this please. It is possible to have the amount in words like this Two hundred and fifty thousand naira and eighty five Kobo other than the usual NGN: Two hundred and fifty thousand and &quot;85/100&quot;.</p><p>thanks for always prompt response</p><p>Popsicles12</p>]]></content>
			<author>
				<name><![CDATA[popsicles12]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36</uri>
			</author>
			<updated>2022-06-06T10:51:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41151#p41151</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40979#p40979" />
			<content type="html"><![CDATA[<p>Hello All,</p><p>Thanks for the beautiful feature. I have the Amount in Words working in my invoice print-out. Can any one assist in the changing the fraction side to proper wording.<br />For example if my currency is Dollar then the fraction is cents. can it be done in such a way that the cents will be in words and not 00/100. NGN: One Hundred and Eighty-Nine Thousand and &quot;00/100&quot;.</p><p>Thanks.</p><p>Popsicles12</p>]]></content>
			<author>
				<name><![CDATA[popsicles12]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36</uri>
			</author>
			<updated>2022-05-04T11:35:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40979#p40979</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30118#p30118" />
			<content type="html"><![CDATA[<p>Thanks Stefan.. Commenting the above lines shows the amount in words also in Sales Invoice.</p><p>Regards..</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2017-12-20T08:33:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30118#p30118</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30114#p30114" />
			<content type="html"><![CDATA[<p>// if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE )) <br />//&nbsp; &nbsp; &nbsp; &nbsp; return &quot;&quot;;</p>]]></content>
			<author>
				<name><![CDATA[stefan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20008</uri>
			</author>
			<updated>2017-12-19T19:56:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30114#p30114</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30113#p30113" />
			<content type="html"><![CDATA[<p>Stefan,</p><p>Which line to comment you are referencing to? Amount in words is important for me because one of my biggest customers insists that I do. BTW I am new to FA and accounting in general. I am running a small business and FA is perfect for me.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2017-12-19T16:51:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30113#p30113</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30110#p30110" />
			<content type="html"><![CDATA[<p>@rafat if I remember well there was some session or cache issue with this filtering - delayed change. <br />If it&#039;s still not working and for you amount in words is important, you can simply comment the line and it will be active for all documents.</p>]]></content>
			<author>
				<name><![CDATA[stefan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20008</uri>
			</author>
			<updated>2017-12-19T08:59:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30110#p30110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30099#p30099" />
			<content type="html"><![CDATA[<p>During the past 10 years this is the first time I hear that this info is needed on an Invoice.</p><p>I know that this info on Receipts and Remittances are needed.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-12-18T18:25:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30099#p30099</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30098#p30098" />
			<content type="html"><![CDATA[<p>What is the standard procedure to include it in the invoice? Must we edit it like here or in the repXXX file in any different way? Should it be some choice in the company setup as candidates for the sys_prefs table?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-18T18:18:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30098#p30098</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30097#p30097" />
			<content type="html"><![CDATA[<p>Yes, the reason for not including this info on Sales Invoices is that normally you don&#039;t like or need this info on Invoices.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-12-18T18:12:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30097#p30097</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30096#p30096" />
			<content type="html"><![CDATA[<p>@rafat: FA now uses <a href="https://sourceforge.net/p/frontaccounting/git/commit_browser">Sourceforge&#039;s Git</a> and is mirrored on <a href="https://github.com/FrontAccountingERP/FA/">GitHub</a>.</p><p>If the price hook exists for your locale, then it would automatically come. Only otherwise will the rest of the <a href="https://github.com/FrontAccountingERP/FA/blob/master/includes/ui/ui_view.inc#L857">function price_in_words</a> be executed when the default for the Invoices is needed to be overridden by my mod.</p><p>A more elegant mod version for <a href="https://github.com/FrontAccountingERP/FA/blob/master/includes/ui/ui_view.inc#L865">Line 865</a> would be:<br /></p><div class="codebox"><pre><code>if (!in_array($document, array(ST_SUPPAYMENT, ST_CUSTPAYMENT, ST_CHEQUE, ST_SALESINVOICE))</code></pre></div><p>The <strong>function price_in_words()</strong> that finally gets invoked if present is available as a skeleton in <strong><a href="https://github.com/FrontAccountingERP/FA/blob/master/lang/new_language_template/locale.inc#L29">lang/new_language_template/locale.inc</a></strong>.</p><p>@joe: any reason why the Invoice did not default to the words like the others?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-18T15:57:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30096#p30096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30094#p30094" />
			<content type="html"><![CDATA[<p>I actually edited the file <strong>includes/ui/ui_view.inc</strong> and this is a copy of the line at position 865 of the file:</p><br /><div class="codebox"><pre><code>    // Only usefor Remittance and Receipts as default
    if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE || $document == ST_SALESINVOICE))
        return &quot;&quot;;
    if ($amount &lt; 0 || $amount &gt; 999999999999)
        return &quot;&quot;;
    $dec = user_price_dec();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2017-12-18T13:49:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30094#p30094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30092#p30092" />
			<content type="html"><![CDATA[<p>You quoted a reply...<br />What did you do? You tried with the mentioned file from the repo or you changed the code in the file of your system?</p><p>If you tried with the mentioned file, it&#039;s still not changed to add words to invoices.<br />You have to find it and change the mentioned code. When reply was made apmuthu mentioned line 793 but it obviously was quoted before some other changes which increased the lines. <br />As of today it is at line 829.</p>]]></content>
			<author>
				<name><![CDATA[stefan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20008</uri>
			</author>
			<updated>2017-12-18T11:12:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30092#p30092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30091#p30091" />
			<content type="html"><![CDATA[<p>Thanks Stefan,</p><p>My language is English C both for the user and system and its also the default language. I am just wondering why its only Sales Invoice that does not show.. ? It shows for Remittance, Receipts and checks.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2017-12-18T10:16:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30091#p30091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30074#p30074" />
			<content type="html"><![CDATA[<p>I don&#039;t know about 2.4.3 but first of all check whether it shows when you set user languge and system default language to English &#039;C&#039; .<br />If it works - something is wrong with your locale amount in words.</p>]]></content>
			<author>
				<name><![CDATA[stefan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20008</uri>
			</author>
			<updated>2017-12-17T13:26:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30074#p30074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Amount in words in Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30071#p30071" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Any reason why this has not made it to the HG repo?</p><p>The file is:<br /><a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/file/7404ca95d4a2/includes/ui/ui_view.inc">includes/ui/ui_view.inc</a> and the line to be changed is line no. 793:<br /></p><div class="codebox"><pre><code>     if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE))</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>     if (!($document == ST_SUPPAYMENT || $document == ST_CUSTPAYMENT || $document == ST_CHEQUE || $document == ST_SALESINVOICE))</code></pre></div></blockquote></div><p>amount in words does not show in the Sales Invoice, although it shows on the others. Do I need to change something else? I am running FA 2.4.3.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2017-12-17T08:24:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30071#p30071</id>
		</entry>
</feed>
