<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Import Transactions Multi Item Sales]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8136</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8136&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Import Transactions Multi Item Sales.]]></description>
		<lastBuildDate>Fri, 21 Jun 2019 21:24:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35282#p35282</link>
			<description><![CDATA[<p>@Denis</p><p>I made a new <a href="https://github.com/braathwaate/FA24extensions/blob/master/Extensions/import_transactions/import_transactions.php">version</a> with support for blank/+ references in multiline sales orders which address #1 and #2.&nbsp; I didn&#039;t run into #3.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Fri, 21 Jun 2019 21:24:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35282#p35282</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35268#p35268</link>
			<description><![CDATA[<p>Noticed your version has been merged in to FA24Extensions library. Tried multi line sales invoice import with blank references - came across couple of issues there:</p><p>1. $Refs-&gt;get_next($type) seems to return the same document number until transaction is committed;<br />2. block of code to get the number document number is too late (lines 274-277 in import_transactions.php), by the time process reaches it, document has already been created. Thinking it should be soon after line 202, after list function is called but before $reference is tested in line 208;<br />3. $_SESSION[&#039;Items&#039;]-&gt;write(0); (line 212 in import_transactions.php) eventually calls function add_sales_order(&amp;$order), which tries to insert sales order, but sales_type and prep_amount variables are not set in $order object, so fails there as well</p><p>Question:<br />Is there a way to get several new document numbers in the middle of transaction before commit?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Thu, 20 Jun 2019 09:03:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35268#p35268</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34866#p34866</link>
			<description><![CDATA[<p>Yes, thats the idea.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Fri, 03 May 2019 14:53:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34866#p34866</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34865#p34865</link>
			<description><![CDATA[<p>I see what you have done:<br />- blank reference &quot;&quot; means get new number, <br />- non &quot;+&quot; reference means use this value as reference<br />- &quot;+&quot; reference means second, third, n-th lines of the same document<br />In other words - you only specify document number on the first line.</p><p>This way you can mix automatic numbers and given references in the same file, right?</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Fri, 03 May 2019 13:15:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34865#p34865</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34859#p34859</link>
			<description><![CDATA[<p>That would be one way of doing it.&nbsp; I guess I prefer the way I coded it though, because no extra boolean switch is needed.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Thu, 02 May 2019 18:37:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34859#p34859</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34858#p34858</link>
			<description><![CDATA[<p>I am thinking to still use reference from CSV file to detect a new document, store it on some memo (external reference) field on sales invoice, but always get a new sales invoice number for each new sales invoice being imported.<br />May be add a Boolean switch to Import Transactions to indicate whether to use invoice number from CSV or generate new.<br />What do you think?</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Thu, 02 May 2019 14:09:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34858#p34858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34855#p34855</link>
			<description><![CDATA[<p>Well I guess that won&#039;t work, will it?&nbsp; Successive lines need some kind of continuation symbol for the reference field.&nbsp; I updated my fork to use &#039;+&#039;.&nbsp; &nbsp;However, this code is 2.4 based and might not work in 2.3.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Thu, 02 May 2019 11:06:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34855#p34855</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34854#p34854</link>
			<description><![CDATA[<p>Thanks Braath<br />FA 2.3.24<br />Import Transactions 2.3.24-1</p><p>How do you deal with multi line invoices if reference is left blank?</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Thu, 02 May 2019 09:24:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34854#p34854</guid>
		</item>
		<item>
			<title><![CDATA[Re: Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34852#p34852</link>
			<description><![CDATA[<p>What FA version are you using?&nbsp; &nbsp;In my <a href="https://github.com/braathwaate/FA24extensions/blob/master/Extensions/import_transactions/import_transactions.php">fork</a>, if reference number is left blank in the csv file, import_transactions generates the reference number automatically.</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Wed, 01 May 2019 19:20:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34852#p34852</guid>
		</item>
		<item>
			<title><![CDATA[Import Transactions Multi Item Sales]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=34851#p34851</link>
			<description><![CDATA[<p>When using Import Transactions last sales invoice number gets updated and then subsequently used by manual Direct Sales invoice. This causes a problem at times if Import is run, then few Direct Sales Invoices created manually, then another Import is run. Since FA has advanced sales invoice numbers second Import may try to import same references.</p><p>Is there any way to either not update last used sales invoice number when running Import Transaction or ignore reference column from Import Transactions and let FA generate Sales Invoice number when importing (as if it was a manual Direct Sales invoice)? The latter is preferred.</p>]]></description>
			<author><![CDATA[null@example.com (Denis)]]></author>
			<pubDate>Wed, 01 May 2019 17:18:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=34851#p34851</guid>
		</item>
	</channel>
</rss>
