~agilebg/openobject-italia/riba_v7_style

« back to all changes in this revision

Viewing changes to l10n_it_vat_registries/templates/registro_iva_vendite.mako

  • Committer: sergiocorato at gmail
  • Date: 2013-01-08 23:01:16 UTC
  • mto: This revision was merged to the branch mainline in revision 201.
  • Revision ID: sergiocorato@gmail.com-20130108230116-ewp04vwtt77asx44
[add] l10n_it_vat_registries tested in 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
    <style type="text/css">
 
4
        ${css}
 
5
        .left_with_line {
 
6
            text-align:left; vertical-align:text-top; border-top:1px solid #000; padding:5px
 
7
        }
 
8
        .right_with_line {
 
9
            text-align:right; vertical-align:text-top; border-top:1px solid #000; padding:5px
 
10
        }
 
11
        .left_without_line {
 
12
            text-align:left; vertical-align:text-top; padding:5px
 
13
        }
 
14
        .right_without_line {
 
15
            text-align:right; vertical-align:text-top; padding:5px
 
16
        }
 
17
    </style>
 
18
</head>
 
19
<body>
 
20
    <h2>Fatture Emesse</h2>
 
21
    <% setLang(objects[0].company_id.partner_id.lang or "en_US") %>
 
22
    <table style="width:100%;" cellspacing="0">
 
23
        <thead>
 
24
        <tr>
 
25
            <th class="left_without_line">Data registrazione</th>
 
26
            <th class="left_without_line">Numero</th>
 
27
            <th class="left_without_line">Ragione sociale</th>
 
28
            <th class="left_without_line">Numero fattura</th>
 
29
            <th class="left_without_line">Data fattura</th>
 
30
            <th class="left_without_line">Causale</th>
 
31
            <th class="right_without_line">Totale fattura</th>
 
32
            <th class="right_without_line">Imponibile</th>
 
33
            <th class="right_without_line">% IVA</th>
 
34
            <th class="right_without_line">Imposta</th>
 
35
            <th></th>
 
36
        </tr>
 
37
        </thead>
 
38
        <tbody>
 
39
        <% counter = 0 %>
 
40
        %for object in objects :
 
41
            <% counter += 1 %>
 
42
            %for line in tax_lines(object) :
 
43
                %if line['index']==0:
 
44
                    <tr><td class="left_with_line">
 
45
                %else:
 
46
                    <tr><td class="left_without_line">
 
47
                %endif
 
48
                %if line['index']==0:
 
49
                    ${ formatLang(object.date,date=True) or '' | entity}
 
50
                %endif
 
51
                %if line['index']==0:
 
52
                    </td><td class="left_with_line">
 
53
                %else:
 
54
                    </td><td class="left_without_line">
 
55
                %endif
 
56
                %if line['index']==0:
 
57
                    ${ counter | entity}
 
58
                %endif
 
59
                %if line['index']==0:
 
60
                    </td><td class="left_with_line">
 
61
                %else:
 
62
                    </td><td class="left_without_line">
 
63
                %endif
 
64
                %if line['index']==0:
 
65
                    ${object.partner_id.name or ''| entity}
 
66
                %endif
 
67
                %if line['index']==0:
 
68
                    </td><td class="left_with_line">
 
69
                %else:
 
70
                    </td><td class="left_without_line">
 
71
                %endif
 
72
                %if line['index']==0:
 
73
                    ${object.name or ''| entity}
 
74
                %endif
 
75
                %if line['index']==0:
 
76
                    </td><td class="left_with_line">
 
77
                %else:
 
78
                    </td><td class="left_without_line">
 
79
                %endif
 
80
                %if line['index']==0:
 
81
                    ${ formatLang(object.date,date=True) or '' | entity}
 
82
                %endif
 
83
                %if line['index']==0:
 
84
                    </td><td class="left_with_line">
 
85
                %else:
 
86
                    </td><td class="left_without_line">
 
87
                %endif
 
88
                %if line['index']==0:
 
89
                    %if line['amount_total'] >= 0:
 
90
                        Fattura
 
91
                    %else:
 
92
                        Nota di credito
 
93
                    %endif
 
94
                %endif
 
95
                %if line['index']==0:
 
96
                    </td><td class="right_with_line">
 
97
                %else:
 
98
                    </td><td class="right_without_line">
 
99
                %endif
 
100
                %if line['index']==0:
 
101
                    ${ formatLang(line['amount_total']) | entity}
 
102
                %endif
 
103
                </td>
 
104
                %if line['index']==0:
 
105
                    <td class="right_with_line">${ formatLang(line['base'])  or ''| entity}</td>
 
106
                %else:
 
107
                    <td class="right_without_line">${ formatLang(line['base'])  or ''| entity}</td>
 
108
                %endif
 
109
                %if line['index']==0:
 
110
                    <td class="right_with_line">${ line['tax_percentage'] or ''| entity}</td>
 
111
                %else:
 
112
                    <td class="right_without_line">${ line['tax_percentage'] or ''| entity}</td>
 
113
                %endif
 
114
                %if line['index']==0:
 
115
                    <td class="right_with_line">${ formatLang(line['amount'])  or ''| entity}</td>
 
116
                %else:
 
117
                    <td class="right_without_line">${ formatLang(line['amount'])  or ''| entity}</td>
 
118
                %endif
 
119
                <td></td>
 
120
                </tr>
 
121
            %endfor
 
122
        %endfor
 
123
        </tbody>
 
124
    </table>
 
125
    <div style="page-break-inside: avoid;">
 
126
        <br/>
 
127
        <table style="width:100%;  " border="1">
 
128
            <tr style="border-style:ridge;border-width:5px">
 
129
                <td colspan="3" style="padding:10; ">Periodo di stampa dal <strong>${formatLang(data['form']['date_from'],date=True)| entity}</strong> al <strong>${formatLang(data['form']['date_to'],date=True)| entity}</strong></td>
 
130
            </tr>
 
131
            <tr>
 
132
                <td rowspan="2" style="vertical-align:text-top;padding:10">
 
133
                    <table style="width:100%;">
 
134
                        <tr>
 
135
                            <th style="text-align:left">Descrizione</th>
 
136
                            <th style="text-align:right">Imponibile</th>
 
137
                            <th style="text-align:right">Imposta</th>
 
138
                        </tr>
 
139
                        %for tax_code in tax_codes :
 
140
                        <tr>
 
141
                            <td>${tax_code|entity}
 
142
                            </td><td style="text-align:right">${formatLang(tax_codes[tax_code]['base'])|entity}
 
143
                            </td><td style="text-align:right">${formatLang(tax_codes[tax_code]['amount']) or ''|entity}
 
144
                            </td>
 
145
                        </tr>
 
146
                        %endfor
 
147
                    </table>
 
148
                </td><td style="padding:10">Totale operazioni:<br/><p style="text-align:center"><strong>${formatLang(totali['totale_operazioni'])|entity}</strong></p><br/></td>
 
149
                <td style="padding:10">Totale imponibili:<br/><p style="text-align:center"><strong>${formatLang(totali['totale_imponibili'])|entity}</strong></p><br/></td>
 
150
            </tr>
 
151
            <tr>
 
152
                <td style="padding:10">Totale variazioni:<br/><p style="text-align:center"><strong>${formatLang(totali['totale_variazioni'])|entity}</strong></p><br/></td>
 
153
                <td style="padding:10">Totale IVA:<br/><p style="text-align:center"><strong>${formatLang(totali['totale_iva'])|entity}</strong></p><br/></td>
 
154
            </tr>
 
155
        </table>
 
156
    </div>
 
157
</body>
 
158
</html>