<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Import of Direct Sales Invoice from csv fails]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8755&amp;type=atom" />
	<updated>2020-11-30T19:25:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8755</id>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38691#p38691" />
			<content type="html"><![CDATA[<p>Simplified input test file like so:<br /></p><div class="codebox"><pre><code>debtor_no,branch_code,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex-rate,prep_amount
1,1,&quot;002/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;003/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;004/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;005/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;006/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;007/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;008/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0
1,1,&quot;009/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List&quot;,2019/05/11,&quot;Robert G Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0</code></pre></div><p>Strangely, processing now stops after showing first two (instead of three) invoices in green.<br />Running PHP version 7.2; tried going to 5.6 - no difference.</p><p>Here are some settings in php.ini: (no changes made)<br />max_input_vars=4000<br />memory_limit=512M<br />report_memleaks = on<br />;sysvshm.init_mem&nbsp; [commented out]<br />opcache.memory_consumption=64<br />opcache.interned_string_buffer=4<br />opcache.max_wasted_percentage=5<br />opcache.revalidate_freq=2<br />opcache.preferred_memory_model=&nbsp; &nbsp; [left empty]<br />opcache.protect_memory=0<br />opcache.mmap_base=&nbsp; &nbsp; &nbsp; [left empty]<br />opcache.file_cache=&nbsp; &nbsp; &nbsp;[left empty]<br />opcache.file_cache_only=0</p><p>Here are some settings in .htaccess: (no changes made)<br /> php_value memory_limit 512M<br /> php_value post_max_size 512M<br /> php_value error_log &quot;/home/pugets12/logs/FA_errors.log&quot;&nbsp; &nbsp; [last written to in May 2020]<br /> php_value max_input_vars 4000<br /> php_value error_reporting E_ALL &amp; ~E_NOTICE &amp; ~E_DEPRECATED &amp; ~E_STRICT<br /> php_flag display_errors On<br /> php_flag display_startup_errors Off<br /> php_flag log_errors On</p><p>Any suggestions?</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-11-30T19:25:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38691#p38691</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38690#p38690" />
			<content type="html"><![CDATA[<p>Choose the entry that was successful and make 10 entries of the same and import them making sure the Inv Nos are different so as not to violate the primary key requirements.</p><p>If you still get the error then it has something to do with the memory setting in PHP / Webserver configs.<br />Also check if your PHP variables settings are high enough like 3000 or so (default is 1000 only).</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-11-30T16:28:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38690#p38690</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38689#p38689" />
			<content type="html"><![CDATA[<p>Hmm ... Thanks for the investigation apmuthu but after removing all 12 backticks and importing again, the problem is exactly the same. What should I do?</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-11-30T16:14:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38689#p38689</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38686#p38686" />
			<content type="html"><![CDATA[<p>You are using <strong>backticks</strong> in <strong>item_description</strong> and <strong>delto</strong> field values. Remove them and all should be well.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-11-30T09:36:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38686#p38686</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38681#p38681" />
			<content type="html"><![CDATA[<p>I am coming back to this after not using it for several months. I am trying to import a direct sales .csv file with line 1 containing the headers and lines 2 through 5 containing the data, and line 6 being empty, like so:</p><p>Line 1:<br /></p><div class="codebox"><pre><code>debtor_no,branch_code,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex-rate,prep_amount</code></pre></div><p>Line 2:<br /></p><div class="codebox"><pre><code>4,4,&quot;003/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight on 2019/05/11 15:32, tow by 3TM, rel @ 3600 ft, Dur 116 min, CC F. Launch $:  32.00 + ( 2500 - 1000 = 1500 ft) x 0.0140 = 53.00, 50 % split -&gt; 26.50&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List: INVLINES:155, INVOICES:109&quot;,2019/05/11,&quot;Paul `R` Caspell&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10018&quot;,0,&quot;&quot;,0,0</code></pre></div><p>Line 3:<br /></p><div class="codebox"><pre><code>4,4,&quot;003/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5510&quot;,&quot;Flight on 2019/05/11 15:32 with First Pilot Robert `G` Rackl, glider PW-6, rel @ 3600 ft, Dur 116 min, CC F. Rental $:  12.00 + (116 - 20 = 96 min) x 0.6000 = 69.60 rounded up to 70.00, 50 % split -&gt; 35.00&quot;,1.0000,&quot;Each&quot;,35.0000,0,0,&quot;ID List: INVLINES:156, INVOICES:109&quot;,2019/05/11,&quot;Paul `R` Caspell&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10018&quot;,0,&quot;&quot;,0,0</code></pre></div><p>Line 4:<br /></p><div class="codebox"><pre><code>1,1,&quot;002/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5550&quot;,&quot;Flight on 2019/05/11 15:32, tow by 3TM, rel @ 3600 ft, Dur 116 min, CC F. Launch $:  32.00 + ( 2500 - 1000 = 1500 ft) x 0.0140 = 53.00, 50 % split -&gt; 26.50&quot;,1.0000,&quot;Each&quot;,26.5000,0,0,&quot;ID List: INVLINES:153, INVOICES:108&quot;,2019/05/11,&quot;Robert `G` Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0</code></pre></div><p>Line 5:<br /></p><div class="codebox"><pre><code>1,1,&quot;002/2019&quot;,2019/05/11,3,&quot;Retail&quot;,1,2,&quot;5510&quot;,&quot;Flight on 2019/05/11 15:32 with Second Pilot Paul `R` Caspell, glider PW-6, rel @ 3600 ft, Dur 116 min, CC F. Rental $:  12.00 + (116 - 20 = 96 min) x 0.6000 = 69.60 rounded up to 70.00, 50 % split -&gt; 35.00&quot;,1.0000,&quot;Each&quot;,35.0000,0,0,&quot;ID List: INVLINES:154, INVOICES:108&quot;,2019/05/11,&quot;Robert `G` Rackl&quot;,&quot;Bergseth Field&quot;,&quot;&quot;,&quot;&quot;,&quot;10001&quot;,0,&quot;&quot;,0,0</code></pre></div><p>Line 6:<br /></p><div class="codebox"><pre><code></code></pre></div><p><strong>Problem:</strong> Doing a &#039;trial&#039; import of this file. After reading lines 2, 3, and 4 ok (green messages echoing&nbsp; the data in the lines), line 5 is ignored, i.e., there is no response to it. When I exchange lines 2/3 with lines 4/5 the same thing happens: what was in line 5 is now in line 3 and gets echoed in a green message, but what was in line 3 is now in line 5 and is ignored. When I try to make the input .csv file longer I get the same problem: first 3 lines are echoed in green, remainder is ignored.</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-11-29T21:14:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38681#p38681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38555#p38555" />
			<content type="html"><![CDATA[<p>Thanks guys.<br />ROBERTRACKL / apmuthu<br />I’ve been able to make my FA import direct sales invoice to work properly by applying the modification done by ROBERTRACKL.<br />More power and keep safe.</p>]]></content>
			<author>
				<name><![CDATA[msanjuan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45069</uri>
			</author>
			<updated>2020-10-30T14:42:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38555#p38555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37518#p37518" />
			<content type="html"><![CDATA[<p>We have a resolution, but some kind of software change in the import_transaction module is still required to handle &#039;prepayment amount&#039;.</p><p>I started over the installation of FrontAccounting by doing a manual install instead of using softaculous at InMotion Hosting (see posts 2 and 3 of https://frontaccounting.com/punbb/viewtopic.php?id=8789 ). I installed and activated the import_transactions module; gave several roles access to the import_transactions module. Importing journal entries worked well. The attempt to import a direct sales invoice failed, but in a different way from before: even during the trial import, the progress bar kept going indefinitely without messages on the screen or in the FA error log. As described before, I modified line 220 of import_transactions.php to read:</p><p>$_SESSION[&#039;Items&#039;] = new import_sales_cart($type, 0, false); $_SESSION[&#039;Items&#039;]-&gt;prep_amount = 0.0E0;</p><p>i.e., setting the prepay amount to zero. After that, the direct sales invoice import functioned properly.</p><p>Setting the prepay amount to zero is ok for my installation, but most likely not for everyone interested in this module.</p><p>Now - - on to solving the next problem!=D</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-05-15T00:40:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37518#p37518</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37404#p37404" />
			<content type="html"><![CDATA[<p>The last error means that the query did not yield any records.</p><p>If possible, try to revert to using PHP 5.6 instead of your 7.3 and see if that solves the issue.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-05-05T15:08:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37404#p37404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390" />
			<content type="html"><![CDATA[<p>Thank you for the updated import_transactions module!</p><p>After using it to replace the import module, I still had the prep_amount error. After some code analysis (I am not a PHP programmer but know other languages [C, VB, C#] I modified line 220 in import_transaction.PHP to read</p><p>&nbsp; &nbsp; $_SESSION[&#039;Items&#039;] = new import_sales_cart($type, 0, false); $_SESSION[&#039;Items&#039;]-&gt;prep_amount = 0.0E0;</p><p>because a zero prepay amount is fine for me for the time being. This got me past the error.</p><p>I then had to change in the csv input file the values for dimension_id and dimension2_id from strings to integers (between &quot;Retail&quot; and &quot;5551&quot;). The file now looks like this (2 lines):</p><p>customer_id,branch_No,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,<br />unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex_rate,<br />prep_amount<br />1,1,&quot;2345&quot;,&quot;2020/04/11&quot;,2,&quot;Retail&quot;,1,2,&quot;5551&quot;,&quot;Pattern tow&quot;,1,&quot;Each&quot;,32.00,0,0,&quot;DEF&quot;,&quot;2020/04/11&quot;,&quot;Cust&quot;,&quot;Bergseth Field&quot;,&quot;206 660 0019&quot;,&quot;info@pugetsoundsoaring.org&quot;,&quot;001&quot;,0,&quot;Robertos pattern tow&quot;,1,0</p><p>Unfortunately, the import still fails without reporting an error in the PHP error log: In the UI, green messages say that the import was successful. Checking the database - table 1_sales_orders has one record with contents from the csv import file. But table 1_sales_order_details remains empty; a sales order inquiry shows no records.</p><p>There is an error reported in the PHP log, but I believe it is unrelated:<br />[03-May-2020 09:41:35 America/Los_Angeles] 1:admin:import_transactions.php:399: fclose() expects parameter 1 to be resource, null given</p><p>There are no errors reported in the system log that logs the GET and POST requests for the FA website.</p><p>What should I do next, please?</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-05-03T18:16:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37389#p37389" />
			<content type="html"><![CDATA[<p>Repo has been updated. Thank you.<br />J.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2020-05-03T13:28:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37389#p37389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37382#p37382" />
			<content type="html"><![CDATA[<p>Hello,</p><p>I will ask Janusz to do that.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-05-01T04:44:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37382#p37382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37379#p37379" />
			<content type="html"><![CDATA[<p>It is clear that you are using an old version of the import_transactions module. Get the latest from <a href="https://github.com/apmuthu/FA24extensions/tree/master/Extensions/import_transactions"><strong>here</strong></a>.</p><p>@joe: Please update the official repo with the one from my GitHub repo (attached herein) for this extension.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-04-30T18:06:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37379#p37379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37373#p37373" />
			<content type="html"><![CDATA[<p>I removed the extra spaces in the import file SampleSingleLineSalesOrder.csv, and I added a field at the end for prep_amount with a value of 0; it now looks like this:</p><p>customer_id,branch_No,reference,date,payment_id,sales_type_name,dimension_id,dimension2_id,item_code,item_description,quantity,unit,price,discountpercentage,freightcost,delfrom,deldate,delto,deladdress,contactphone,email,custref,shipvia,comments,ex_rate,prep_amount<br />1,1,&quot;2345&quot;,&quot;2020/04/11&quot;,2,&quot;Retail&quot;,&quot;&quot;,&quot;&quot;,&quot;5551&quot;,&quot;Pattern tow&quot;,1,&quot;Each&quot;,32.00,0,0,&quot;DEF&quot;,&quot;2020/04/11&quot;,&quot;Cust&quot;,&quot;Bergseth Field&quot;,&quot;206 660 0019&quot;,&quot;info@pugetsoundsoaring.org&quot;,&quot;001&quot;,0,&quot;Robertos pattern tow&quot;,1,0</p><p>The green display of processing shows that the last field in the import .cvs file is ignored (see picture SalesOrderImportProcessing.gif ( https://1drv.ms/u/s!AvoFL8QrGVaTsFnatwmQ9QMfyZfY?e=Rebdze )). The INSERT error in the log file is exactly the same as before.</p><p>File import_transactions.php has this statement in line 198:<br />&nbsp; &nbsp; display_notification_centered(_(&quot;Processing line $line ($customer_id, $branchNo, $reference, $date, $payment_id, $sales_type_name, $dimension_id, $dimension2_id, $item_code, $item_description, $quantity, $unit, $price, $discountpercentage, $freightcost, $delfrom, $deldate, $delto, $deladdress, $contactphone, $email, $custref, $shipvia, $comments, $exrate) in import file &#039;{$_FILES[&#039;imp&#039;][&#039;name&#039;]}&#039;)&quot;));</p><p>which looks like it produces the output shown in file SalesOrderImportProcessing.gif ( https://1drv.ms/u/s!AvoFL8QrGVaTsFnatwmQ9QMfyZfY?e=Rebdze ), i.e., there is no field for prep_amount. The later calls to copy_to_cart (lines 224 and 235) also do not have an argument for prep_amount. It&#039;s not surprising then that a value for this field is missed later on when we try to write to the database.</p><p>Might I have uncovered a bug, or am I working with the wrong version of the import module?<br />As I said earlier, I updated module import_transactions according to https://frontaccounting.com/punbb/viewtopic.php?pid=31790#p31790 (post by apmuthu at 2017-12-25 12:50:55 am, post ID 117 in that thread) which did fix another error I had run into.</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-04-29T20:30:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37373#p37373</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37363#p37363" />
			<content type="html"><![CDATA[<p>There are several spaces preceding each ID field. Also the <strong>prep_amount</strong> is the last field according to your insert statement with an empty value and hence the error.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-04-29T17:41:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37363#p37363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of Direct Sales Invoice from csv fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37337#p37337" />
			<content type="html"><![CDATA[<p>Here is the error:</p><p>[27-Apr-2020 13:35:45 America/Los_Angeles] &lt;b&gt;DATABASE ERROR :&lt;/b&gt; order Cannot be Added&lt;br&gt;error code : 1366&lt;br&gt;error message : Incorrect double value: &#039;&#039; for column `pugets12_fron528`.`1_sales_orders`.`prep_amount` at row 1&lt;br&gt;sql that failed was : INSERT INTO 1_sales_orders (order_no, type, debtor_no, trans_type, branch_code, customer_ref, reference, comments, ord_date,<br />&nbsp; &nbsp; &nbsp; &nbsp; order_type, ship_via, deliver_to, delivery_address, contact_phone,<br />&nbsp; &nbsp; &nbsp; &nbsp; freight_cost, from_stk_loc, delivery_date, payment_terms, total, prep_amount)<br />&nbsp; &nbsp; &nbsp; &nbsp; VALUES (&#039;1&#039;,&#039;0&#039;,&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&#039;, &#039;30&#039;,&#039;&nbsp; &nbsp; &nbsp; &nbsp; 1&#039;, &#039;2345&#039;,&#039;auto&#039;,&#039;Robertos pattern tow&#039;,&#039;2020-04-11&#039;, &#039;1&#039;, &#039;&nbsp; &nbsp; &nbsp; &nbsp; 0&#039;,&#039;Cust&#039;,&#039;Bergseth Field&#039;, &#039;206 660 0019&#039;, &#039;0&#039;, &#039;DEF&#039;, &#039;2020-04-11&#039;,&#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2&#039;,&#039;32&#039;,&#039;&#039;)&lt;br&gt;&lt;br&gt;&lt;br&gt;</p><p>But the template .csv file does not contain a field for prep_amount .</p>]]></content>
			<author>
				<name><![CDATA[ROBERTRACKL]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42664</uri>
			</author>
			<updated>2020-04-27T20:49:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37337#p37337</id>
		</entry>
</feed>
