Skip to content

Releases: eclipxe13/CfdiUtils

Version 2.12.10

19 Jul 09:06
Compare
Choose a tag to compare

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.

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

26 Apr 03:08
Compare
Choose a tag to compare
  • Review and fix CreateComprobantePagosCaseTest.
  • Add docblocks on StatusResponse and fix script tests/estadosat.php.
  • Remove overtrue/phplint from development dependences.

Version 2.12.8

08 Jan 01:39
Compare
Choose a tag to compare
  • Change License year to 2020.
  • Change running dependence of symfony/process to allow version ^0.5
  • Change development dependence phpstan/phpstan-shim to phpstan/phpstan (versions ^0.9 to ^0.11)

Version 2.12.7

04 Dec 22:08
Compare
Choose a tag to compare
  • Add 2 new default cleans, before loading the CFDI as XML DOM Document:
    • Change invalid xmlns:schemaLocation to xsi:schemaLocation. SAT uses to create "valid" CFDI with this error.
    • Remove xmlns="http://www.sat.gob.mx/cfd/3" when also xmlns:cfdi="http://www.sat.gob.mx/cfd/3" is found.
  • Improve SerialNumber to use map + impode instead of concatenation.
  • Improve SerialNumber to substr instead of strpos 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 to choco commands
    • Setup extensions declared without prefix php_ on PHP versions lower than 7.2
    • Add PHP_CS_FIXER environment variables

Version 2.12.6

23 Oct 21:04
Compare
Choose a tag to compare
  • Fix REGFIS01 validation when receiving an RFC with non-ASCII chars (like Ñ).
    It does not validate that the RFC is correct, that validation is on EMISORRFC01.
  • Add installation to documentation.
  • Improve php-cs-fixer rules.
  • Fix Travis-CI build on PHP version 7.4snapshot.

Version 2.12.5

16 Oct 04:46
Compare
Choose a tag to compare
  • 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 an Error.

Version 2.12.4

10 Oct 19:27
Compare
Choose a tag to compare
  • 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 rule CFDI33151, not CFDI33109.
  • New validation DESCUENTO01 that verify document discount against document subtotal, covers CFDI33109.
  • Development: include build/ empty folder (with .gitignore to exclude all)
  • Continuous Integration:
    • Travis remove sudo: false and build on dist: xenial.
    • Scrutinizer add more time to wait for coverage test.
    • Remove CodeClimate integration.

Version 2.12.3

26 Sep 06:00
bd1eb71
Compare
Choose a tag to compare
  • 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

24 Sep 16:29
Compare
Choose a tag to compare
  • 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 sections source and chat
  • Development: Exclude correct file .appveyor.yml (was .appveyor.xml)

Version 2.12.1

24 Sep 13:57
Compare
Choose a tag to compare
  • 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 calls composer dev:check-style