Skip to content

Conversation

@glarrain
Copy link
Contributor

For parsing all the existing alternatives of an RCV CSV file for "Compra" (purchase), add these functions and their corresponding schemas:

  • parse_rcv_compra_registro_csv_file: "Registro"
  • parse_rcv_compra_no_incluir_csv_file: "No incluir"
  • parse_rcv_compra_reclamado_csv_file: "Reclamado"
  • parse_rcv_compra_pendiente_csv_file: "Pendiente"

The implementations are very similar to parse_rcv_venta_csv_file (added in PR #52, commit c4fbfc1) and its interface is very different to the old process_rcv_csv_file (among other things, instead of calling a given handler on each row it yields the row), which will be removed.

Removed code:

  • Function rcv.process_rcv_csv_file.
  • Module rcv.parse.

glarrain added 2 commits May 31, 2019 19:42
For parsing all the existing alternatives of an RCV CSV file
for "Compra" (purchase), add these functions and their
corresponding schemas:

- `parse_rcv_compra_registro_csv_file`: "Registro"
- `parse_rcv_compra_no_incluir_csv_file`: "No incluir"
- `parse_rcv_compra_reclamado_csv_file`: "Reclamado"
- `parse_rcv_compra_pendiente_csv_file`: "Pendiente"

The implementations are very similar to `parse_rcv_venta_csv_file`
(added in PR #52, commit c4fbfc1) and its interface is very
different to the old `process_rcv_csv_file` (among other things,
instead of calling a given handler on each row it yields the row),
which will be removed.

Tests have not been implemented.
And its related code.

Its name was inappropriate because it supported only an specific kind
of RCV CSV file: RCV "Compra/Registro" CSV file.

Also, the implementation was not very good.
@glarrain glarrain force-pushed the feature/rcv/add-parse_rcv_compra_X_csv_file branch from 0d1af8d to 13a7683 Compare May 31, 2019 23:42
@glarrain glarrain marked this pull request as ready for review May 31, 2019 23:42
@glarrain glarrain requested a review from a team May 31, 2019 23:42
@glarrain
Copy link
Contributor Author

CC @glarrai1

@codecov-io
Copy link

Codecov Report

Merging #59 into develop will increase coverage by 0.14%.
The diff coverage is 55.96%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #59      +/-   ##
===========================================
+ Coverage    67.54%   67.68%   +0.14%     
===========================================
  Files           20       18       -2     
  Lines         1026     1046      +20     
  Branches       154      157       +3     
===========================================
+ Hits           693      708      +15     
- Misses         286      291       +5     
  Partials        47       47
Impacted Files Coverage Δ
cl_sii/dte/parse.py 80.15% <ø> (ø) ⬆️
cl_sii/rcv/parse_csv.py 50.22% <55.96%> (+5.58%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1781c5e...13a7683. Read the comment docs.

@glarrain glarrain merged commit 67118ce into develop May 31, 2019
@glarrain glarrain deleted the feature/rcv/add-parse_rcv_compra_X_csv_file branch May 31, 2019 23:48
@glarrain glarrain mentioned this pull request Jun 13, 2019
@jtrobles-cdd jtrobles-cdd added enhancement New feature or request and removed feature labels Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: rcv enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants