<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Import Transactions]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5396&amp;type=atom" />
	<updated>2022-01-21T03:25:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5396</id>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40515#p40515" />
			<content type="html"><![CDATA[<p>The said field <strong>sales_orders.prep_amount</strong> is defined as:<br /></p><div class="codebox"><pre><code>`prep_amount` double NOT NULL DEFAULT &#039;0&#039;,</code></pre></div><p>The default for <strong>double</strong> type field may not be accepted as 0 in your MySQL version or needs to be <strong>0.0</strong>. and / or the initialisation to be:<br /></p><div class="codebox"><pre><code>$this-&gt;prep_amount = 0.0;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-21T03:25:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40515#p40515</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40478#p40478" />
			<content type="html"><![CDATA[<p>Probably at one time mysql allowed implicit conversion of null into zero and now it doesn&#039;t, breaking the sales order import code.</p><p>I am not familiar with this code, but it appears that the extension&#039;s read function fails to call update_payments function, unlike the base code.&nbsp; So prep_amount is never set.&nbsp; This is a problem with the code.</p><p>If you don&#039;t care about the prep_amount feature, you could initialize it to zero in the constructor (__construct function in /var/www/nts/modules/import_transactions/includes/import_sales_cart_class.inc):</p><div class="codebox"><pre><code>$this-&gt;prep_amount = 0;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2022-01-12T12:58:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40478#p40478</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40476#p40476" />
			<content type="html"><![CDATA[<p>hi trying to import transaction but get the following error</p><p>[12-Jan-2022 03:01:40 Europe/Berlin] &lt;b&gt;DATABASE ERROR :&lt;/b&gt; &lt;br&gt;At file /var/www/nts/<strong>modules/import_transactions/includes/import_sales_cart_class.inc</strong>:321:&lt;br&gt;order Cannot be Added&lt;br&gt;error code : 1366&lt;br&gt;error message : Incorrect double value: &#039;&#039; for column `TECH360Live`.`0_sales_orders`.`prep_amount` at row 1&lt;br&gt;sql that failed was : <br /></p><div class="codebox"><pre><code>INSERT INTO 0_sales_orders (order_no, type, debtor_no, trans_type, branch_code, customer_ref, reference, comments, ord_date,
        order_type, ship_via, deliver_to, delivery_address, contact_phone,
        freight_cost, from_stk_loc, delivery_date, payment_terms, total, prep_amount)
        VALUES (&#039;3&#039;,&#039;0&#039;,&#039;1&#039;, &#039;30&#039;,&#039;1&#039;, &#039;113/2021&#039;,&#039;auto&#039;,&#039;&#039;,&#039;2021-10-05&#039;, &#039;1&#039;, &#039;1&#039;,&#039;Tropical Garments&#039;,&#039;&#039;, &#039;&#039;, &#039;0&#039;, &#039;1&#039;, &#039;2021-10-05&#039;,&#039;4&#039;,&#039;61.5&#039;,&#039;&#039;)</code></pre></div><p>&lt;br&gt;&lt;br&gt;&lt;br&gt;</p><br /><p>any help would be of great assistance.</p>]]></content>
			<author>
				<name><![CDATA[vk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45936</uri>
			</author>
			<updated>2022-01-12T02:05:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40476#p40476</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40421#p40421" />
			<content type="html"><![CDATA[<p>A backup and restore may suffice better when no other users are trying to enter data.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-02T02:08:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40421#p40421</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40381#p40381" />
			<content type="html"><![CDATA[<p>When I run into corruption issues (almost always my own doing), I usually try to use the usual FA web interface to remove the transactions, because it usually is tolerant of the corruption and often cleans it up correctly.&nbsp; And if it leaves any residue, the residue is usually easy to remove with mysql or phpadmin.</p><p>This is often easier than trying to repair the damage.&nbsp; Afterwards, you would then recreate the transactions correctly.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2021-12-16T19:35:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40381#p40381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40380#p40380" />
			<content type="html"><![CDATA[<p>Thanks for response Braath Waate...</p><p>I didn&#039;t use Journal Entries as I should have done (I was being lazy and thinking that it would save having to duplicate every line in the original file without considering that it would not create the bank account entries.) I think it is expected behaviour.</p><p>There are no missing entries in gl_trans - all correct. But there are only bank account entries in bank_trans for one of the two bank accounts.</p><p>So I am trying to figure out what I need to do to correct my error, rather than report or fix a bug.</p><p>I don&#039;t use FA on a regular basis, so every year I have to remember/re-learn all my previous errors, some aspects are as intuitive as I expect (I am not an accountant)</p>]]></content>
			<author>
				<name><![CDATA[drgrumpy]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40696</uri>
			</author>
			<updated>2021-12-16T17:09:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40380#p40380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40378#p40378" />
			<content type="html"><![CDATA[<p>Hmm, if you tried journal entries for bank transfers as I suggested (which works for me), and that resulted in the data corruption that you experienced, then that would be a bug.</p><p>Can you post the the input file, or at least the relevant part, that caused the missing g/l entries?&nbsp; If you do, and I can confirm the bug, I may be able to fix it.</p><p>I also recommend commenting out:<br />// error_reporting(E_ALL);</p><p>Oddly enough, errors and notices are not shown otherwise.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2021-12-16T16:33:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40378#p40378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40377#p40377" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>bradlanier wrote:</cite><blockquote><p>My bank transactions include transfers between bank accounts.&nbsp; Is there any way to make this work with Import Transactions?</p></blockquote></div><p>I just made the stupid mistake of trying to do the above with import transactions...</p><p>So now I have a situation where the gl_trans entries are correct for both bank accounts, but the entries in only one of the bank accounts are correct (gl and bank entries match) but for the other account the gl entries are missing from the bank account....</p><p>Any suggestions how I can manually recover, e.g. could I just add the required entries into the bank_trans table?</p>]]></content>
			<author>
				<name><![CDATA[drgrumpy]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=40696</uri>
			</author>
			<updated>2021-12-16T13:19:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40377#p40377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40126#p40126" />
			<content type="html"><![CDATA[<p>Hi @lawmaina78, You managed to fix the import problem?</p>]]></content>
			<author>
				<name><![CDATA[jhernandezmyh]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41736</uri>
			</author>
			<updated>2021-10-18T16:47:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40126#p40126</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39941#p39941" />
			<content type="html"><![CDATA[<p>Using FA version 2.4.10, I have struggled with this module for two days now without success, tried variations of supplied templates, the progress bar runs and shuts immediately, nothing showing, even with SQL debugging set to on.</p>]]></content>
			<author>
				<name><![CDATA[lawmaina78]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14031</uri>
			</author>
			<updated>2021-08-25T00:23:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39941#p39941</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39102#p39102" />
			<content type="html"><![CDATA[<p>Quick Entries are to avoid importing transactions for rarely occurring transactions with a standard set of entries. They can be analysed as an anatomy of the transaction in the backup sql differences before and after a transaction and mimicked as calculated and suitably formed SQL constructs for direct application on the database.</p><p>Quick Entries is an integral part of FA and not an external module.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2021-02-06T11:20:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39102#p39102</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39090#p39090" />
			<content type="html"><![CDATA[<p>Thanks, I&#039;ll try that.&nbsp; Amputhu, why did you mention quick entries?&nbsp; Were you thinking of the bank_import module that supports that?&nbsp; Does that module work pretty well?</p>]]></content>
			<author>
				<name><![CDATA[bradlanier]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45844</uri>
			</author>
			<updated>2021-02-04T02:12:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39090#p39090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39085#p39085" />
			<content type="html"><![CDATA[<p>Use General Journal Processing, e.g.</p><p>000001/99,03/28/1998,&quot;Bank Account 1:Funds Transfer&quot;,-500.00,3300,,,,,,<br />000001/99,03/28/1998,&quot;Bank Account 2:Funds Transfer&quot;,500.00,1060,,,,,,</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2021-02-03T01:09:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39085#p39085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39084#p39084" />
			<content type="html"><![CDATA[<p>Don&#039;t know....I have 7 years of statements that I need to import and am trying to avoid manual keying.&nbsp; There are 10 different accounts involved, and there are many account transfers.&nbsp; Would be great if a bank transaction import supported bank transfers as well....can&#039;t quite figure out how to accomplish this in the data imports.</p>]]></content>
			<author>
				<name><![CDATA[bradlanier]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45844</uri>
			</author>
			<updated>2021-02-03T00:53:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39084#p39084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39072#p39072" />
			<content type="html"><![CDATA[<p>Will Quick Entries do the job?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2021-01-31T08:47:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39072#p39072</id>
		</entry>
</feed>
