<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7548</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7548&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Generating each invoice like xml to TAX GOVERMENT server in my country.]]></description>
		<lastBuildDate>Sun, 10 Jun 2018 19:39:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31843#p31843</link>
			<description><![CDATA[<p>Map the JSON / XML output to the FrontAccounting table fields / computed fields in English using the Standard US chart of accounts.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 10 Jun 2018 19:39:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31843#p31843</guid>
		</item>
		<item>
			<title><![CDATA[Re: Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31823#p31823</link>
			<description><![CDATA[<p>THIS IS MY CODE SPECIFIC WORKING GOOD ALONE</p><div class="codebox"><pre><code>function aplicafe() {
    //API Url
$url = &#039;https://XXXX/api_recepcion.php&#039;;
 
//Initiate cURL.
$ch = curl_init($url);
 
 //SQL DE CONSULTA   PARA ARMAR   $strjson
    
    $strjson = &#039;{
  &quot;usuario&quot;: &quot;XXXXXX@XXXXXX.net&quot;,
  &quot;clave&quot;: &quot;XXXXXXX&quot;,
  &quot;cedula&quot;: &quot;111111111&quot;,
  &quot;sucursal&quot;: &quot;001&quot;,
  &quot;cli_nombre&quot;: &quot;John  Doe&quot;,
  &quot;cli_cedula&quot;: &quot;304490949&quot;,
  &quot;cli_tipo&quot;: &quot;01&quot;,
  &quot;plazo&quot;: &quot;0&quot;,
  &quot;moneda&quot;: &quot;2&quot;,
  &quot;mediopago&quot;: &quot;4&quot;,
  &quot;tipopago&quot;: &quot;1&quot;,
  &quot;documento&quot;: &quot;10&quot;,
  &quot;observación&quot;: &quot;&quot;,
  &quot;detalle&quot;: [
    {
      &quot;codigo&quot;: &quot;6&quot;,
      &quot;unidad&quot;: &quot;Sp&quot;,
      &quot;descripcion&quot;: &quot;Configuracion de sitio web &quot;,
      &quot;cantidad&quot;: &quot;1 &quot;,
      &quot;precio&quot;: &quot;10.00&quot;,
      &quot;descuento&quot;: 0,
      &quot;impuesto&quot;: 13,
      &quot;tipo&quot;: 2
    }
  ]
}&#039;;
    
    
    
//Encode the array into JSON.
$jsonDataEncoded = json_encode($strjson);
 
//Tell cURL that we want to send a POST request.
curl_setopt($ch, CURLOPT_POST, 1);
 
//Attach our encoded JSON string to the POST fields.
curl_setopt($ch, CURLOPT_POSTFIELDS, $strjson );
 
//Set the content type to application/json
curl_setopt($ch, CURLOPT_HTTPHEADER, array(&#039;Content-Type: application/json&#039;)); 
 
//Execute the request
$result = curl_exec($ch);
    return $result;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (amarenco)]]></author>
			<pubDate>Sat, 09 Jun 2018 06:07:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31823#p31823</guid>
		</item>
		<item>
			<title><![CDATA[Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31822#p31822</link>
			<description><![CDATA[<p>Hi,</p><p>In my country from next month we will be required to send XML to Government server asking code for validate legal invoice.&nbsp; </p><p>Several providers are doing this service like separate site for invoice. Nevertheless, this is not good for me, duplicate work.&nbsp; This is the reason I am looking for advice for include in code of frontaccounting for sending this info to API already created, and save time with only on software doing both works.&nbsp; I have code in PHP working very good with API in testing server, but when I add this code to actual invoicing code of frontaccounting, I cannot be able to realize complete process in destination server of testing.&nbsp; Can you let me know your opinion about important steps in my situation.&nbsp; Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (amarenco)]]></author>
			<pubDate>Sat, 09 Jun 2018 06:05:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31822#p31822</guid>
		</item>
	</channel>
</rss>
