Commit graph

246 commits

Author SHA1 Message Date
Bernat Brunet
2230841a8c Fix problem when set month the moment when is created the 347 regsiter from invoice. Us the accounting_date and if it's None the invoice_date. Fix PEP8. 2023-02-14 12:05:47 +01:00
Juanjo Garcia
340ff61dd7 Merge branch '5.4' of github.com:nan-tic/trytond-aeat_347 into 5.4 2023-01-26 10:40:01 +01:00
Juanjo Garcia
c028bd275d Add company in report query when calculate.
Task #073006
2023-01-26 10:39:01 +01:00
juanjo-nan
f265b8fe3a Add new IVA Deducible 0%. (#7)
FIX IVA Deducible 5%.

Task #073006
2023-01-23 15:57:23 +01:00
Juanjo Garcia
5ab7726f67 Add new tax IVA 0.
Task #073006
2023-01-09 11:31:38 +01:00
juanjo-nan
7fbee3f936
Add new tax IVA 5. (#6)
Task #073006
2023-01-04 10:21:19 +01:00
Raimon Esteve
398d499e3e Replace fiscalyear to year report
#059815
2022-11-08 10:52:26 +01:00
Bernat Brunet
03c6ad1102 Remove Intracomunitari taxes setter because they are remove from account_es. 2022-03-09 14:12:36 +01:00
Bernat Brunet
d3ed78a64a Fix problme when some numerics fields ara None, conert to Decimal('0.0')
because retrofix need in this way.

Task #049774
2022-02-24 09:38:59 +01:00
Bernat Brunet
66750aa79b Remove not used functional field on aeat_347_report model 2022-02-22 22:29:08 +01:00
Bernat Brunet
e3defa9fc5 Intracomunitary taxes need to be ignored in 347 report. 2022-02-08 14:48:00 +01:00
Bernat Brunet
9ff546f1a2 Remove the setter of the operation 347 on the tax iva_dev_AI and iva_dev_AI_serv becaue they are removed on account_es module 2022-02-08 11:42:46 +01:00
Raimon Esteve
c9ee8c0314 Get AssertionError when retrofix_write()
#048685
2022-01-18 10:53:37 +01:00
Bernat Brunet
e957830476 Update IRPF tax set operation_347 field 2021-08-16 18:22:17 +02:00
Bernat Brunet
d43aa52ccd Fix bug in TAX call name 2021-08-12 10:46:59 +02:00
Bernat Brunet
a242218ce3 Remove some not nercessari 'Intracomunitariy' tax set.
Set new REAGP taxes

Remove group in form view not needed.

Fix PEP8
2021-08-11 14:22:55 +02:00
Raimon Esteve
152baca147 Not get tax when tax is none
#044048
2021-05-27 11:17:58 +02:00
Bernat
4e150084cf Add operation definition for the new 'No sujeto' tax (#3)
* Add operation definition for the new 'No sujeto' tax

* Fix province_code set value. Set char not int.
2021-02-16 16:25:52 +01:00
Bernat Brunet
f65460ab4a Fix translation 2020-12-30 07:54:36 +01:00
Bernat Brunet
201471c85b Fix test and view with the updated field party_tax_identifier name 2020-12-30 00:45:41 +01:00
Bernat
8eb5920b99
042240 (#2)
* Change the way that 347 records are grouped, using the tax_identifier.

Use some account_es new functions to take country code and code
(NIF/CIF) from tax_identifier.

Update unit test.
2020-12-29 23:42:36 +01:00
Raimon Esteve
522cc23d83 Remove group_aeat_347_admin 2020-11-30 13:53:19 +01:00
Raimon Esteve
5b6dd37c74 Adapt to remove create_invoice_credit_with_refund patch 2020-11-30 11:04:34 +01:00
Bernat Brunet
19d58471c0 Fix bug when create registers for each tax identifier. 2020-11-30 10:14:57 +01:00
Raimon Esteve
8f86b41943 FIX get code from party_tax_identifier when is none
#042301
2020-11-27 13:31:40 +01:00
Jared Esparza
6dee59d300 Fix bug if there is more than one party identifier 2020-11-25 14:52:23 +01:00
Raimon Esteve
deccd11b8e Set iaeat347_operation_key when create an invoice
#041863
2020-11-24 10:34:32 +01:00
Bernat Brunet
266368ac71 Remove party module files not used and not needed.
Refactorized the registers calculation. Now are based and grouped by the tax idetifier set in the invoice.

This change is done to make an approach to the account_es core module
for a possible future migration.
2020-11-19 13:13:15 +01:00
Bernat Brunet
c1e1996465 Fix bug in the remove of include_347 tax rule used before 2020-11-09 17:59:06 +01:00
Raimon Esteve
14633959f5 Check 347 taxes when has a tax
#041304
2020-09-17 10:49:36 +02:00
Victor Ramos
9c4625fbf7 Fix Invoice.__register__ 2020-05-26 11:16:24 +02:00
Raimon Esteve
36bb0e2d1d add missing tax template form view 2020-05-06 18:41:49 +02:00
Àngel Àlvarez
419ff9cd2e fix setup, test still failing 2020-05-03 16:16:23 +02:00
Àngel Àlvarez
e02ad85566 Modify tox and add Jenkisfile 2020-04-11 18:31:49 +02:00
Bernat Brunet
7b2326ddfe Add default values on required decimals fields to control that they are filled if create manually the party register. 2020-03-03 12:51:54 +01:00
carlosgalvez-nan
ef8b659f71 Ensure sum functions doesn't receive None values 2020-02-26 10:25:56 +01:00
Albert Cervera i Areny
1f30a2288c Adapt tests to latest changes 2019-12-06 01:47:49 +01:00
Bernat Brunet Torruella
3bc6aeea06 Fix None key on selection field 2019-11-28 10:46:07 +01:00
Bernat Brunet Torruella
cb82f5d425 Change the 347 cehck from party to tax, and change the calculation of the 347 registers. Now it's possible to have some invoices wih lines added in the 347 and lines without. 2019-11-26 10:15:20 +01:00
Albert Cervera i Areny
f19ff9c95d In scenario, do not set fields that do not exist or are not necessary. 2019-11-17 11:08:38 +01:00
?ngel ?lvarez
2741d5ac34 Create branch 5.4 2019-11-14 10:58:11 +01:00
?ngel ?lvarez
d0962cff68 increase version 2019-11-14 10:57:01 +01:00
Bernat Brunet Torruella
c5bcae9043 In account_es has been removed IGIC and Criterio de Caja taxes, so remove it's relations. 2019-09-26 09:46:49 +02:00
Juanjo Garcia
03a4b4fce5 Use grouped attribute on message.xml 2019-09-04 12:07:53 +02:00
Bernat Brunet Torruella
519c39df3d Fix bug on inherit function. Add 347 field in tax rule view. Add special Nacional rule without 347 field checked, needed for example on Assurance companies 2019-07-19 12:36:07 +02:00
Bernat Brunet Torruella
09e26924dc Fix XML file tags 2019-07-18 18:00:19 +02:00
Bernat Brunet Torruella
8de408ae89 Add the possibility to dissable 347 field throw tax rules. In some case even though the VAT is ES, you don't have to add this party invoices to 347 model 2019-07-18 17:30:01 +02:00
Raimon Esteve
dbaa96b801 Not duplicate parties that has multiples identifiers and optimize get party values to calculate report 2019-07-01 17:54:13 +02:00
?ngel ?lvarez
1adb50f45d fix query to include party only with include-_347 mark 2019-06-23 15:36:12 +02:00
?ngel ?lvarez
6266d826fb create branch 5.2 2019-05-07 11:24:12 +02:00