<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Bug in creating new supplier]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3268&amp;type=atom" />
	<updated>2015-11-15T03:40:02Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3268</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24743#p24743" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-11-15T03:40:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24743#p24743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24739#p24739" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sbt507]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20814</uri>
			</author>
			<updated>2015-11-14T21:23:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24739#p24739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24738#p24738" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sbt507]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20814</uri>
			</author>
			<updated>2015-11-14T20:05:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24738#p24738</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24719#p24719" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-11-13T18:46:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24719#p24719</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24714#p24714" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sbt507]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20814</uri>
			</author>
			<updated>2015-11-13T17:49:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24714#p24714</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24713#p24713" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-11-13T17:20:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24713#p24713</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24711#p24711" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sbt507]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20814</uri>
			</author>
			<updated>2015-11-13T16:46:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24711#p24711</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24704#p24704" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-11-13T07:39:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24704#p24704</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24702#p24702" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sbt507]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20814</uri>
			</author>
			<updated>2015-11-13T06:04:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24702#p24702</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13080#p13080" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-08-14T12:27:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13080#p13080</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Bug in creating new supplier]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=13079#p13079" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[vernonr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=322</uri>
			</author>
			<updated>2012-08-14T11:37:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=13079#p13079</id>
		</entry>
</feed>
