diff --git a/CHANGELOG b/CHANGELOG index c8aae2b..e11ca21 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ # Lista de cambios +v 0.2.0 [14-ago-2021] + - Soporte para varios UUIDs por póliza + v 0.1.0 [15-jul-2021] - Versión inicial - Importa txt de pólizas diff --git a/VERSION b/VERSION index 6c6aa7c..341cf11 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 \ No newline at end of file +0.2.0 \ No newline at end of file diff --git a/conf.py b/conf.py index 7527f7d..a5155bf 100644 --- a/conf.py +++ b/conf.py @@ -29,7 +29,7 @@ TYPE_EXTENSION = 1 NAME = 'ZAZCompaqi' # ~ https://semver.org/ -VERSION = '0.1.0' +VERSION = '0.2.0' # ~ Should be unique, used URL inverse diff --git a/files/ZAZCompaqi_v0.1.0.oxt b/files/ZAZCompaqi_v0.2.0.oxt similarity index 93% rename from files/ZAZCompaqi_v0.1.0.oxt rename to files/ZAZCompaqi_v0.2.0.oxt index 2dfab87..e08bc55 100644 Binary files a/files/ZAZCompaqi_v0.1.0.oxt and b/files/ZAZCompaqi_v0.2.0.oxt differ diff --git a/source/description.xml b/source/description.xml index cd5facd..8c8e56c 100644 --- a/source/description.xml +++ b/source/description.xml @@ -1,7 +1,7 @@ - + ZAZ Compaqi ZAZ Compaqi diff --git a/source/pythonpath/zcompaqi.py b/source/pythonpath/zcompaqi.py index 00a5381..edb0580 100644 --- a/source/pythonpath/zcompaqi.py +++ b/source/pythonpath/zcompaqi.py @@ -65,7 +65,7 @@ def _get_mov(row): importe_e = 0.0 diario = row[8].strip() or '0' description = row[7] - uuid = row[15].strip() + uuid = row[15].strip().split('|') data = dict( num_cuenta = num_cuenta, reference = reference, @@ -118,10 +118,11 @@ def _export_polizas(): line, uuid = _get_mov(row) lines.append(line) - if uuid: - uuids.add(uuid) - line = f'AM {uuid}' - lines.append(line) + if uuid[0]: + for u in uuid: + uuids.add(u) + line = f'AM {u}' + lines.append(line) if uuids: for u in uuids: @@ -135,6 +136,7 @@ def _export_polizas(): return + @app.catch_exception def _import_polizas(): if not _validate_sheets():