<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — API for Direct Invoice]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4091</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4091&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in API for Direct Invoice.]]></description>
		<lastBuildDate>Thu, 16 May 2013 10:53:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: API for Direct Invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=16675#p16675</link>
			<description><![CDATA[<div class="quotebox"><cite>itronics wrote:</cite><blockquote><p>You have to &#039;000001&#039; item defined first.<br />Janusz</p></blockquote></div><p>Hi Janusz,</p><p>It is defined.</p>]]></description>
			<author><![CDATA[null@example.com (Zilvermeeuw)]]></author>
			<pubDate>Thu, 16 May 2013 10:53:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=16675#p16675</guid>
		</item>
		<item>
			<title><![CDATA[Re: API for Direct Invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=16674#p16674</link>
			<description><![CDATA[<p>You have to &#039;000001&#039; item defined first.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 16 May 2013 10:49:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=16674#p16674</guid>
		</item>
		<item>
			<title><![CDATA[API for Direct Invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=16663#p16663</link>
			<description><![CDATA[<p>I am writing an extension on the Simple API to add &quot;Add Direct Invoice&quot; possibility. I want to call this from the Virtuemart webshop.</p><p>According to <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=5789#p5789">forum link</a> I have the following code:<br /></p><div class="codebox"><pre><code>include_once($path_to_root . &quot;/sales/includes/cart_class.inc&quot;);
// Create cart object
$_SESSION[&#039;Items&#039;] = new cart(ST_SALESINVOICE, 0 );

// add customer
$br = get_branch(4); // Use a general customer with id=4
$_POST[&#039;customer_id&#039;] = $br[&#039;debtor_no&#039;];
$Ajax-&gt;activate(&#039;customer_id&#039;);

// Add items to cart
add_to_order($_SESSION[&#039;Items&#039;], &#039;000001&#039;, 1, 12, 0, &#039;&#039; );</code></pre></div><p>But no items are added to the card.</p><p>Any tips to solve this?</p>]]></description>
			<author><![CDATA[null@example.com (Zilvermeeuw)]]></author>
			<pubDate>Thu, 16 May 2013 06:42:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=16663#p16663</guid>
		</item>
	</channel>
</rss>
