changeset 1148f779bd2d in modules/account_es:default
details: 
https://hg.tryton.org/modules/account_es?cmd=changeset;node=1148f779bd2d
description:
        Fill complementary declaration number with zeros on 347 report

        issue9046
        review262941002
diffstat:

 aeat347.txt   |  2 +-
 tests/347.txt |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 4cf9d23c94e8 -r 1148f779bd2d aeat347.txt
--- a/aeat347.txt       Fri Feb 07 09:15:23 2020 +0100
+++ b/aeat347.txt       Mon Feb 17 09:53:12 2020 +0100
@@ -1,4 +1,4 @@
-1347${year}${company.party.tax_identifier.code[2:]}${justify(company.rec_name.upper(),
 40)}T000000000${justify('', 40)}347${year}000001${justify('', 
15)}${format_integer(len(records), 
9)}${format_decimal(records_amount)}${format_integer(0, 
9)}${format_decimal(0)}${justify('', 315)}
+1347${year}${company.party.tax_identifier.code[2:]}${justify(company.rec_name.upper(),
 40)}T000000000${justify('', 40)}347${year}000001  
0000000000000${format_integer(len(records), 
9)}${format_decimal(records_amount)}${format_integer(0, 
9)}${format_decimal(0)}${justify('', 315)}
 {% for record in records %}\
 2347${year}${justify(identifier_code(record.company_tax_identifier), 
9)}${justify(identifier_code(record.party_tax_identifier), 9)}${justify('', 
9)}${justify(strip_accents(record.party.name.upper()), 
40)}D${justify(record.province_code, 2)}${justify(country_code(record), 2)} 
${record.code}${format_decimal(record.amount)}  
000000000000000${format_decimal(0)}0000${format_decimal(record.first_period_amount
 or 0)}${format_decimal(0)}${format_decimal(record.second_period_amount or 
0)}${format_decimal(0)}${format_decimal(record.third_period_amount or 
0)}${format_decimal(0)}${format_decimal(record.fourth_period_amount or 
0)}${format_decimal(0)}${justify('', 20)}${format_decimal(0)}${justify('', 201)}
 {% end %}\
diff -r 4cf9d23c94e8 -r 1148f779bd2d tests/347.txt
--- a/tests/347.txt     Fri Feb 07 09:15:23 2020 +0100
+++ b/tests/347.txt     Mon Feb 17 09:53:12 2020 +0100
@@ -1,2 +1,2 @@
-13472018B01000009DUNDER MIFFLIN                          T000000000            
                            3472018000001               000000001 
000000000024200000000000 000000000000000                                        
                                                                                
                                                                                
                                                                                
                                   
+13472018B01000009DUNDER MIFFLIN                          T000000000            
                            3472018000001  0000000000000000000001 
000000000024200000000000 000000000000000                                        
                                                                                
                                                                                
                                                                                
                                   
 23472018B0100000900000000T         PARTY                                   D25 
  B 000000000024200  000000000000000 0000000000000000000 000000000024200 
000000000000000 000000000000000 000000000000000 000000000000000 000000000000000 
000000000000000 000000000000000                     000000000000000             
                                                                                
                                                                                
                            

Reply via email to