<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Bug in creating new supplier]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3268</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3268&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Bug in creating new supplier.]]></description>
		<lastBuildDate>Sun, 15 Nov 2015 03:40:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24743#p24743</link>
			<description><![CDATA[<p>Thanks for the feedback. I was wondering where the <strong>ruc_no</strong> came from....</p><p>You may henceforth refer to the various extension modules - Charts, Extensions, Languages and Themes - by linking to files in <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions">my unofficial GitHub repo</a>&#039;s extensions folder or your fork of it. In this case it would be:</p><p><a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Charts/chart_en_US-5digit">Default American coa (5 digits)</a><br /><a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Charts/chart_en_US-service">US chart of accounts for service company.</a><br /><a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Charts/chart_es_ES-general">Spanish COA - ISO</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 15 Nov 2015 03:40:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24743#p24743</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24739#p24739</link>
			<description><![CDATA[<p>apmuthu......in regards to your COA question....I´m using the ones checked here on this image..... </p><p>http://screenshot.net/37qnktm......<a href="http://screenshot.net/37qnktm">[img]http://screenshot.net/37qnktm.jpg[/img]</a></p><br /><p>Let me know if it´s ok. </p><p>Thanks for collaboration.</p>]]></description>
			<author><![CDATA[null@example.com (sbt507)]]></author>
			<pubDate>Sat, 14 Nov 2015 21:23:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24739#p24739</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24738#p24738</link>
			<description><![CDATA[<p>My bad guys...sorry for disturbing your peace.....I guess I made a beginner´s mistake in changing the db field name from gst_no to ruc_no. I figured if php script was calling at ruc_no, then field name at db should have been named accordingly, but I guess a translation does not necessarily means the script core will change its path to the db.....Am I reasoning correctly ?</p><p>FYI, and based on my assumption, I went ahead and reversed the above changes on the db to its original &quot; gst_no &quot; ....and voila...it worked.</p>]]></description>
			<author><![CDATA[null@example.com (sbt507)]]></author>
			<pubDate>Sat, 14 Nov 2015 20:05:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24738#p24738</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24719#p24719</link>
			<description><![CDATA[<p>Since you are using cPanel, you might want to check if the username prefix is there - generally it will be your cPanel username with an underscore and then your actual username. The same may apply to your database as well. If you are able to login correctly, then your database is working okay. </p><p>Replace all instances of <strong>ruc_no</strong> with <strong>gst_no</strong> and <strong>R.U.C. No:</strong> with <strong>GSTNo:</strong> in your suppliers.php file. Looks like there is something wrong with your FA php files itself. The suppliers table is missing the supp_ref field and the gst_no field is wrongly named ruc_no.</p><div class="codebox"><pre><code>DROP TABLE IF EXISTS `0_suppliers`;
CREATE TABLE IF NOT EXISTS `0_suppliers` (
  `supplier_id` int(11) NOT NULL auto_increment,
  `supp_name` varchar(60) NOT NULL default &#039;&#039;,
  `supp_ref` varchar(30) NOT NULL default &#039;&#039;,
  `address` tinytext NOT NULL,
  `supp_address` tinytext NOT NULL,
  `gst_no` varchar(25) NOT NULL default &#039;&#039;,
  `contact` varchar(60) NOT NULL default &#039;&#039;,
  `supp_account_no` varchar(40) NOT NULL default &#039;&#039;,
  `website` varchar(100) NOT NULL default &#039;&#039;,
  `bank_account` varchar(60) NOT NULL default &#039;&#039;,
  `curr_code` char(3) default NULL,
  `payment_terms` int(11) default NULL,
  `tax_included` tinyint(1) NOT NULL default &#039;0&#039;,
  `dimension_id` int(11) default &#039;0&#039;,
  `dimension2_id` int(11) default &#039;0&#039;,
  `tax_group_id` int(11) default NULL,
  `credit_limit` double NOT NULL default &#039;0&#039;,
  `purchase_account` varchar(15) NOT NULL default &#039;&#039;,
  `payable_account` varchar(15) NOT NULL default &#039;&#039;,
  `payment_discount_account` varchar(15) NOT NULL default &#039;&#039;,
  `notes` tinytext NOT NULL,
  `inactive` tinyint(1) NOT NULL default &#039;0&#039;,
  PRIMARY KEY  (`supplier_id`),
  KEY `supp_ref` (`supp_ref`)
) ENGINE=MyISAM;</code></pre></div><p>RUC [General/National Taxpayers Register by its acronym in Spanish] Nr.</p><p>Which CoA are you using and from where?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 13 Nov 2015 18:46:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24719#p24719</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24714#p24714</link>
			<description><![CDATA[<p>db image &amp; bd structure.....see here <a href="http://postimg.org/image/bt345zkft/">[img]http://s4.postimg.org/bt345zkft/2015_11_13_2.png[/img]</a></p><p><a href="http://postimg.org/image/iktj8u9fd/">[img]http://s4.postimg.org/iktj8u9fd/2015_11_13_3.png[/img]</a></p><p>it seems as if script can´t communicate with db....that´s my impression.....FYI....I´m just an empirical fellow....so please, share your expert knowledge....it´ll be greatly appreciated.</p><p>Perhaps, you might want to check my supplier.php file here.....<a href="http://wikisend.com/download/113084/suppliers.php">suppliers.php</a></p>]]></description>
			<author><![CDATA[null@example.com (sbt507)]]></author>
			<pubDate>Fri, 13 Nov 2015 17:49:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24714#p24714</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24713#p24713</link>
			<description><![CDATA[<p>Yes, unzip the contents of the snapshot into your FA webroot overwriting existing files.<br />Make sure that the necessary folders and files are webserver writeable as needed.<br />The MySQL user should have the necessary privileges before installation.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 13 Nov 2015 17:20:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24713#p24713</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24711#p24711</link>
			<description><![CDATA[<p>HostGator / shared hosting <br />Program Versions / Program Version / Apache: 2.2.29 / CentOS: CentOS release 6.7 (Final) / cPanel: 11.48.4 (build 7) <br />Curl: 7.12.1 / MySQL 5.5.42-37.1 / phpMyAdmin 4.3.8 / Python: 2.6.6 / Program Version Perl: 5.8.8 / PHP: 5.4.43<br />ionCube Loader: 4.7.4 / Zend Optimizer:&nbsp; &nbsp;/ Ruby: 1.8.7 / Rails: 2.3.18 / OpenSSL: 1.0.1e-fips</p><p>Web Browser: Google Chrome / Ver. 46.0.2490.86 m</p><p>Hope we have provided you with the requested info.</p><p>For snapshot provided....I guess we need to upload zip and decompress in order to replace currrent FA folder....right ?</p>]]></description>
			<author><![CDATA[null@example.com (sbt507)]]></author>
			<pubDate>Fri, 13 Nov 2015 16:46:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24711#p24711</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24704#p24704</link>
			<description><![CDATA[<p>Which platform for server and what browser and version? Use latest stable <a href="https://github.com/FrontAccountingERP/FA/archive/master.zip">snapshot</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 13 Nov 2015 07:39:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24704#p24704</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24702#p24702</link>
			<description><![CDATA[<p>Using ver. 2.3.24 and can´t add suppliers.</p><p>I´m about to go blind and insane. Looked all over and can´t find any info on it that will correct the problem....plzzzz....HELP.</p>]]></description>
			<author><![CDATA[null@example.com (sbt507)]]></author>
			<pubDate>Fri, 13 Nov 2015 06:04:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24702#p24702</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13080#p13080</link>
			<description><![CDATA[<p>Please check that line 226 in /purchasing/manage/suppliers.php is <br /></p><div class="codebox"><pre><code>            add_supplier($_POST[&#039;supp_name&#039;], $_POST[&#039;supp_ref&#039;], $_POST[&#039;address&#039;], $_POST[&#039;supp_address&#039;],
                $_POST[&#039;gst_no&#039;], $_POST[&#039;website&#039;], $_POST[&#039;supp_account_no&#039;], $_POST[&#039;bank_account&#039;], 
                input_num(&#039;credit_limit&#039;,0), $_POST[&#039;dimension_id&#039;], $_POST[&#039;dimension2_id&#039;],
                $_POST[&#039;curr_code&#039;], $_POST[&#039;payment_terms&#039;], $_POST[&#039;payable_account&#039;], $_POST[&#039;purchase_account&#039;],
                $_POST[&#039;payment_discount_account&#039;], $_POST[&#039;notes&#039;], $_POST[&#039;tax_group_id&#039;], check_value(&#039;tax_included&#039;));</code></pre></div><p>if not, you should upgrade to 2.3.11.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 14 Aug 2012 12:27:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13080#p13080</guid>
		</item>
		<item>
			<title><![CDATA[Bug in creating new supplier]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13079#p13079</link>
			<description><![CDATA[<p>Using 2.3.10 there seems to be a bug in entering a new supplier and NOT checking the prices include VAT.</p><p>error message : Incorrect integer value: &#039;&#039; for column &#039;tax_included&#039; at row 1<br />sql that failed was : UPDATE 1_suppliers SET supp_name=&#039;Printed.com&#039;, supp_ref=&#039;Printed.com&#039;, address=&#039;Unit 2\nArcot Court\nNelson Road\nCramlington\nNorthumberland\nNE23 1BB&#039;, supp_address=&#039;&#039;, gst_no=&#039;621141690&#039;, website=&#039;www.printed.com&#039;, supp_account_no=&#039;&#039;, bank_account=&#039;&#039;, credit_limit=0, dimension_id=&#039;0&#039;, dimension2_id=&#039;0&#039;, curr_code=&#039;GBP&#039;, payment_terms=&#039;5&#039;, payable_account=&#039;2100&#039;, purchase_account=&#039;&#039;, payment_discount_account=&#039;5000&#039;, notes=&#039;&#039;, tax_group_id=&#039;6&#039;, tax_included=&#039;&#039; WHERE supplier_id = &#039;49&#039;</p><p>If the checkbox is ticked - then no problem - but that isn&#039;t good if the suppliers prices do NOT contain VAT.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (vernonr)]]></author>
			<pubDate>Tue, 14 Aug 2012 11:37:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13079#p13079</guid>
		</item>
	</channel>
</rss>
