<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — New installation but i can't create new customers]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8848&amp;type=atom" />
	<updated>2020-06-25T22:46:21Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8848</id>
		<entry>
			<title type="html"><![CDATA[Re: New installation but i can't create new customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37704#p37704" />
			<content type="html"><![CDATA[<p>Thank you @apmuthu<br />I resolved it by creating a sales person which i set as the default for the company. On creating new customer, its auto assigned the sales person thus resolving the NULL issue in the field in the table &quot;0_salesman&quot;</p>]]></content>
			<author>
				<name><![CDATA[cssekyanzi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45315</uri>
			</author>
			<updated>2020-06-25T22:46:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37704#p37704</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New installation but i can't create new customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37695#p37695" />
			<content type="html"><![CDATA[<p>Which version of MySQL / PHP are you using? Later versions of MySQL may prevent blank value for salesman not to be taken as NULL and may wrongly insist in a NOT NULL field definition (with a default of 0) and strict mode enabled in the MySQL settings.&nbsp; See that there is atleast one entry in the &quot;0_salesman&quot; table and make sure that is chosen for the new company&#039;s default salesman.</p><div class="codebox"><pre><code>CREATE TABLE `0_cust_branch` (
...
...
`salesman` int(11) NOT NULL DEFAULT &#039;0&#039;,
...
...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-06-25T06:03:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37695#p37695</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[New installation but i can't create new customers]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37689#p37689" />
			<content type="html"><![CDATA[<p>It&#039;s a new installation with version 2.4.8 running on a web server.<br />I&#039;m able to create new suppliers just fine, ironically i can&#039;t&nbsp; create new customers. I have this setting under setup:<br /> Company Setup&gt;&gt;Search Customer List, and Search Supplier List both UNCHECKED.</p><p>for troubleshooting I turned on debugging in config.php ($go_debug =1;)<br />this is the error output when i attempt to create a new customer;</p><p>DATABASE ERROR : The branch record could not be added<br />error code : 1366<br />error message : Incorrect integer value: &#039;&#039; for column `delcom_fdb-31343xxxx`.`0_cust_branch`.`salesman` at row 1<br />sql that failed was : INSERT INTO 0_cust_branch (debtor_no, br_name, branch_ref, br_address, salesman, area, tax_group_id, sales_account, receivables_account, payment_discount_account, sales_discount_account, default_location, br_post_address, group_no, default_ship_via, notes, bank_account) VALUES (&#039;29&#039;,&#039;TEST customer&#039;, &#039;TS c&#039;, &#039;&#039;, &#039;&#039;, &#039;1&#039;,&#039;1&#039;, &#039;&#039;, &#039;1200&#039;, &#039;4500&#039;, &#039;4510&#039;, &#039;DEF&#039;, &#039;&#039;,&#039;0&#039;, &#039;1&#039;, &#039;&#039;, NULL)</p><p>I don&#039;t what i missed, would appreciate some fast help, thanks</p>]]></content>
			<author>
				<name><![CDATA[cssekyanzi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45315</uri>
			</author>
			<updated>2020-06-24T22:08:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37689#p37689</id>
		</entry>
</feed>
