Releases: eclipxe13/CfdiUtils
Version 2.23.5 2023-05-25
- 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 withmb_convert_encoding
.
v2.23.4: Merge pull request #107 from eclipxe13/development
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
andStatus::__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.
- Update GH Workflows: Remove deprecated
Version 2.23.3
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
- Use
Symfony/Process
instead ofShellExec
. - Remove internal classes
ShellExec
andShellExecResult
. - Rename internal class
ShellExecTemplate
toCommandTemplate
.
Version 2.23.1
Fix hardcoded Regímenes catalog to fix CFDI33 validation EmisorRegimenFiscal
.
Thanks @celli33 for your contribution.
Version 2.23.0
Add CfdiUtils\Elements\PlataformasTecnologicas10
Elements to work with "Complemento Servicios de Plataformas Tecnológicas".
Thanks @gam04 for your contribution.
Version 2.22.0
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
toCfdiUtils\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
- 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
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
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.