Skip to content

Commit

Permalink
Merge pull request #164 from sayerpro/SoporteFEE
Browse files Browse the repository at this point in the history
Se agrega soporte para FEE
  • Loading branch information
JeanCarlosChavarriaHughes authored Apr 18, 2024
2 parents 48c47e4 + 1af9b38 commit 6382ca4
Show file tree
Hide file tree
Showing 7 changed files with 723 additions and 100 deletions.
7 changes: 5 additions & 2 deletions api/contrib/check/check.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function libxml_display_errors()
}

$tipoDoc = params_get('tipoDocumento');
$tipos = array("FE", "ND", "NC", "TE", "CCE", "CPCE", "RCE","FEC");
$tipos = array("FE", "ND", "NC", "TE", "CCE", "CPCE", "RCE","FEC, FEE");

grace_debug($tipoDoc);
if (in_array($tipoDoc, $tipos))
Expand All @@ -69,7 +69,7 @@ function libxml_display_errors()
{
case 'FE': //Factura Electronica
{
// Enable user error handling
// Enable user error handling
libxml_use_internal_errors(true);

$xml = new DOMDocument();
Expand Down Expand Up @@ -103,6 +103,9 @@ function libxml_display_errors()
case 'FEC': // Factura Electronica de Compra
$tipoDocumento = "08";
break;
case 'FEE': // Factura Electronica de Exportación
$tipoDocumento = "09";
break;
default:
break;
}
Expand Down
5 changes: 4 additions & 1 deletion api/contrib/clave/clave.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function getClave($tipoDocumento = "", $tipoCedula = "", $cedula = "", $situacio
}

$tipoDoc = params_get('tipoDocumento');
$tipos = array("FE", "ND", "NC", "TE", "CCE", "CPCE", "RCE","FEC");
$tipos = array("FE", "ND", "NC", "TE", "CCE", "CPCE", "RCE","FEC", "FEE");
grace_debug($tipoDoc);
if (in_array($tipoDoc, $tipos))
{
Expand Down Expand Up @@ -177,6 +177,9 @@ function getClave($tipoDocumento = "", $tipoCedula = "", $cedula = "", $situacio
case 'FEC': // Factura Electronica de Compra
$tipoDocumento = "08";
break;
case 'FEE': // Factura Electronica de Exportación
$tipoDocumento = "09";
break;
default:
break;
}
Expand Down
Loading

0 comments on commit 6382ca4

Please sign in to comment.