Skip to content

Releases: eclipxe13/CfdiUtils

Version 2.23.5 2023-05-25

26 May 06:18
b8d5e26
Compare
Choose a tag to compare
  • Fix SELLO04 false positives on CFDI 4.0.
    • If name is empty then status is error since it is mandatory.
    • If Persona Moral then status is none since it is not possible to compare names.
    • If Persona Física then status is ok when name is identical to certificate name.
  • Improve SUMAS07 explanation.
  • Fix PHPStan false positives.
  • Update license year.
  • Update php-cs-fixer configuration file.
  • Fix genkgo/xsl dependency version.
  • GitHub Workflow:
    • Add PHP 8.2 to test matrix.
    • Jobs run in PHP 8.2.
    • Remove development tools before install project dependencies.
  • Fix build badge.
  • When testing using Genkgo, ignore deprecation errors.
  • Replace utf8_decode calls with mb_convert_encoding.

v2.23.4: Merge pull request #107 from eclipxe13/development

07 Dec 21:25
61c64f1
Compare
Choose a tag to compare

This is a maintenance release to fix the continuous integration workflow and append pending development changes.

  • Fix test CertificadoTest::testConstructWithValidExample() to allow quoted slashes on name.
  • Add phpdoc to the method Certificate::getCertificateName().
    The value can contain quoted slashes \/ depending on the OpenSSL version.
  • Update script tests/validate.php to validate CFDI 3.3 or CFDI 4.0.
  • Add return types to some methods:
    • Status::comparableValue and Status::__toString.
    • Discoverer::discoverInFile.
  • Improve TestCase::installCertificate(): It doesn't depend on the certificate's file name to install correctly.
  • Update GitHub build workflow:
    • Update GH Workflows: Remove deprecated ::set-output & ::save-state.
    • Split full build actions to individual jobs.
    • Split Windows and Linux testing.

Version 2.23.3

11 Aug 06:33
500ec47
Compare
Choose a tag to compare

Fix CFDI 4.0, must include Comprobante/Impuestos/Traslados/Traslado@TipoFactor=Exento when exists at least one node Comprobante/Conceptos/Concepto/Impuestos/Traslados/Traslado@TipoFactor=Exento.

The node must contain attribute TipoFactor=Exento and the rounded sum of the attributes Base grouped by attribute Impuesto.

Thanks @jiag-dev for noticing this issue, and @yairtestas for your guidance to find the solution.

Version 2.23.2

01 Jul 18:13
ff6b5c7
Compare
Choose a tag to compare
  • Use Symfony/Process instead of ShellExec.
  • Remove internal classes ShellExec and ShellExecResult.
  • Rename internal class ShellExecTemplate to CommandTemplate.

Version 2.23.1

21 Jun 03:14
Compare
Choose a tag to compare

Fix hardcoded Regímenes catalog to fix CFDI33 validation EmisorRegimenFiscal.

Thanks @celli33 for your contribution.

Version 2.23.0

15 Jun 17:01
Compare
Choose a tag to compare

Add CfdiUtils\Elements\PlataformasTecnologicas10 Elements to work with "Complemento Servicios de Plataformas Tecnológicas".

Thanks @gam04 for your contribution.

Version 2.22.0

15 May 07:06
4b03974
Compare
Choose a tag to compare

Add support to read and create a RET 1.0 (Retenciones e información de pagos 2.0) document. (Closes #96)

  • Add helper elements on namespace CfdiUtils\Elements\Retenciones20.
  • Add CfdiUtils\Retenciones\RetencionVersion.
  • Add CfdiUtils\Retenciones\RetencionesCreator20.
  • Move shared methods from CfdiUtils\Retenciones\RetencionesCreator10 to CfdiUtils\Retenciones\RetencionesCreatorTrait.
  • Refactor CfdiUtils\Retenciones\Retenciones to read versions 1.0 and 2.0.
  • Improve documentation about RET 2.0.

Thanks @gam04 for your contribution.

Version 2.21.0

05 May 18:50
7c501be
Compare
Choose a tag to compare
  • Introduce \CfdiUtils\Nodes\NodeHasValueInterface to work with nodes simple text content.
  • The class \CfdiUtils\Nodes\Node implements \CfdiUtils\Nodes\NodeHasValueInterface.
  • The XML node importers and exporters now can read and write simple text content.

Version 2.20.2

05 Apr 21:24
be90639
Compare
Choose a tag to compare

Allow installing Genkgo/Xsl version 1.1.0; used for PHP >= 7.4.

Test: Fix test that was overriding retenciones/sample-before-tfd.xml file.

Include the following unreleased changes from 2022-03-18:

Fix build since GitHub Action sudo-bot/action-scrutinizer is failing.
Use scrutinizer/ocular package instead.

Test: When creating a pago, use addSumasConceptos to populate SubTotal and Total.

CI: Always run apt-get update before apt-get install.

Version 2.20.1

08 Mar 23:19
5d569fc
Compare
Choose a tag to compare

Add PHP 8.1 minimal compatibility.

Skip tests on GenkgoXslBuilderTest because the library genkgo/xsl is not compatible with PHP 8.1.

Skip tests WebServiceConsumingTest::testSoapClientHasSettings because cannot access SoapClient private properties.

Add dependence on symfony/process to include 6.0. This allows to install the library on PHP 8.1.

Upgrade eclipxe/xmlschemavalidator from version 2.x to version 3.x (fully PHP 8.1 compatible).

Add #[\ReturnTypeWillChange] or fix return types on implemented classes like
IteratorAggregate::getIterator(): Traversable.

Add information about how tu run locally GitHub Actions using nektos/act tool.