Skip to content

Releases: eclipxe13/CfdiUtils

Version 2.15.0

18 Mar 08:42
9c7988d
Compare
Choose a tag to compare

Improvements:

  • Include validation web service version 1.3 new response ValidacionEFOS as StatusResponse::getValidationEfos() string and StatusResponse::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 é and LC_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

16 Mar 20:09
fa9c206
Compare
Choose a tag to compare

Fixes:

  • Validation TIPOCOMP03 does not apply on documents type N - Nómina (by @ircsasw, thank you!).

Version 2.14.1

16 Mar 02:49
c9e30ad
Compare
Choose a tag to compare

Fixes:

  • Remove redundant valiations METPAG01 and METPAG02.
  • Validation TIPOCOMP04 does not apply on documents type N - 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 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.
  • Add 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 xdebug/xdebug#699 but not released (yet).

Version 2.14.0

01 Oct 22:27
Compare
Choose a tag to compare
  • Add Retenciones reader to work with CFDI de retenciones e información de pagos. (Closes #57)
  • Refactor Cfdi and Retenciones to use recently created XmlReaderTrait.

Version 2.13.1

01 Oct 18:16
Compare
Choose a tag to compare
  • Fix validation FORMAPAGO01, it only applies when Complemento de Pago exists. (Closes #58)

Version 2.13.0

28 Aug 22:15
Compare
Choose a tag to compare

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

16 Aug 07:35
Compare
Choose a tag to compare
  • Fix TimbreFiscalDigital XSLT URL locations, updated from SAT documentation. For more information check phpcfdi/sat-ns-registry project.

Version 2.12.10

19 Jul 09:06
Compare
Choose a tag to compare

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.

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

26 Apr 03:08
Compare
Choose a tag to compare
  • Review and fix CreateComprobantePagosCaseTest.
  • Add docblocks on StatusResponse and fix script tests/estadosat.php.
  • Remove overtrue/phplint from development dependences.

Version 2.12.8

08 Jan 01:39
Compare
Choose a tag to compare
  • Change License year to 2020.
  • Change running dependence of symfony/process to allow version ^0.5
  • Change development dependence phpstan/phpstan-shim to phpstan/phpstan (versions ^0.9 to ^0.11)