Skip to content

Releases: eclipxe13/CfdiUtils

Version 2.16.1

08 Dec 06:57
Compare
Choose a tag to compare

Fix bug when create expression to query for the SAT status and the RFC (emisor or receptor) contains the characters & or Ñ. The service requires that the expression is XML "encoded". Thanks, @ramboram and @TheSpectroMx for your help.

Refactor test script tests/estadosat.php.

Fix typos on "Complemento de Nómina versión 1.2, revisión B" documentation.

Version 2.16.0

10 Nov 03:50
Compare
Choose a tag to compare

Add CfdiUtils\Elements\CartaPorte10 Helper elements to work with "Carta Porte 1.0". See #70 & #73.

Version 2.15.1

05 Apr 00:58
984a3c8
Compare
Choose a tag to compare

Fix try to close public key when it didn't exists. Good catch PHPStan!

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.