Releases: eclipxe13/CfdiUtils
Version 2.12.10
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.
-
Add script to install
phpcfdi/resources-sat-xml
on AppVeyor build. -
Fix default locations for TFD 1.0.
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
- Review and fix
CreateComprobantePagosCaseTest
. - Add docblocks on
StatusResponse
and fix scripttests/estadosat.php
. - Remove
overtrue/phplint
from development dependences.
Version 2.12.8
- Change License year to 2020.
- Change running dependence of
symfony/process
to allow version^0.5
- Change development dependence
phpstan/phpstan-shim
tophpstan/phpstan
(versions^0.9
to^0.11
)
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