<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Import of a year of GL Transactions]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8428&amp;type=atom" />
	<updated>2019-10-02T15:30:35Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8428</id>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36163#p36163" />
			<content type="html"><![CDATA[<p>Regarding the import_transactions extension,<br /></p><div class="quotebox"><blockquote><p>I tried the former and I get a &quot;Green&quot; result but nothing actually gets imported.</p></blockquote></div><p>Did you unclick the trial run box?</p><p>If so, try to import the examples (or similar) and see if that works.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2019-10-02T15:30:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36163#p36163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36161#p36161" />
			<content type="html"><![CDATA[<p>Export out a few Journal Transactions and then try to import them back with some date and number changes into a dummy install. Also try to upgrade your FA install to the latest in a test environment and see what happens.</p><p>We still need to resolve the missing <strong>add_bank_transaction()</strong> function in the core.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-02T15:06:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36161#p36161</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36159#p36159" />
			<content type="html"><![CDATA[<p>Hi. Can you suggest how I might address the&nbsp; event_date problem please?</p>]]></content>
			<author>
				<name><![CDATA[BarryHavenga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41416</uri>
			</author>
			<updated>2019-10-02T11:27:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36159#p36159</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36156#p36156" />
			<content type="html"><![CDATA[<p>The said error occurs in the <strong>function add_journal()</strong> defined and called in <strong>write_journal_entries()</strong> in <strong>gl/includes/db/gl_journal.inc</strong> where the full complement of 10 arguments are used. Other functions too call it through:<br /></p><div class="codebox"><pre><code>add_supp_invoice() &lt;= purchasing/includes/db/invoice_db.inc
void_supp_invoice() &lt;= purchasing/includes/db/invoice_db.inc
add_wo_costs_journal() &lt;= manufacturing/includes/db/work_order_costing_db.inc
handle_negative_inventory() &lt;= includes/db/inventory_db.inc
add_exchange_variation() &lt;= gl/includes/db/gl_db_banking.inc
add_cust_supp_revaluation &lt;= gl/includes/db/gl_db_banking.inc
delete_this_fiscalyear() &lt;= admin/db/fiscalyears_db.inc</code></pre></div><p>None of the above functions are directly called in the extension file <strong>modules/import_multijournalentries/import_multijournalentries.php</strong>.</p><p>The file <strong>/gl/includes/db/gl_db_trans.inc</strong> is included in the above extension file which defines the function <strong>add_gl_trans()</strong> which has many more arguments but does not use the <em>event_date</em> parameter.</p><p>The functions called by the said extension file of importance are:<br /></p><div class="codebox"><pre><code>write_journal_entries() &lt;= gl/includes/db/gl_journal.inc
add_bank_transaction() &lt;= ** (Cannot find it defined anywhere - not even in FA 2.3.x) **</code></pre></div><p>However, these functions are defined:<br /></p><div class="codebox"><pre><code>add_bank_transfer() &lt;=gl/includes/db/gl_db_banking.inc
add_bank_trans() &lt;= gl/includes/db/gl_db_bank_trans.inc</code></pre></div><p>and both do not match the number and type of arguments used in the call.</p><p>The missing function <strong>add_bank_transaction()</strong> can be compared to the <strong>function write_bank_transaction()</strong> defined in <strong>gl/includes/db/gl_db_banking.inc</strong> but even this does not match the arguments used in the call.</p><p>@joe: where and how do we define the <strong>function add_bank_transaction()</strong> now?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-02T09:03:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36156#p36156</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36154#p36154" />
			<content type="html"><![CDATA[<p>Hello. I tried what you suggested and it did not work and the identical error message appears.</p><p>The specified CSV format for a Multiple Journal Entry import is:<br /> entryid&nbsp; &nbsp; date&nbsp; &nbsp;&nbsp; reference&nbsp; &nbsp;&nbsp; accountcode&nbsp; &nbsp; dimension1&nbsp; &nbsp; dimension2&nbsp; &nbsp; amount&nbsp; &nbsp; memo<br />........................where the date refers to the transaction date.&nbsp; All the transaction dates are populated.</p><p>In the literature there is no requirement for an event date, although I see the SQL insert contains a number of additional columns.&nbsp; Can you advise me how to amend the file so as to insert a dummy event_date please?</p>]]></content>
			<author>
				<name><![CDATA[BarryHavenga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41416</uri>
			</author>
			<updated>2019-10-02T06:58:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36154#p36154</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36149#p36149" />
			<content type="html"><![CDATA[<p>Wherever you have an <strong>event_date</strong> field as blank / null, it appears that your MySQL / PHP is not happy with it and the normal &#039;0000-00-00&#039; is not acceptable as well and it does not degrade gracefully as earlier versions of PHP/MySQL did. Set the strict date off in MySQL and restart MySQL and Apache:<br />https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html<br />https://www.liquidweb.com/kb/how-to-disable-mysql-strict-mode/</p><p>Otherwise, make the existing settings happy by populating the import file with some date like 1970-01-01 wherever <strong>event_date</strong> is blank and then import it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-10-01T16:19:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36149#p36149</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36144#p36144" />
			<content type="html"><![CDATA[<p>I tried Import Multiple Journal Entries with debug on and got the following:</p><p>Undefined variable: trans_type in file: /var/www/html/accounts/modules/import_multijournalentries/import_multijournalentries.php at line 163<br />DATABASE ERROR : cannot add journal entry<br />error code : 1292<br />error message : Incorrect date value: &#039;&#039; for column `ppt`.`1_journal`.`event_date` at row 1<br />sql that failed was : INSERT INTO 1_journal( `type`,`trans_no`, `amount`, `currency`, `rate`, `reference`, `source_ref`, `tran_date`, `event_date`, `doc_date`) VALUES(&#039;0&#039;,&#039;4&#039;,&#039;3499.79&#039;,&#039;ZAR&#039;,&#039;1&#039;,&#039;GLImp1&#039;,&#039;&#039;,&#039;2018-03-01&#039;,&#039;&#039;,&#039;&#039;)</p><p>The import is complaining about the date value but I tried every permutation of date and it still does not work.</p>]]></content>
			<author>
				<name><![CDATA[BarryHavenga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41416</uri>
			</author>
			<updated>2019-10-01T15:56:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36144#p36144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Import of a year of GL Transactions]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36141#p36141" />
			<content type="html"><![CDATA[<p>Hi. Which would be the best module to achieve the import of a year&#039;s worth of GL transactions into FA? (Import transactions or Import Multiple Journal entries).</p><p>I tried the former and I get a &quot;Green&quot; result but nothing actually gets imported.</p><p>BTW: when invoking Import Transactions in FA 2.4.7 Theme Dynamic, the module fails to load due to a spelling mistake in the code:/modules/import_transations/import_transactions.php&nbsp; rather than the required /modules/import_transactions/import_transactions.php. </p><p>I am not sure whether other themes are affected or where to fix it.</p>]]></content>
			<author>
				<name><![CDATA[BarryHavenga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41416</uri>
			</author>
			<updated>2019-10-01T13:53:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36141#p36141</id>
		</entry>
</feed>
