Releases: eclipxe13/CfdiUtils
Releases · eclipxe13/CfdiUtils
Version 2.12.7
- Add 2 new default cleans, before loading the CFDI as XML DOM Document:
- Change invalid
xmlns:schemaLocation
toxsi:schemaLocation
. SAT uses to create "valid" CFDI with this error. - Remove
xmlns="http://www.sat.gob.mx/cfd/3"
when alsoxmlns:cfdi="http://www.sat.gob.mx/cfd/3"
is found.
- Change invalid
- Improve
SerialNumber
to usemap + impode
instead of concatenation. - Improve
SerialNumber
tosubstr
instead ofstrpos
to check if a string start with text. - (DOC) Add cleaner notes and example about clean before load.
- (DOC) Simplify example on
RequestParameters
usage. - (DEV) Add support for PHP 7.4 on Travis-CI
- (DEV) Add support for PHP 7.4 on AppVeyor
- Downgrade
chocolatey
to 0.10.13 - Add
--no-progress
tochoco
commands - Setup extensions declared without prefix
php_
on PHP versions lower than 7.2 - Add
PHP_CS_FIXER
environment variables
- Downgrade
Version 2.12.6
- Fix
REGFIS01
validation when receiving an RFC with non-ASCII chars (likeÑ
).
It does not validate that the RFC is correct, that validation is onEMISORRFC01
. - Add installation to documentation.
- Improve
php-cs-fixer
rules. - Fix Travis-CI build on PHP version
7.4snapshot
.
Version 2.12.5
- Fix bug when creating a
Certificado
object and PEM content's length is less than 2000 bytes.- Now it does not care about the length.
- If the content is a valid base64 string but is a path then will be used as a path.
- When checking that the file exists, catches if the path has control characters (like in DER content).
- Previous validation now makes
file_exists
to not throw anError
.
Version 2.12.4
- The validation
CONCEPDESC01
was not correctly set, it was checking concept discount against document subtotal, it was fixed to concept discount against concept import. It covers SAT ruleCFDI33151
, notCFDI33109
. - New validation
DESCUENTO01
that verify document discount against document subtotal, coversCFDI33109
. - Development: include
build/
empty folder (with.gitignore
to exclude all) - Continuous Integration:
- Travis remove
sudo: false
and build ondist: xenial
. - Scrutinizer add more time to wait for coverage test.
- Remove CodeClimate integration.
- Travis remove
Version 2.12.3
CfdiUtils\Certificado\Certificado
can be created using PEM contents and not only a certificate path.CfdiUtils\Creator33
can use a certificate without associated filename.CfdiUtils\RetencionesCreator10
can use a certificate without associated filename.CfdiUtils\Certificado\NodeCertificado
can obtain the certificate without creating a temporary file.
Version 2.12.2
- When cannot load an Xml string include
LibXMLError
information into exception, like:Cannot create a DOM Document from xml string XML Fatal [L: 1, C: 7]: Input is not proper UTF-8
- Include composer
support
sectionssource
andchat
- Development: Exclude correct file
.appveyor.yml
(was.appveyor.xml
)
Version 2.12.1
- Trigger E_USER_DEPRECATED on
CfdiUtils\Cleaner\Cleaner#removeIncompleteSchemaLocation()
- Trigger E_USER_DEPRECATED on
CfdiUtils\Certificado\SerialNumber#baseConvert()
- Improvements on docs/index
- Remove several development files from final package
- Development:
- Fix
.editorconfig
- Integrate codeclimate, evaluate for a while to consider a replacement for scrutinizer
- Add PHP 7.4snapshot
- Remove Symfony Insight config file
- On
composer dev:build
it also callscomposer dev:check-style
- Fix
Version 2.12.0
Version 2.12.0 2019-09-03
- Add
CfdiCreator33::moveSatDefinitionsToComprobante()
method to move xml definitions (xmlns:*
andxsi:schemaLocation
) to root node where namespace starts withhttp://www.sat.gob.mx
. - Add
CfdiUtils\Nodes\NodeNsDefinitionsMover
that allows to move all (or filtered) namespace definitions (xmlns:*
andxsi:schemaLocation
) to root node. - Improve
XmlNodeImporter
to read xml as<node xmlns="namespace"/>
. - Create
SchemaLocations
, this utility helps to manage the content ofxsi:schemaLocation
attribute. - Refactor
Cleaner
, internal improvements and use ofSchemaLocations
. - Mark
CfdiUtils\Cleaner\Cleaner:removeIncompleteSchemaLocation()
as internal, it should always be private - Fix composer.json links
Version 2.11.0
- Add
Cleaner::collapseComprobanteComplemento()
to deal with more than onecfdi:Complemento
. - Append call to
Cleaner::collapseComprobanteComplemento()
onCleaner::clean()
. - Create test that demostrate issues when
TimbreFiscalDigital
is on a secondcfdi:Complemento
and that collapsing removes the issues and do not change the "cadena de origen". - Document SAT issue with multiple
cfdi:Complemento
(problems and clean). - Travis: since
mkdocs
version is newer, there is no need to changenav
topages
to compile docs. - phpstan: create
phpstan.neon.dist
withinferPrivatePropertyTypeFromConstructor
.
Version 2.10.4
- Add
Xml::createElement
andXml::createElementNS
to deal with non scaped ampersand&
onDOMDocument::createElement
andDOMDocument::createElementNS
. - Improve
Rfc::obtainDate
with invalid length dates and tests.