Skip to content

Releases: phpcfdi/sat-catalogos-populate

Version 2.5.3

12 Dec 05:41
Compare
Choose a tag to compare

The catalog CCE - Fracciones arancelarias is composed of 3 different catalogs:

  • Catálogo vigente hasta el 27 de diciembre de 2020.
  • Catálogo vigente del 28 de diciembre de 2020 al 11 de diciembre de 2022.
  • Catálogo vigente a partir del 12 de diciembre de 2022.

This update create the catalog cce_fracciones_arancelarias by inserting or replacing the catalogs one after another.
Using this method, if an harmonized tariff schedule is found, it will override the previous record.

Other minor changes:

  • Update dependencies, install libreoffice-calc-nogui and libreoffice-java-common.

Version 2.5.2

08 Dec 23:17
Compare
Choose a tag to compare

Fix text to locate the link for CCE - Fracciones arancelarias 2021.

Version 2.5.1

18 Nov 07:51
4092c7c
Compare
Choose a tag to compare

Fix how to find how many first equal lines are between two CSV files.

In Catálogos de CFDI 4.0 published at 2022-11-18 was found that the headers on files c_CodigoPostal_Parte_1 and c_CodigoPostal_Parte_2 were different because of empty cells at the end.

This fix include a better test and fix the issue by changing how csv lines are normalized.
Normalization: explode values, trim values, remove empty values at end, and implode values back.

Version 2.5.0

08 Nov 19:08
2f50dde
Compare
Choose a tag to compare
  • Fix PHPStan issue: str_getcsv can return array<scalar|null>.
  • Update signature for SeekableIterator::seek.
  • UrlResponse can have a Stringable|string body property.
  • Move logic to create a UrlResponse from a PSR Response
  • Bump to PHP 8.1.
  • Add badge for PHP 8.1.
  • Remove badge for downloads.
  • Upgrade development tools.
  • Update GH workflow:
    • Add PHP 8.2 to test matrix.
    • Update GH actions to 8.1.
    • Remove composer requierement when not needed.
  • Fix composer script dev:coverage.
  • Implement development tool composer-normalize.

Version 2.4.2

02 Apr 00:53
67f8912
Compare
Choose a tag to compare
  • Fix Carta Porte 2.0 injector ProductosServicios headers.
  • Update sample files for Carta Porte 2.0.
  • Minimal improvements to PHP 8.0 features and strict types.

Version 2.4.1

18 Mar 20:08
8939f7b
Compare
Choose a tag to compare
  • Fix origin CCE - Fracciones arancelarias 2021, the link contains extra characters now.
  • CI: run apt-get update before install other packages.

Version 2.4.0

07 Mar 14:39
8113ff5
Compare
Choose a tag to compare

Add CCP (Complemento de Carta Porte) 2.0 catalogs.

  • Add Origin as a constant source, saving the file as CatalogosCartaPorte20.xls.
  • Add Source importer from CatalogosCartaPorte20.xls. It includes 25 catalogs.
  • Importers create tables with prefix ccp_20_*.
  • Update docs/Catalogos.md with CCP 2.0 catalogs.
  • Refactor export XLST to CSV, rename all exported files to remove spaces from name.

Thanks @G4g0 !!!

Version 2.3.0

05 Mar 08:54
e5cdcfa
Compare
Choose a tag to compare

Add CFDI 4.0 catalogs.

  • Add Origin as a scrap from SAT website, saving the file as cfdi_40.xsl.
  • Add Source importer from cfdi_40.xsl. It includes 25 catalogs.
  • Importers create tables with prefix cfdi_40_*.
  • Update docs/Catalogos.md with CFDI 4.0 catalogs.
  • Refactor how to know what lines to skip when join two CVS files.

Version 2.2.1

05 Mar 03:20
c090bb4
Compare
Choose a tag to compare

Include Nóminas - Estados origin to dump-origins command.

Version 2.2.0

05 Mar 02:48
e7e450c
Compare
Choose a tag to compare

Allow scrap link text use wildcards as in fnmatch.

Fix build because now catNomina.xls does not contain Catálogo de estados.
Uses C_Estado.xls from Complemento de comercio exterior to build nomina_estados.
This is confirmed by XSD contents.

Update docs/Catalogos.md, add missing nomina_* tables.

Improve development environment:

  • Update development tools.
  • CI run phpcs on files set by config file.
  • Update php-cs-fixer config file.
  • Update rector/rector from development dependencies.