<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Cannot Delete / Cancel invoice from api]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9505</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9505&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Cannot Delete / Cancel invoice from api.]]></description>
		<lastBuildDate>Tue, 02 Nov 2021 09:02:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Cannot Delete / Cancel invoice from api]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40198#p40198</link>
			<description><![CDATA[<p>Hi,</p><p>@DrCard</p><p>To &quot;delete&quot; an invoice you need to void the invoice.&nbsp; In src/Journal.php you&#039;ll see the implementation of delete which voids a transaction.&nbsp; This is on the endpoint &#039;/modules/api/journal/&#039;.</p><p>The tests are in tests/Journal_Tets.php which demonstrates a full Create Read Update Delete test cycle.</p><p>You&#039;ll need to do a little research on the $type parameter.&nbsp; I think &quot;10&quot; is for invoice from memory - not sure.</p><p>BTW, I was a contributor to the api back in 2018.</p>]]></description>
			<author><![CDATA[null@example.com (cambell)]]></author>
			<pubDate>Tue, 02 Nov 2021 09:02:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40198#p40198</guid>
		</item>
		<item>
			<title><![CDATA[Re: Cannot Delete / Cancel invoice from api]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40102#p40102</link>
			<description><![CDATA[<p>The Api is not officially taken to be a module. It was made with before. 2.4 and after that , there&nbsp; is no maintenance from the original developer. May be If you find him from github, knock him to get its updated version.</p><p>Or hopefully any other developer used it before. They will help you here.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 14 Oct 2021 16:48:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40102#p40102</guid>
		</item>
		<item>
			<title><![CDATA[Cannot Delete / Cancel invoice from api]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=40101#p40101</link>
			<description><![CDATA[<p>Hi .</p><p>I was trying to delete or cancel the invoice from api. </p><p>But i found out that the sample code has disabled the function for demonstrating how to delete with a message that it isn&#039;t implemented or tested fully. </p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; /* Delete is currently untested, and not implemented with standard FA<br />&nbsp; &nbsp; &nbsp; &nbsp; // Delete<br />&nbsp; &nbsp; &nbsp; &nbsp; $response = $client-&gt;delete(&#039;/modules/api/sales/&#039; . $id, array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;headers&#039; =&gt; TestEnvironment::headers()<br />&nbsp; &nbsp; &nbsp; &nbsp; ));<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;assertEquals(&#039;200&#039;, $response-&gt;getStatusCode());<br />&nbsp; &nbsp; &nbsp; &nbsp; $result = $response-&gt;getBody();<br />&nbsp; &nbsp; &nbsp; &nbsp; $result = json_decode($result);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; // List again<br />&nbsp; &nbsp; &nbsp; &nbsp; $response = $client-&gt;get(&#039;/modules/api/sales/&#039;, array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;headers&#039; =&gt; TestEnvironment::headers()<br />&nbsp; &nbsp; &nbsp; &nbsp; ));</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;assertEquals(&#039;200&#039;, $response-&gt;getStatusCode());<br />&nbsp; &nbsp; &nbsp; &nbsp; $result = $response-&gt;getBody();<br />&nbsp; &nbsp; &nbsp; &nbsp; $result = json_decode($result);</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $count2 = count($result);<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;assertEquals($count0, $count2);<br />&nbsp; &nbsp; &nbsp; &nbsp; */</p><p>I did further study. i tried to enable the code , It gave me error for loading the class AutoFacturaCore.php.inc .. Which isn&#039;t there int he project. </p><p>I need to know if there is any update on this</p>]]></description>
			<author><![CDATA[null@example.com (DrCard)]]></author>
			<pubDate>Thu, 14 Oct 2021 11:04:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=40101#p40101</guid>
		</item>
	</channel>
</rss>
