Releases: eclipxe13/CfdiUtils
Version 2.15.0
Improvements:
- Include validation web service version 1.3 new response
ValidacionEFOS
asStatusResponse::getValidationEfos() string
andStatusResponse::isEfosListed() bool
. - Update
ConsultaCFDIServiceSAT.svc.xml
. It is unused, but exists for compatibility.
General:
- Upgrade to PHPUnit 9.5 and upgrade test suite.
- Test classes are declared as final.
- Remove support for PHP 7.0, PHP 7.1 and PHP 7.2.
- Compatilize with PHP 8.0 / OpenSSL:
- openssl functions does not return resources but objects.
- On deprecated functions run only if PHP version is lower than 8.0 and put annotations for
phpcs
.
Bugfixes:
- Validation
SELLO04
fails when there are special caracters likeé
andLC_CTYPE
is not setup. - Fix
COMPIMPUESTOSC01
description typo.
There are some soft backwards incompatibility changes:
- Method __construct() of class CfdiUtils\Validate\Cfdi33\Standard\FechaComprobante became final
- Method __construct() of class CfdiUtils\Validate\Cfdi33\RecepcionPagos\Pago became final
- The return type of CfdiUtils\Validate\Cfdi33\RecepcionPagos\Pago#getValidators() changed from no type to array
- The parameter $decimals of CfdiUtils\Utils\Format::number() changed from no type to a non-contravariant int
- The parameter $content of CfdiUtils\Cleaner\Cleaner::staticClean() changed from no type to a non-contravariant string.
Development environment:
- AppVeyor: Only run PHPUnit
- Travis-CI: On PHP != 7.4 only run PHPUnit
- Travis-CI: On PHP == 7.4 run all the build commands
- PHPStan: Upgrade to version 0.12, downgrade level to 5.
Version 2.14.2
Fixes:
- Validation
TIPOCOMP03
does not apply on documents typeN - Nómina
(by @ircsasw, thank you!).
Version 2.14.1
Fixes:
- Remove redundant valiations
METPAG01
andMETPAG02
. - Validation
TIPOCOMP04
does not apply on documents typeN - Nómina
.
Previously merged but not released.
- Looks like web service at
https://rdc.sat.gob.mx/
is having issues (again). This is breaking testing. To mitigate the problem, a new testing classCertificateDownloaderHelper
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. - Add
XDEBUG_MODE=coverage
on Travis-CI configuration file since it upgrade toXDebug v3.0.0
and it contains a bug that makesPHPUnit
break with the message: Use of undefined constant XDEBUG_CC_UNUSED - assumed 'XDEBUG_CC_UNUSED'. This will be resolved on xdebug/xdebug#699 but not released (yet).
Version 2.14.0
- Add
Retenciones
reader to work with CFDI de retenciones e información de pagos. (Closes #57) - Refactor
Cfdi
andRetenciones
to use recently createdXmlReaderTrait
.
Version 2.13.1
- Fix validation
FORMAPAGO01
, it only applies whenComplemento de Pago
exists. (Closes #58)
Version 2.13.0
Add helper elements for Complemento de Nómina 1.2 revisión B.
- Root element is
CfdiUtils\Elements\Nomina12\Nomina
. - Add test with 100% coverage on the namespace.
- Add documentation.
- Important It does not contain any validators but standard XSD.
Version 2.12.11
- Fix TimbreFiscalDigital XSLT URL locations, updated from SAT documentation. For more information check phpcfdi/sat-ns-registry project.
Version 2.12.10
This is a documentation and testing improvement version.
-
Documentation "Descarga de recursos XSD y XSLT"
- 2020-07-14: Documentation: "Descarga de recursos XSD y XSLT"
- 2020-07-18: Documentation: Add last document to
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.
- Add a new cleaner method
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).
- Improve explanation on
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.
- Remove insecure downloader from testing.
This was introduced previously because the webserver was using invalid SSL certificates. This problem does not exist anymore (since 2019-10-24).
Version 2.12.9
- Review and fix
CreateComprobantePagosCaseTest
. - Add docblocks on
StatusResponse
and fix scripttests/estadosat.php
. - Remove
overtrue/phplint
from development dependences.
Version 2.12.8
- Change License year to 2020.
- Change running dependence of
symfony/process
to allow version^0.5
- Change development dependence
phpstan/phpstan-shim
tophpstan/phpstan
(versions^0.9
to^0.11
)