update readme screenshot and add section about rounding
All checks were successful
Generate check / check-changes (push) Successful in 4s
Generate check / check-generate (push) Has been skipped
Generate check / check-changes (pull_request) Successful in 3s
Quality / check-changes (pull_request) Successful in 3s
Generate check / check-generate (pull_request) Has been skipped
Quality / tests (pull_request) Successful in 14s
All checks were successful
Generate check / check-changes (push) Successful in 4s
Generate check / check-generate (push) Has been skipped
Generate check / check-changes (pull_request) Successful in 3s
Quality / check-changes (pull_request) Successful in 3s
Generate check / check-generate (pull_request) Has been skipped
Quality / tests (pull_request) Successful in 14s
This commit is contained in:
13
README.md
13
README.md
@@ -3,16 +3,15 @@
|
|||||||
[](https://goreportcard.com/report/github.com/nmoniz/any2anexoj)
|
[](https://goreportcard.com/report/github.com/nmoniz/any2anexoj)
|
||||||
[](https://coveralls.io/github/nmoniz/any2anexoj?branch=coveralls-badge)
|
[](https://coveralls.io/github/nmoniz/any2anexoj?branch=coveralls-badge)
|
||||||
|
|
||||||

|
<p align="center">
|
||||||
|
<img src="https://i.ibb.co/0yRtwq2C/0-FBA40-FD-D97-A-4-AFB-8618-49582-DB98-F3-C.png" alt="Screenshot" with="600" border="0">
|
||||||
|
</p>
|
||||||
|
|
||||||
This tool converts the statements from known brokers and exchanges into a format compatible with section 9 from the Portuguese IRS form: [Mod_3_anexo_j](https://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/modelos_formularios/irs/Documents/Mod_3_anexo_J.pdf)
|
This tool converts the statements from known brokers and exchanges into a format compatible with section 9 from the Portuguese IRS form: [Mod_3_anexo_j](https://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/modelos_formularios/irs/Documents/Mod_3_anexo_J.pdf)
|
||||||
|
|
||||||
> [!WARNING]
|
> [!WARNING]
|
||||||
> Although I made significant efforts to ensure the correctness of the calculations you should verify any outputs produced by this tool on your own or with a certified accountant.
|
> Although I made significant efforts to ensure the correctness of the calculations you should verify any outputs produced by this tool on your own or with a certified accountant.
|
||||||
|
|
||||||
> [!NOTE]
|
|
||||||
> This tool is in early stages of development. Use at your own risk!
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -24,3 +23,9 @@ go install github.com/nmoniz/any2anexoj/cmd/any2anexoj-cli@latest
|
|||||||
```bash
|
```bash
|
||||||
cat statement.csv | any2anexoj-cli --platform=tranding212
|
cat statement.csv | any2anexoj-cli --platform=tranding212
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Rounding
|
||||||
|
|
||||||
|
All Euro values are rounded to cents (2 decimal places) but internal calculations use the statement values with full precision.
|
||||||
|
There are no explicit rules or details about how to round Euro values in Anexo J.
|
||||||
|
This application rounds according to `Portaria n.º 1180/2001, art. 2.º, alínea c) e d)` (Ministerial Order / Government Order) examples, which imply we should round to the 2nd decimal place by rounding up (ceiling) or down (floor) depending on whether the third decimal place is ≥ 5 or < 5, respectively.
|
||||||
|
|||||||
Reference in New Issue
Block a user