Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.63.0
current_version = 0.64.0
commit = True
tag = False
message = chore: Bump version from {current_version} to {new_version}
Expand Down
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## 0.64.0 (2025-11-20)

- (PR #941, 2025-11-20) rcv: Make IVA fields optional in schemas and data models

## 0.63.0 (2025-11-13)

- (PR #928, 2025-10-29) Do not install `setuptools` using Make tasks
Expand Down
2 changes: 1 addition & 1 deletion src/cl_sii/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

"""

__version__ = '0.63.0'
__version__ = '0.64.0'
10 changes: 5 additions & 5 deletions src/cl_sii/rcv/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,27 +302,27 @@ class RvDetalleEntry(RcvDetalleEntry):
Monto IVA
"""

iva_retenido_total: int
iva_retenido_total: Optional[int]
"""
IVA Retenido Total
"""

iva_retenido_parcial: int
iva_retenido_parcial: Optional[int]
"""
IVA Retenido Parcial
"""

iva_no_retenido: int
iva_no_retenido: Optional[int]
"""
IVA no retenido
"""

iva_propio: int
iva_propio: Optional[int]
"""
IVA propio
"""

iva_terceros: int
iva_terceros: Optional[int]
"""
IVA Terceros
"""
Expand Down
15 changes: 10 additions & 5 deletions src/cl_sii/rcv/parse_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,23 +539,28 @@ class RcvVentaCsvRowSchema(_RcvCsvRowSchemaBase):
data_key='Monto total',
)
iva_retenido_total = marshmallow.fields.Integer(
required=True,
required=False,
allow_none=True,
data_key='IVA Retenido Total',
)
iva_retenido_parcial = marshmallow.fields.Integer(
required=True,
required=False,
allow_none=True,
data_key='IVA Retenido Parcial',
)
iva_no_retenido = marshmallow.fields.Integer(
required=True,
required=False,
allow_none=True,
data_key='IVA no retenido',
)
iva_propio = marshmallow.fields.Integer(
required=True,
required=False,
allow_none=True,
data_key='IVA propio',
)
iva_terceros = marshmallow.fields.Integer(
required=True,
required=False,
allow_none=True,
data_key='IVA Terceros',
)
liquidacion_factura_emisor_rut = mm_fields.RutField(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Nro;Tipo Doc;Tipo Venta;Rut cliente;Razon Social;Folio;Fecha Docto;Fecha Recepci
;33;Del Giro;54213736-3;CHILE SPA;6541;01/09/2025;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;271;701395;18;;;;;;
2;33;Del Giro;42509414-9;COMERCIAL SPA;9874;01/09/2025;01/09/2025 09:53:17;;;0;8879040;1687018;13136156;0;0;0;0;0;-;0;0;0;0;0;;;;0;;0;2;0;0;0;;;;12354;;24;2570098;31.5
3;33;Del Giro;68840666-8;TEXAS SPA;3210;01/09/2025;01/09/2025 10:58:51;08/09/2025 14:15:23;;0;20522880;3899347;30471437;0;0;0;0;0;-;0;0;0;0;0;;;;0;;0;2;0;0;0;;;;12354;;24;6049210;31.5;
4;34;Del Giro;68840666-8;TEXAS SPA;3210;01/09/2025;01/09/2025 10:58:51;08/09/2025 14:15:23;;0;9999;3899347;30471437;0;0;0;0;0;-;0;0;0;0;0;;;;0;;0;2;0;0;0;;;;12354;;24;6049210;31.5;
4;34;Del Giro;68840666-8;TEXAS SPA;3210;01/09/2025;01/09/2025 10:58:51;08/09/2025 14:15:23;;0;9999;3899347;30471437;2020;;0;0;0;-;0;0;0;0;0;;;;0;;0;2;0;0;0;;;;12354;;24;6049210;31.5;
5;33;Del Giro;54213736-3;THE COMPANY SPA;3210;01/09/2025;01/09/2025 10:58:51;08/09/2025 14:15:23;;0;9999;3899347;30471437;0;0;0;0;0;-;0;0;0;0;0;;;;0;;0;2;0;0;0;;;;12354;;24;6049210;31.5;
;33;Del Giro;54213736-3;THE COMPANY SPA;3210;01/09/2025;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;271;701395;18;;;;;;
8 changes: 4 additions & 4 deletions src/tests/test_rcv_parse_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,8 @@ def test_parse_rcv_venta_csv_file_empty_otros_impuestos_rows(self) -> None:
monto_exento=0,
monto_neto=9999,
monto_iva=3899347,
iva_retenido_total=0,
iva_retenido_parcial=0,
iva_retenido_total=2020,
iva_retenido_parcial=None,
iva_no_retenido=0,
iva_propio=0,
iva_terceros=0,
Expand Down Expand Up @@ -1017,8 +1017,8 @@ def test_parse_rcv_venta_csv_file_empty_otros_impuestos_rows(self) -> None:
'Monto Neto': '9999',
'Monto IVA': '3899347',
'Monto total': '30471437',
'IVA Retenido Total': '0',
'IVA Retenido Parcial': '0',
'IVA Retenido Total': '2020',
'IVA Retenido Parcial': None,
'IVA no retenido': '0',
'IVA propio': '0',
'IVA Terceros': '0',
Expand Down
Loading