Ran
|
Files
106
|
Run time
5s
|
Badge
Embed ▾
README BADGES
|
travis-ci
[FIX] l10n_es_aeat_sii: float_round error in BaseImponible Extension of https://github.com/OCA/l10n-spain/pull/972/commits/8a650787f En las lineas https://github.com/OCA/l10n-spain/blob/<a class=hub.com/OCA/l10n-spain/commit/fabc3a39eda6c595045906a3a612a18a6d902f9f">fabc3a39e/l10n_es_aeat_sii/models/account_invoice.py#L491-L492 y https://github.com/OCA/l10n-spain/blob/fabc3a39eda6c595045906a3a612a18a6d902f9f/l10n_es_aeat_sii/models/account_invoice.py#L537-L538 la suma (+=) genera un error de coma flotante, para reproducir el error desde la consola Python: Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] on linux >>> 170.61 + 107.35 277.96000000000004 Example on customer exempt invoices: - "Invoice Lines" tab: * [ { quantity: 1, price_unit: 56.31, invoice_line_tax_ids: ['IVA Exento Repercutido'] }, { quantity: 58, price_unit: 0.88, invoice_line_tax_ids: ['IVA Exento Repercutido'] }, { quantity: 1, price_unit: 170.61, invoice_line_tax_ids: ['IVA Exento Repercutido'] }, ] - "SII" tab: - "General" tab: * Error de envio SII: 1100 | Valor o tipo incorrecto del campo: BaseImponible - "Technical" tab: * Último contenido enviado al SII { "FacturaExpedida": { "ClaveRegimenEspecialOTrascendencia": "01", "ImporteTotal": 277.96, "DescripcionOperacion": "/", "TipoDesglose": { "DesgloseTipoOperacion": { "PrestacionServicios": { "Sujeta": { "Exenta": { "DetalleExenta": [ { "BaseImponible": 277.96000000000004, "CausaExencion": "E1" } ] } ... (continued)
3819 of 4930 relevant lines covered (77.46%)
0.77 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|---|---|---|---|---|---|---|
16.46 | ...rae_face/models/account_invoice_integration_log.py | 155 + 91 | 79 + 53 | 13 - 7 | 66 + 60 | 1.0 - 8 | |
26.32 | l10n_es_aeat_mod347/controllers/main.py | 40 - 101 | 19 - 62 | 5 + 5 | 14 - 67 | 1.0 + 1.0 | |
29.29 | l10n_es_facturae_face/models/wsse_signature.py | 239 + 175 | 99 + 80 | 29 + 29 | 70 + 51 | 1.0 + 1.0 | |
33.33 | ..._face/models/account_invoice_integration_method.py | 34 - 578 | 15 - 403 | 5 - 104 | 10 - 299 | 1.0 - 3 | |
35.14 | l10n_es_pos/models/pos_order.py | 73 - 119 | 37 - 53 | 13 - 29 | 24 - 24 | 1.0 - 1.0 | |
35.59 | l10n_es_aeat/wizard/compare_boe_file.py | 137 + 6 | 59 - 3 | 21 - 18 | 38 + 15 | 1.0 - 2 | |
35.71 | l10n_es_aeat/models/l10n_es_aeat_map_tax.py | 61 | 28 | 10 | 18 | 1.0 | |
39.13 | l10n_es_facturae_efact/models/config.py | 46 - 11 | 23 - 1 | 9 + 9 | 14 - 10 | 1.0 + 1.0 | |
40.0 | l10n_es_facturae_face/models/res_partner.py | 31 - 6 | 15 + 6 | 6 + 6 | 9 | 1.0 + 1.0 | |
41.18 | l10n_es_location_nuts/wizard/nuts_import.py | 88 + 49 | 17 + 9 | 7 - 1 | 10 + 10 | 1.0 |