name,account_code,account_description,account_id,account_type,opening_balance,credit_total,debit_total,balance,is_debit,closing_balance,account.CF.Naturaleza,account.CF.Tipo SAT,account.CF.Codigo del SAT,account.CF.Nombre de Cuenta SAT 101-00-000 FONDO FIJO,101-00-000,,2340388000029855715,cash,0.00,0.00,12431.72,12431.72,true,12431.72,Deudora,Acumulativa,101, 101-01-000 FONDO FIJO DE CAJA,101-01-000,,2340388000003218331,other_current_asset,482057.29,0.00,2694.53,2694.53,true,484751.82,Deudora,Detalle,101.01, 101-02-000 FONDO FIJO DLLS,101-02-000,,2340388000003218336,other_current_asset,962236.19,0.00,0.00,0.00,true,962236.19,Deudora,Detalle,101.01, 101-03-000 CAJA (B),101-03-000,It is a small amount of cash that is used to pay your minor or casual expenses rather than writing a check.,2340388000000000361,cash,468673.13,0.00,0.00,0.00,true,468673.13,Deudora,Detalle,101.01, 101-04-000 CAJA MXN CG,101-04-000,,2340388000082208415,cash,11460.00,0.00,0.00,0.00,true,11460.00,Deudora,Detalle,101.01, 101-05-000 CAJA USD CG,101-05-000,,2340388000082208426,cash,9829.34,0.00,0.00,0.00,true,9829.34,Deudora,Detalle,101.01, 101-06-000 CAJA EUR CG,101-06-000,,2340388000082208433,cash,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,101.01, 103-00-000 BANCOS,103-00-000,,2340388000003218341,bank,0.00,0.00,0.00,0.00,true,0.00,,Acumulativa,102, 103-01-000 NACIONAL,103-01-000,,2340388000003218346,bank,0.00,0.00,0.00,0.00,true,0.00,,Detalle,102.01, 103-01-001 SCOTIABANK 9131396,103-01-001,"AROCHI & LINDNER SC AVENIDA INSURGENTES SUR 1605 PISO 2 BENI SAN JOSE INSURGENTES BENITO JUAREZ C.P. 03900 C.R. 15000 ENVIAR SUC 001078",2340388000005628315,bank,1085095.19,28919265.08,28653396.58,-265868.50,false,819226.69,,,, 103-01-002 BANAMEX 6905197590,103-01-002,"AROCHI & LINDNER SC AVE INSURGENTES SUR NO 1605 PISO 20 SAN JOSE INSURGENTES CH 03900 BENITO JUAREZ, CIUDAD DE MEXICO C.R.03901 Suc. 5995 TORRE CITI CENTER AV INSURGENTES SUR # 1602 - PB CREDITO CONSTRUCTOR",2340388000005628333,bank,123193.64,42119697.92,42651241.81,531543.89,true,654737.53,,,, 103-01-003 SANTANDER 92000798126,103-01-003,"AROCHI & LINDNER SC INSURGENTES SUR 1605 PISO 20 SAN JOSE INSURGENTES, BENITO JUAREZ MEXICO, CIUDAD DE MEXICO C.P. 03900 C.R. 03901",2340388000005628341,bank,60217.42,1218544.42,1196318.84,-22225.58,false,37991.84,,,, 103-01-004 BBVA 158536694,103-01-004,"AROCHI & LINDNER SC AV INSURGENTES SUR 1605 P 20 SAN JOSE INSURGENTES BENITO JUAREZ CIU MEXICO CP 03900",2340388000005628526,bank,280717.70,9582842.86,9656450.13,73607.27,true,354324.97,,,, 103-01-005 BANCO AZTECA 01720117714540,103-01-005,,2340388000005628534,bank,2326468.01,0.00,0.00,0.00,true,2326468.01,,,, 103-01-006 SCOTIABANK 00106514707,103-01-006,"AROCHI & LINDNER SC AVENIDA INSURGENTES SUR 1605 PISO 2 BENI SAN JOSE INSURGENTES BENITO JUAREZ C.P. 03900 C.R. 15000 ENVIAR SUC 001078",2340388000005628542,bank,70570.28,396507.66,327523.87,-68983.79,false,1586.49,,,, 103-01-007 BANAMEX 870539394,103-01-007,"AROCHI & LINDNER SC AVE INSURGENTES SUR NO 1605 PISO 20 SAN JOSE INSURGENTES CH 03900 BENITO JUAREZ, CIUDAD DE MEXICO C.R.03901",2340388000005628550,bank,352660.59,8986165.67,8989972.61,3806.94,true,356467.53,,,, 103-01-008 CASA DE CAMBIO,103-01-008,,2340388000005628558,bank,25753.05,0.00,0.00,0.00,true,25753.05,,,, 103-01-009 MONEX 159 MXN,103-01-009,,2340388000077848076,bank,313589.49,0.00,0.00,0.00,true,313589.49,Deudora,Detalle,, 103-01-010 BANCO BASE MN,103-01-010,,2340388000078625448,bank,-14994.75,16705449.88,16705449.88,0.00,true,-14994.75,,,, 103-01-011 MASARI CASA DE BOLSA,103-01-011,,2340388000083017068,bank,8344.61,982087.91,982365.59,277.68,true,8622.29,Deudora,Detalle,, 103-01-026 PARTIDAS EN TRANSITO,103-01-026,,2340388000035565645,bank,0.00,0.00,0.00,0.00,true,0.00,,,, 103-02-000 EXTRANJERO,103-02-000,,2340388000003218351,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,102.02, 103-02-001 INB VANTANGE BANK 664936,103-02-001,"Address: 1801 South, 2nd Street, Mcallen Texas 78503, Account No. 0664936, Account name: Arochi & Lindner, S.C., SWIFT Code: ITNBUSS44, ABA Code: 114915272.",2340388000005382200,bank,9262988.79,31004704.49,25022557.05,-5982147.44,false,3280841.35,,,, 103-02-002 SCOTIA USD 00107190247,103-02-002,"AROCHI & LINDNER SC AV INSURGENTES SUR 1605 PLAZA CTRO BENIT SAN JOSE INSURGENTES BENITO JUAREZ C.P. 03900 C.R. 15000 ENVIAR SUC 001078",2340388000005628566,bank,308281.46,5972.82,0.00,-5972.82,false,302308.64,,,, 103-02-003 CITIBANK 4456505,103-02-003,"AROCHI & LINDNER SC AVE INSURGENTES SUR NO 1605 PISO 20 SAN JOSE INSURGENTES CH 03900 BENITO JUAREZ, CIUDAD DE MEXICO C.R.03901",2340388000005628574,bank,2323263.67,44815783.63,42481076.27,-2334707.36,false,-11443.69,,,, 103-02-004 BANORTE DLLS 050782194,103-02-004,,2340388000005628582,bank,313.97,6.08,0.00,-6.08,false,307.89,,,, 103-02-005 BANCO MONEX,103-02-005,,2340388000005628590,bank,64867.87,227010.92,0.00,-227010.92,false,-162143.05,,,, 103-02-006 CASA DE CAMBIO,103-02-006,,2340388000005628598,bank,10016.40,194.06,0.00,-194.06,false,9822.34,,,, 103-02-007 BANCO MONEX,103-02-007,,2340388000005628606,bank,553778.93,3218.92,0.00,-3218.92,false,550560.01,,,, 103-02-008 CAIXA (BARCLAYS BANK) 5009,103-02-008,"OFICINA 03031 STORE BONANOVA C. MUNTANER, 577 08022 BARCELONA Tel. 934064380",2340388000005618129,bank,2469.73,14.36,0.00,-14.36,false,2455.37,,,, 103-02-009 WELOCALIZE,103-02-009,,2340388000016736186,bank,674412.60,604141.20,277240.23,-326900.97,false,347511.63,,,, 103-02-010 PayPal Bank,103-02-010,,2340388000016736562,bank,81.65,1.58,0.00,-1.58,false,80.07,,,, 103-02-011 TRASPASO DE CUENTAS USD,103-02-011,,2340388000016736596,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,,, 103-02-012 SANTANDER 1485 EUR,103-02-012,"Beneficiario: Arochi & Lindner, S.C. Banco: Banco Santander, S.A. IBAN: ES57 0049 0125 1525 1036 1485 BIC/SWIFT: BSCHESMM Domicilio: Alcalá 74, Madrid, España. Sucursal: 0049 0125 Moneda: Euros ",2340388000022179583,bank,4087207.47,456273.26,1130611.00,674337.74,true,4761545.21,,,, 103-02-013 BANCO BASE USD,103-02-013,,2340388000078625234,bank,276821.77,31364764.14,31391384.20,26620.06,true,303441.83,,,, 103-02-014 BANCO MONEX 159 USD,103-02-014,,2340388000078767027,bank,-21296.18,2045.15,0.00,-2045.15,false,-23341.33,,,, 103-02-015 BANCO MONEX 159 EUR,103-02-015,,2340388000078767419,bank,-257414.12,0.00,1496.26,1496.26,true,-255917.86,,,, 103-02-016 BANCO MONEX 159 CHF (USD),1080159,,2340388000078767819,bank,0.00,0.00,0.00,0.00,true,0.00,,,, 103-03-000 PUENTE,103-03-000,,2340388000036340621,other_current_asset,-2132.30,0.00,0.00,0.00,true,-2132.30,Deudora,Detalle,102.02, 103-03-001 Puente MXN (T),103-03-001,,2340388000016736592,bank,-149873.02,2193708.19,2316407.43,122699.24,true,-27173.78,,,, 103-03-002 Puente USD (T),103-03-002,,2340388000005727171,bank,885402.14,17154.28,0.00,-17154.28,false,868247.86,,,, 103-04-000 OFFSET,103-04-000,,2340388000036340630,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,102.02, 103-04-001 OFFSET MXN (T),103-04-001,,2340388000008669066,bank,86044.26,0.00,0.00,0.00,true,86044.26,,,, 103-04-002 OFFSET USD (T),103-04-002,,2340388000008669151,bank,-1264.57,219619.37,374940.87,155321.50,true,154056.93,,,, 103-04-003 OFFSET EUR (T),103-04-003,,2340388000008669155,bank,-281437.24,156588.67,1811.39,-154777.28,false,-436214.52,,,, 103-05-000 IMPORTACION,103-05-000,,2340388000036340637,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,102.02, 103-05-001 Importacion MXN (T),103-05-001,,2340388000008179113,bank,0.00,0.00,0.00,0.00,true,0.00,,,, 103-05-002 Importación USD (T),103-05-002,,2340388000008179121,bank,0.00,0.00,0.00,0.00,true,0.00,,,, 103-05-003 Importacion EUR (T),103-05-003,,2340388000008179117,bank,0.00,0.00,0.00,0.00,true,0.00,,,, 104-00-000 INVERSIONES EN VALORES,104-00-000,,2340388000003218356,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Acumulativa,103, 104-01-000 NACIONAL,104-01-000,,2340388000003218361,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,103.01, 104-01-001 SANTANDER,104-01-001,,2340388000005343103,other_current_asset,6144.90,0.00,0.00,0.00,true,6144.90,,,, 104-01-002 AML & ASOCIADOS SLP,104-01-002,,2340388000005343108,other_current_asset,50989.40,0.00,0.00,0.00,true,50989.40,,,, 104-01-003 AROCHI & LINDNER S.L.,104-01-003,,2340388000005343113,other_current_asset,195583.79,0.00,0.00,0.00,true,195583.79,,,, 104-02-000 EXTRANJERO,104-02-000,,2340388000003218366,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,103.02, 104-02-001 INVERSION VANTAGE 1001 USD,104-02-001,,2340388000081131414,bank,30497182.73,590869.91,637077.26,46207.35,true,30543390.08,Deudora,Detalle,, 111-00-000 CLIENTES,111-00-000,,2340388000003218371,other_asset,0.00,330763.44,0.00,-330763.44,false,-330763.44,Deudora,Acumulativa,105, 111-01-000 CLIENTES (B),111-01-000,The money that customers owe you becomes the accounts receivable. A good example of this is a payment expected from an invoice sent to your customer.,2340388000000000364,accounts_receivable,109517569.91,62908551.21,37503763.97,-25404787.24,false,84112782.67,Deudora,Detalle,105.01, 111-01-001 CLIENTES NACIONALES,111-01-001,,2340388000003218378,other_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,105.01, 111-02-000 CLIENTES EXTRANJEROS,111-02-000,,2340388000003218385,other_asset,-3188516.30,0.00,0.00,0.00,true,-3188516.30,Deudora,Detalle,105.02, 111-03-000 CLIENTES NACIONALES (GASTOS),111-03-000,,2340388000003218392,other_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,105.01, 111-04-000 CLIENTES EXTRANJEROS (GASTOS),111-04-000,,2340388000003218399,other_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,105.02, 111-05-000 PARTES RELACIONADAS,111-05-000,,2340388000003218406,other_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,105.03, 111-06-000 CLIENTES EXTRANJEROS EXPORTACIÓN,111-06-000,,2340388000003218413,other_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,105.02, 112-00-000 WIP,112-00-000,,2340388000003218469,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Acumulativa,107, 112-01-000 WIP HONORARIOS,112-01-000,,2340388000003218476,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,107.05, 112-01-001 WIP HONORARIOS NACIONAL,112-01-001,,2340388000005343124,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-01-002 WIP HONORARIOS EXTRANJERO EXPORTACIÓN,112-01-002,,2340388000005343131,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-02-000 CONTRA WIP HONORARIOS,112-02-000,,2340388000003218483,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,107.05, 112-02-001 CONTRA WIP HONORARIOS NACIONAL,112-02-001,,2340388000005343166,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-02-002 CONTRA WIP HONORARIOS EXTRANJERO EXPORTACIÓN,112-02-002,,2340388000005343173,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-03-000 WIP GASTO,112-03-000,,2340388000003218490,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,107.05, 112-03-001 WIP GASTO NACIONAL,112-03-001,,2340388000005343138,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-03-002 WIP GASTO EXTRANJERO EXPORTACIÓN,112-03-002,,2340388000005343159,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-04-000 CONTRA WIP GASTO,112-04-000,,2340388000003218497,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,107.05, 112-04-001 CONTRA WIP GASTO NACIONAL,112-04-001,,2340388000005343145,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 112-04-002 CONTRA WIP GASTO EXTRANJERO EXPORTACIÓN,112-04-002,,2340388000005343152,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,,,, 113-00-000 RESERVA PARA CUENTAS INCOBRABLES,113-00-000,,2340388000003218420,other_asset,0.00,0.00,0.00,0.00,true,0.00,Acreedora,Acumulativa,108, 113-01-000 RESERVA PARA CUENTAS INCOBRABLES,113-01-000,,2340388000003218427,other_asset,-756803.55,6792961.08,0.00,-6792961.08,false,-7549764.63,Deudora,Detalle,108.01, 114-00-000 DEUDORES DIVERSOS,114-00-000,,2340388000003218434,other_current_asset,47098.49,0.00,0.00,0.00,true,47098.49,Deudora,Acumulativa,107, 114-01-000 FUNCIONARIOS Y EMPLEADOS,114-01-000,,2340388000003218441,other_current_asset,0.00,0.00,0.00,0.00,true,0.00,Deudora,Detalle,107.01, 114-01-001 OTROS "300", "message" => "ERROR - [wsInvoiceSF] Parametros incompletos para el Servicio Web, faltan el Propoietario de la Aplicación"); $Resultado = json_encode($j_array); echo $Resultado; return; } if($bRecId == "") { $j_array = array('code' => "300", "message" => "ERROR - [wsCancelAsyncInvoiceSFJ_v33] Parametros incompletos para el Servicio Web, faltan el ID del CFDI a actualizar"); $Resultado = json_encode($j_array); echo $Resultado; return; } if($bDatPAC == "") { $j_array = array('code' => "300", "message" => "ERROR - [wsCancelAsyncInvoiceSFJ_v33] Parametros incompletos para el Servicio Web, faltan los Datos del PAC"); $Resultado = json_encode($j_array); echo $Resultado; return; } ### 0. EXTRACCION DE PARAMETROS PARA EL CFDI ###################################################### #== Primero, extraemos el JSON del string en base 64 $bdDatPAC = base64_decode($bDatPAC); #== Segundo, decodificamos el JSON a un arreglo $abdDatPAC = json_decode($bdDatPAC,true); $dirBase = realpath("../"); # Configuración de zona horaria date_default_timezone_set('America/Mexico_City'); // ### DEFINICIÓN DE CONSTANTES ################################################### $SendaPEMS = "archs_pem/"; $SendaCFDI = "archs_cfdi/"; // Datos de acceso del usuario (proporcionados por el PAC). if($abdDatPAC["tipoTim"] == 1){ ## Timbrado en producción $urlPAC = "https://solucionfactible.com/ws/services/Cancelacion?wsdl"; } else { ## Timbrado en pruebas $urlPAC = "https://testing.solucionfactible.com/ws/services/Cancelacion?wsdl"; } // Datos para la configuracion del SOAP y los resultados. $username = $abdDatPAC["username"]; $password = $abdDatPAC["password"]; $bdUUID = $abdDatPAC["UUID"]; $fact_serie = $abdDatPAC["serie"]; $fact_folio = $abdDatPAC["folio"]; $invoiceNumber = $abdDatPAC["invoice"]; $invoiceID = $abdDatPAC["invoiceID"]; $RfcEmisor = $abdDatPAC["RfcEmi"]; // Datos "constantes" para los archivos CER y KEY del cliente $noCertificado = $abdDatPAC["Certificado_SAT"]; $file_cer = $abdDatPAC["Archivo_CER"]; $file_key = $abdDatPAC["Archivo_KEY"]; $clavePrivada = $abdDatPAC["Clave_Privada"]; $organi_id_ZB = $abdDatPAC["organization_id_ZB"]; $authtoken_ZB = $abdDatPAC["authtoken_ZB"]; $authtoken_ZC = $abdDatPAC["authtoken_ZC"]; // Leemos el archivo CER del cliente $nombre_fichero = $SendaPEMS.$file_cer; $gestor = fopen($nombre_fichero, "r"); $cerFile = fread($gestor, filesize($nombre_fichero)); fclose($gestor); // Leemos el archivo KEY del cliente $nombre_fichero = $SendaPEMS.$file_key; $gestor = fopen($nombre_fichero, "r"); $keyFile = fread($gestor, filesize($nombre_fichero)); fclose($gestor); // Conversion de los archivos CER y KEY leidos a formato Base64 $bCertB64 = base64_encode($cerFile); $bKeyB64 = base64_encode($keyFile); /* echo "Tipo Timbrado: ".$abdDatPAC["tipoTim"]; echo "
"; echo "username: ".$username; echo "
"; echo "password: ".$password; echo "
"; echo "bdUUID: ".$bdUUID; echo "
"; echo "Motivo: ".$motCancela; echo "
"; echo "UUID Sust: ".$uuidSustit; echo "
"; echo "fact_serie: ".$fact_serie; echo "
"; echo "fact_folio: ".$fact_folio; echo "
"; echo "invoiceNumber: ".$invoiceNumber; echo "
"; echo "invoiceID: ".$invoiceID; echo "
"; echo "RfcEmisor: ".$RfcEmisor; echo "
"; echo "urlPAC: ".$urlPAC; echo "
"; echo "file_cer: ".$SendaPEMS.$file_cer; echo "
"; echo "bCertB64: ".$bCertB64; echo "
"; echo "file_key: ".$SendaPEMS.$file_key; echo "
"; echo "bKeyB64: ".$bKeyB64; echo "
"; echo "
"; */ ### PROCESO DE CACELACION ######################################################## $response = ''; // Datos para la localización del WebService para resolución del WSDL. if($abdDatPAC["tipoTim"] == 1){ ## Timbrado en producción $urlLocation = 'https://solucionfactible.com/ws/services/Cancelacion'; } else { ## Timbrado en pruebas $urlLocation = 'https://testing.solucionfactible.com/ws/services/Cancelacion'; } #== Se lleva a cabo cancelacion del CFDI ============================ try { $client = new SoapClient($urlPAC); $client->__setLocation($urlLocation); //JFA: Cambio por SF para enviar el motivo de cancelacion $params = array('usuario' => $username, 'password' => $password, 'uuid' => $bdUUID . $motCancela . $uuidSustit, 'rfcEmisor' => $RfcEmisor, 'emailNotifica' => "", 'derCertCSDBase64' => $bCertB64, 'derKeyCSDBase64' => $bKeyB64, 'contrasenaCSD' => $clavePrivada, 'properties' => ""); $response = $client->__soapCall('cancelarAsincrono', array('parameters' => $params)); } catch (SoapFault $fault) { $j_array = array('code' => "900", "message" => "Error al ejecutar el WebService del PAC (SOAP)", 'status' => $fault->faultcode,'mensaje' => $fault->faultstring); //$j_array = array('code' => "900", "message" => $fault->faultcode."-".$fault->faultstring); $Resultado = json_encode($j_array); echo $Resultado; return; } /* print_r($response); echo "
"; echo "
"; */ $ret = $response->return; if($ret->status != 200) { $sErrMsg = $ret->mensaje; /* switch ($ret->status) { case 204: $sErrMsg = "El comprobante no se puede cancelar"; case 211: $sErrMsg = "La cancelación está en proceso"; case 213: $sErrMsg = "La solicitud de cancelación fue rechazada por el receptor"; case 303: $sErrMsg = "El certificado CSD no corresponde al RFC del contribuyente."; case 305: $sErrMsg = "La fecha de cancelación no está dentro del la vigencia del CSD del emisor."; case 306: $sErrMsg = "Las llaves utilizadas para sellar no corresponden a un CSD."; case 308: $sErrMsg = "El certificado CSD no fue emitido por la Autoridad de SAT."; case 402: $sErrMsg = "El RFC del contribuyente no existe conforme al régimen autorizado LCO."; case 500: $sErrMsg = "Han ocurrido errores internos que han impedido que se registre la solicitud de cancelación, reintentar."; case 501: $sErrMsg = "Ha ocurrido un error interno de comunicación con la base de datos, reintentar."; case 601: $sErrMsg = "Error de autenticación, el nombre de usuario o contraseña son incorrectos."; case 602: $sErrMsg = "La cuenta de usuario se encuentra bloqueada."; case 603: $sErrMsg = "La contraseña de la cuenta ha expirado."; case 604: $sErrMsg = "Se ha superado el número máximo permitido de intentos fallidos de autenticación."; case 605: $sErrMsg = "El usuario se encuentra inactivo."; case 611: $sErrMsg = "Los datos recibidos están incompletos o no se encuentran donde se esperarían."; case 620: $sErrMsg = "Permiso denegado."; case 621: $sErrMsg = "Los datos recibidos no son válidos."; case 633: $sErrMsg = "Uso indebido de cuenta de producción en pruebas o cuenta de prueba en producción."; case 701: $sErrMsg = "Ya existe una transacción asíncrona para el UUID especificado."; } */ $j_array = array('code' => "901", "message" => "Se presento un problema al momento de realizar la cancelación. ", 'status' => $ret->status,'mensaje' => $sErrMsg); $Resultado = json_encode($j_array); echo $Resultado; return; } $RespServ = $ret; $j_array = array('code' => "200", "message" => "Proceso de cancelacion de CFDI fue exitoso", 'status' => $ret->status, 'mensaje' => $ret->mensaje); $Resultado = json_encode($j_array); echo $Resultado; return;