<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7548&amp;type=atom" />
	<updated>2018-06-10T19:39:39Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7548</id>
		<entry>
			<title type="html"><![CDATA[Re: Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31843#p31843" />
			<content type="html"><![CDATA[<p>Map the JSON / XML output to the FrontAccounting table fields / computed fields in English using the Standard US chart of accounts.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-10T19:39:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31843#p31843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31823#p31823" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[amarenco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42605</uri>
			</author>
			<updated>2018-06-09T06:07:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31823#p31823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Generating each invoice like xml to TAX GOVERMENT server in my country]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31822#p31822" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[amarenco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42605</uri>
			</author>
			<updated>2018-06-09T06:05:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31822#p31822</id>
		</entry>
</feed>
