PHP Common utilities for Mexican CFDI 3.2, 3.3 & 4.0
Fixes:
TIPOCOMP03
does not apply on documents type N - Nómina
(by @ircsasw, thank you!).Fixes:
METPAG01
and METPAG02
.TIPOCOMP04
does not apply on documents type N - Nómina
.Previously merged but not released.
https://rdc.sat.gob.mx/
is having issues (again). This is breaking testing. To mitigate the problem, a new testing class CertificateDownloaderHelper
has been created to retry the download if it fails, for a maximum of 5 attempts. This change does not create a new release version.XDEBUG_MODE=coverage
on Travis-CI configuration file since it upgrade to XDebug v3.0.0
and it contains a bug that makes PHPUnit
break with the message: Use of undefined constant XDEBUG_CC_UNUSED - assumed 'XDEBUG_CC_UNUSED'. This will be resolved on https://github.com/xdebug/xdebug/pull/699 but not released (yet).Retenciones
reader to work with CFDI de retenciones e información de pagos. (Closes #57)Cfdi
and Retenciones
to use recently created XmlReaderTrait
.FORMAPAGO01
, it only applies when Complemento de Pago
exists. (Closes #58)Add helper elements for Complemento de Nómina 1.2 revisión B.
CfdiUtils\Elements\Nomina12\Nomina
.This is a documentation and testing improvement version.
Documentation "Descarga de recursos XSD y XSLT"
mkdocs:nav
, format rewording and links.Add tests/resource-sat-xml-download
, include it on travis build.
SAT has been failing providing XSD and XSLT files. This tool obtains (via tests/resource-sat-xml-download
) a fresh copy of those files from phpcfdi/resources-sat-xml
project for development.
Add script to install phpcfdi/resources-sat-xml
on AppVeyor build.
Fix default locations for TFD 1.0.
In the past, SAT allowed at least 2 different URLS for TFD 1.0 on XSD and XSLT files. In this version this is normalized with phpcfdi/sat-ns-registry
project.
Cleaner::fixKnownSchemaLocationsXsdUrls
to override the XSD file URLS for CFDI and TFD.This replaces any known and found URL ignoring case and put the correct one, it also replaces http://www.sat.gob.mx/sitio_internet/TimbreFiscalDigital/TimbreFiscalDigital.xsd
(unused) with http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigital.xsd
(official).
TFDSELLO01
when unable to get certificate.The assert TFDSELLO01
El Sello SAT del Timbre Fiscal Digital corresponde al certificado SAT, now includes the exception message when unable to obtain a certificate.
This was introduced previously because the webserver was using invalid SSL certificates. This problem does not exist anymore (since 2019-10-24).
CreateComprobantePagosCaseTest
.StatusResponse
and fix script tests/estadosat.php
.overtrue/phplint
from development dependences.symfony/process
to allow version ^0.5
phpstan/phpstan-shim
to phpstan/phpstan
(versions ^0.9
to ^0.11
)xmlns:schemaLocation
to xsi:schemaLocation
. SAT uses to create "valid" CFDI with this error.xmlns="http://www.sat.gob.mx/cfd/3"
when also xmlns:cfdi="http://www.sat.gob.mx/cfd/3"
is found.SerialNumber
to use map + impode
instead of concatenation.SerialNumber
to substr
instead of strpos
to check if a string start with text.RequestParameters
usage.chocolatey
to 0.10.13--no-progress
to choco
commandsphp_
on PHP versions lower than 7.2PHP_CS_FIXER
environment variables