Merge lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing into lp:openerp-canada
- 7.0-l10n_ca_account_check_writing
- Merge into 7.0
Proposed by
Joao Alfredo Gama Batista
Status: | Merged |
---|---|
Merged at revision: | 10 |
Proposed branch: | lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing |
Merge into: | lp:openerp-canada |
Diff against target: |
1110 lines (+1050/-0) 10 files modified
l10n_ca_account_check_writing/__init__.py (+25/-0) l10n_ca_account_check_writing/__openerp__.py (+44/-0) l10n_ca_account_check_writing/account_voucher.py (+52/-0) l10n_ca_account_check_writing/company.py (+39/-0) l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot (+67/-0) l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml (+29/-0) l10n_ca_account_check_writing/report/__init__.py (+25/-0) l10n_ca_account_check_writing/report/l10n_ca_check_print.py (+89/-0) l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml (+342/-0) l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml (+338/-0) |
To merge this branch: | bzr merge lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maxime Chambreuil (http://www.savoirfairelinux.com) | lgtm, no test. | Approve | |
Review via email: mp+161033@code.launchpad.net |
Commit message
Description of the change
7.0 initial version based on the 6.1 branch
To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) : | # |
review:
Approve
(lgtm, no test.)
- 10. By Joao Alfredo Gama Batista
-
[MRG] Add l10n_ca_
account_ check_writing
Revision history for this message
Samir GUESMI (samir-guesmi86) wrote : | # |
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'l10n_ca_account_check_writing' | |||
2 | === added file 'l10n_ca_account_check_writing/__init__.py' | |||
3 | --- l10n_ca_account_check_writing/__init__.py 1970-01-01 00:00:00 +0000 | |||
4 | +++ l10n_ca_account_check_writing/__init__.py 2013-04-25 22:27:14 +0000 | |||
5 | @@ -0,0 +1,25 @@ | |||
6 | 1 | # -*- coding: utf-8 -*- | ||
7 | 2 | ############################################################################## | ||
8 | 3 | # | ||
9 | 4 | # OpenERP, Open Source Management Solution | ||
10 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
11 | 6 | # | ||
12 | 7 | # This program is free software: you can redistribute it and/or modify | ||
13 | 8 | # it under the terms of the GNU Affero General Public License as | ||
14 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
15 | 10 | # License, or (at your option) any later version. | ||
16 | 11 | # | ||
17 | 12 | # This program is distributed in the hope that it will be useful, | ||
18 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
19 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
20 | 15 | # GNU Affero General Public License for more details. | ||
21 | 16 | # | ||
22 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
23 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
24 | 19 | # | ||
25 | 20 | ############################################################################## | ||
26 | 21 | |||
27 | 22 | import company | ||
28 | 23 | import account_voucher | ||
29 | 24 | import report | ||
30 | 25 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
31 | 0 | 26 | ||
32 | === added file 'l10n_ca_account_check_writing/__openerp__.py' | |||
33 | --- l10n_ca_account_check_writing/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
34 | +++ l10n_ca_account_check_writing/__openerp__.py 2013-04-25 22:27:14 +0000 | |||
35 | @@ -0,0 +1,44 @@ | |||
36 | 1 | # -*- coding: utf-8 -*- | ||
37 | 2 | ############################################################################## | ||
38 | 3 | # | ||
39 | 4 | # OpenERP, Open Source Management Solution | ||
40 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
41 | 6 | # | ||
42 | 7 | # This program is free software: you can redistribute it and/or modify | ||
43 | 8 | # it under the terms of the GNU Affero General Public License as | ||
44 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
45 | 10 | # License, or (at your option) any later version. | ||
46 | 11 | # | ||
47 | 12 | # This program is distributed in the hope that it will be useful, | ||
48 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
49 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
50 | 15 | # GNU Affero General Public License for more details. | ||
51 | 16 | # | ||
52 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
53 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
54 | 19 | # | ||
55 | 20 | ############################################################################## | ||
56 | 21 | { | ||
57 | 22 | 'name': 'Canadian Check Writing', | ||
58 | 23 | 'version': '1.0', | ||
59 | 24 | 'author': 'Savoir-faire Linux', | ||
60 | 25 | 'website': 'http://www.savoirfairelinux.com', | ||
61 | 26 | 'category': 'Generic Modules/Accounting', | ||
62 | 27 | 'description': """ | ||
63 | 28 | Print checks in Canadian's format' | ||
64 | 29 | ================================== | ||
65 | 30 | |||
66 | 31 | This module provides reports to print check using the canadian format from: | ||
67 | 32 | http://www.cdnpay.ca/imis15/pdf/pdfs_rules/standard_006_fr.pdf | ||
68 | 33 | |||
69 | 34 | """, | ||
70 | 35 | 'depends': ['account_check_writing'], | ||
71 | 36 | 'data': [ | ||
72 | 37 | 'l10n_ca_account_check_writing_report.xml', | ||
73 | 38 | ], | ||
74 | 39 | 'demo': [], | ||
75 | 40 | 'test': [], | ||
76 | 41 | 'installable': True, | ||
77 | 42 | 'active': False, | ||
78 | 43 | } | ||
79 | 44 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
80 | 0 | 45 | ||
81 | === added file 'l10n_ca_account_check_writing/account_voucher.py' | |||
82 | --- l10n_ca_account_check_writing/account_voucher.py 1970-01-01 00:00:00 +0000 | |||
83 | +++ l10n_ca_account_check_writing/account_voucher.py 2013-04-25 22:27:14 +0000 | |||
84 | @@ -0,0 +1,52 @@ | |||
85 | 1 | # -*- coding: utf-8 -*- | ||
86 | 2 | ############################################################################## | ||
87 | 3 | # | ||
88 | 4 | # OpenERP, Open Source Management Solution | ||
89 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
90 | 6 | # | ||
91 | 7 | # This program is free software: you can redistribute it and/or modify | ||
92 | 8 | # it under the terms of the GNU Affero General Public License as | ||
93 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
94 | 10 | # License, or (at your option) any later version. | ||
95 | 11 | # | ||
96 | 12 | # This program is distributed in the hope that it will be useful, | ||
97 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
98 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
99 | 15 | # GNU Affero General Public License for more details. | ||
100 | 16 | # | ||
101 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
102 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
103 | 19 | # | ||
104 | 20 | ############################################################################## | ||
105 | 21 | |||
106 | 22 | from openerp.osv import orm, fields | ||
107 | 23 | |||
108 | 24 | |||
109 | 25 | class account_voucher(orm.Model): | ||
110 | 26 | _inherit = 'account.voucher' | ||
111 | 27 | |||
112 | 28 | def print_check(self, cr, uid, ids, context=None): | ||
113 | 29 | if not ids: | ||
114 | 30 | return {} | ||
115 | 31 | |||
116 | 32 | check_layout_report = { | ||
117 | 33 | 'top': 'account.print.check.top', | ||
118 | 34 | 'middle': 'account.print.check.middle', | ||
119 | 35 | 'bottom': 'account.print.check.bottom', | ||
120 | 36 | 'top_ca': 'l10n.ca.account.print.check.top', | ||
121 | 37 | 'middle_ca': 'l10n.ca.account.print.check.middle', | ||
122 | 38 | #'bottom_ca': 'l10n.ca.account.print.check.bottom', | ||
123 | 39 | } | ||
124 | 40 | |||
125 | 41 | check_layout = self.browse(cr, uid, ids[0], context=context).company_id.check_layout | ||
126 | 42 | return { | ||
127 | 43 | 'type': 'ir.actions.report.xml', | ||
128 | 44 | 'report_name': check_layout_report[check_layout], | ||
129 | 45 | 'datas': { | ||
130 | 46 | 'model': 'account.voucher', | ||
131 | 47 | 'id': ids and ids[0] or False, | ||
132 | 48 | 'ids': ids and ids or [], | ||
133 | 49 | 'report_type': 'pdf' | ||
134 | 50 | }, | ||
135 | 51 | 'nodestroy': True | ||
136 | 52 | } | ||
137 | 0 | 53 | ||
138 | === added file 'l10n_ca_account_check_writing/company.py' | |||
139 | --- l10n_ca_account_check_writing/company.py 1970-01-01 00:00:00 +0000 | |||
140 | +++ l10n_ca_account_check_writing/company.py 2013-04-25 22:27:14 +0000 | |||
141 | @@ -0,0 +1,39 @@ | |||
142 | 1 | # -*- coding: utf-8 -*- | ||
143 | 2 | ############################################################################## | ||
144 | 3 | # | ||
145 | 4 | # OpenERP, Open Source Management Solution | ||
146 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
147 | 6 | # | ||
148 | 7 | # This program is free software: you can redistribute it and/or modify | ||
149 | 8 | # it under the terms of the GNU Affero General Public License as | ||
150 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
151 | 10 | # License, or (at your option) any later version. | ||
152 | 11 | # | ||
153 | 12 | # This program is distributed in the hope that it will be useful, | ||
154 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
155 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
156 | 15 | # GNU Affero General Public License for more details. | ||
157 | 16 | # | ||
158 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
159 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
160 | 19 | # | ||
161 | 20 | ############################################################################## | ||
162 | 21 | |||
163 | 22 | from openerp.osv import orm, fields | ||
164 | 23 | |||
165 | 24 | |||
166 | 25 | class res_company(orm.Model): | ||
167 | 26 | _inherit = 'res.company' | ||
168 | 27 | |||
169 | 28 | _columns = { | ||
170 | 29 | 'check_layout': fields.selection([ | ||
171 | 30 | ('top', 'Check on Top'), | ||
172 | 31 | ('middle', 'Check in middle'), | ||
173 | 32 | ('bottom', 'Check on bottom'), | ||
174 | 33 | ('top_ca', 'Check on top (CA)'), | ||
175 | 34 | ('middle_ca', 'Check in middle (CA)'), | ||
176 | 35 | ## ('bottom_ca', 'Check on bottom (CA)'), | ||
177 | 36 | ], | ||
178 | 37 | "Choose Check layout", | ||
179 | 38 | ) | ||
180 | 39 | } | ||
181 | 0 | 40 | ||
182 | === added directory 'l10n_ca_account_check_writing/i18n' | |||
183 | === added file 'l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot' | |||
184 | --- l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot 1970-01-01 00:00:00 +0000 | |||
185 | +++ l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot 2013-04-25 22:27:14 +0000 | |||
186 | @@ -0,0 +1,67 @@ | |||
187 | 1 | # Translation of OpenERP Server. | ||
188 | 2 | # This file contains the translation of the following modules: | ||
189 | 3 | # * l10n_ca_account_check_writing | ||
190 | 4 | # | ||
191 | 5 | msgid "" | ||
192 | 6 | msgstr "" | ||
193 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | ||
194 | 8 | "Report-Msgid-Bugs-To: \n" | ||
195 | 9 | "POT-Creation-Date: 2013-04-23 20:44+0000\n" | ||
196 | 10 | "PO-Revision-Date: 2013-04-23 20:44+0000\n" | ||
197 | 11 | "Last-Translator: <>\n" | ||
198 | 12 | "Language-Team: \n" | ||
199 | 13 | "MIME-Version: 1.0\n" | ||
200 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
201 | 15 | "Content-Transfer-Encoding: \n" | ||
202 | 16 | "Plural-Forms: \n" | ||
203 | 17 | |||
204 | 18 | #. module: l10n_ca_account_check_writing | ||
205 | 19 | #: report:l10n.ca.account.print.check.middle:0 | ||
206 | 20 | msgid "Check Amount" | ||
207 | 21 | msgstr "Check Amount" | ||
208 | 22 | |||
209 | 23 | #. module: l10n_ca_account_check_writing | ||
210 | 24 | #: report:l10n.ca.account.print.check.middle:0 | ||
211 | 25 | msgid "Description" | ||
212 | 26 | msgstr "Description" | ||
213 | 27 | |||
214 | 28 | #. module: l10n_ca_account_check_writing | ||
215 | 29 | #: report:l10n.ca.account.print.check.middle:0 | ||
216 | 30 | msgid "Due Date" | ||
217 | 31 | msgstr "Due Date" | ||
218 | 32 | |||
219 | 33 | #. module: l10n_ca_account_check_writing | ||
220 | 34 | #: model:ir.actions.report.xml,name:l10n_ca_account_check_writing.l10n_ca_account_print_check_middle | ||
221 | 35 | msgid "Print Check (CA)" | ||
222 | 36 | msgstr "Print Check (CA)" | ||
223 | 37 | |||
224 | 38 | #. module: l10n_ca_account_check_writing | ||
225 | 39 | #: report:l10n.ca.account.print.check.middle:0 | ||
226 | 40 | msgid "Discount" | ||
227 | 41 | msgstr "Discount" | ||
228 | 42 | |||
229 | 43 | #. module: l10n_ca_account_check_writing | ||
230 | 44 | #: report:l10n.ca.account.print.check.middle:0 | ||
231 | 45 | msgid "Original Amount" | ||
232 | 46 | msgstr "Original Amount" | ||
233 | 47 | |||
234 | 48 | #. module: l10n_ca_account_check_writing | ||
235 | 49 | #: report:l10n.ca.account.print.check.middle:0 | ||
236 | 50 | msgid "Date" | ||
237 | 51 | msgstr "Date" | ||
238 | 52 | |||
239 | 53 | #. module: l10n_ca_account_check_writing | ||
240 | 54 | #: report:l10n.ca.account.print.check.middle:0 | ||
241 | 55 | msgid "Balance Due" | ||
242 | 56 | msgstr "Balance Due" | ||
243 | 57 | |||
244 | 58 | #. module: l10n_ca_account_check_writing | ||
245 | 59 | #: report:l10n.ca.account.print.check.middle:0 | ||
246 | 60 | msgid "Payment" | ||
247 | 61 | msgstr "Payment" | ||
248 | 62 | |||
249 | 63 | #. module: l10n_ca_account_check_writing | ||
250 | 64 | #: report:l10n.ca.account.print.check.middle:0 | ||
251 | 65 | msgid "$" | ||
252 | 66 | msgstr "$" | ||
253 | 67 | |||
254 | 0 | 68 | ||
255 | === added file 'l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml' | |||
256 | --- l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml 1970-01-01 00:00:00 +0000 | |||
257 | +++ l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml 2013-04-25 22:27:14 +0000 | |||
258 | @@ -0,0 +1,29 @@ | |||
259 | 1 | <?xml version="1.0"?> | ||
260 | 2 | <openerp> | ||
261 | 3 | <data> | ||
262 | 4 | <report id="l10n_ca_account_print_check_top" | ||
263 | 5 | string="Print Check CA (Top)" | ||
264 | 6 | model="account.voucher" | ||
265 | 7 | name="l10n.ca.account.print.check.top" | ||
266 | 8 | rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml" | ||
267 | 9 | multi="True" | ||
268 | 10 | auto="False"/> | ||
269 | 11 | |||
270 | 12 | <report id="l10n_ca_account_print_check_middle" | ||
271 | 13 | string="Print Check CA (Middle)" | ||
272 | 14 | model="account.voucher" | ||
273 | 15 | name="l10n.ca.account.print.check.middle" | ||
274 | 16 | rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml" | ||
275 | 17 | multi="True" | ||
276 | 18 | auto="False"/> | ||
277 | 19 | <!-- | ||
278 | 20 | <report id="l10n_ca_account_print_check_bottom" | ||
279 | 21 | string="Print Check (CA)" | ||
280 | 22 | model="account.voucher" | ||
281 | 23 | name="l10n.ca.account.print.check.middle" | ||
282 | 24 | rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml" | ||
283 | 25 | multi="True" | ||
284 | 26 | auto="False"/> | ||
285 | 27 | --> | ||
286 | 28 | </data> | ||
287 | 29 | </openerp> | ||
288 | 0 | 30 | ||
289 | === added directory 'l10n_ca_account_check_writing/report' | |||
290 | === added file 'l10n_ca_account_check_writing/report/__init__.py' | |||
291 | --- l10n_ca_account_check_writing/report/__init__.py 1970-01-01 00:00:00 +0000 | |||
292 | +++ l10n_ca_account_check_writing/report/__init__.py 2013-04-25 22:27:14 +0000 | |||
293 | @@ -0,0 +1,25 @@ | |||
294 | 1 | # -*- coding: utf-8 -*- | ||
295 | 2 | ############################################################################## | ||
296 | 3 | # | ||
297 | 4 | # OpenERP, Open Source Management Solution | ||
298 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
299 | 6 | # | ||
300 | 7 | # This program is free software: you can redistribute it and/or modify | ||
301 | 8 | # it under the terms of the GNU Affero General Public License as | ||
302 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
303 | 10 | # License, or (at your option) any later version. | ||
304 | 11 | # | ||
305 | 12 | # This program is distributed in the hope that it will be useful, | ||
306 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
307 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
308 | 15 | # GNU Affero General Public License for more details. | ||
309 | 16 | # | ||
310 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
311 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
312 | 19 | # | ||
313 | 20 | ############################################################################## | ||
314 | 21 | |||
315 | 22 | import l10n_ca_check_print | ||
316 | 23 | |||
317 | 24 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
318 | 25 | |||
319 | 0 | 26 | ||
320 | === added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.py' | |||
321 | --- l10n_ca_account_check_writing/report/l10n_ca_check_print.py 1970-01-01 00:00:00 +0000 | |||
322 | +++ l10n_ca_account_check_writing/report/l10n_ca_check_print.py 2013-04-25 22:27:14 +0000 | |||
323 | @@ -0,0 +1,89 @@ | |||
324 | 1 | # -*- coding: utf-8 -*- | ||
325 | 2 | ############################################################################## | ||
326 | 3 | # | ||
327 | 4 | # OpenERP, Open Source Management Solution | ||
328 | 5 | # Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>). | ||
329 | 6 | # | ||
330 | 7 | # This program is free software: you can redistribute it and/or modify | ||
331 | 8 | # it under the terms of the GNU Affero General Public License as | ||
332 | 9 | # published by the Free Software Foundation, either version 3 of the | ||
333 | 10 | # License, or (at your option) any later version. | ||
334 | 11 | # | ||
335 | 12 | # This program is distributed in the hope that it will be useful, | ||
336 | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
337 | 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
338 | 15 | # GNU Affero General Public License for more details. | ||
339 | 16 | # | ||
340 | 17 | # You should have received a copy of the GNU Affero General Public License | ||
341 | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
342 | 19 | # | ||
343 | 20 | ############################################################################## | ||
344 | 21 | |||
345 | 22 | import time | ||
346 | 23 | from openerp.report import report_sxw | ||
347 | 24 | from openerp.tools import amount_to_text_en | ||
348 | 25 | |||
349 | 26 | class report_print_check(report_sxw.rml_parse): | ||
350 | 27 | |||
351 | 28 | def __init__(self, cr, uid, name, context): | ||
352 | 29 | super(report_print_check, self).__init__(cr, uid, name, context) | ||
353 | 30 | self.number_lines = 0 | ||
354 | 31 | self.number_add = 0 | ||
355 | 32 | self.localcontext.update({ | ||
356 | 33 | 'time': time, | ||
357 | 34 | 'get_lines': self.get_lines, | ||
358 | 35 | 'fill_stars' : self.fill_stars, | ||
359 | 36 | }) | ||
360 | 37 | def fill_stars(self, amount): | ||
361 | 38 | amount = amount.replace('Dollars','') | ||
362 | 39 | if len(amount) < 100: | ||
363 | 40 | stars = 100 - len(amount) | ||
364 | 41 | return ' '.join([amount,'*'*stars]) | ||
365 | 42 | |||
366 | 43 | else: return amount | ||
367 | 44 | |||
368 | 45 | def get_lines(self, voucher_lines): | ||
369 | 46 | result = [] | ||
370 | 47 | self.number_lines = len(voucher_lines) | ||
371 | 48 | for i in range(0, min(10,self.number_lines)): | ||
372 | 49 | if i < self.number_lines: | ||
373 | 50 | res = { | ||
374 | 51 | 'date_due' : voucher_lines[i].date_due, | ||
375 | 52 | 'name' : voucher_lines[i].name, | ||
376 | 53 | 'amount_original' : voucher_lines[i].amount_original and voucher_lines[i].amount_original or False, | ||
377 | 54 | 'amount_unreconciled' : voucher_lines[i].amount_unreconciled and voucher_lines[i].amount_unreconciled or False, | ||
378 | 55 | 'amount' : voucher_lines[i].amount and voucher_lines[i].amount or False, | ||
379 | 56 | } | ||
380 | 57 | else : | ||
381 | 58 | res = { | ||
382 | 59 | 'date_due' : False, | ||
383 | 60 | 'name' : False, | ||
384 | 61 | 'amount_original' : False, | ||
385 | 62 | 'amount_due' : False, | ||
386 | 63 | 'amount' : False, | ||
387 | 64 | } | ||
388 | 65 | result.append(res) | ||
389 | 66 | return result | ||
390 | 67 | |||
391 | 68 | report_sxw.report_sxw( | ||
392 | 69 | 'report.l10n.ca.account.print.check.top', | ||
393 | 70 | 'account.voucher', | ||
394 | 71 | 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml', | ||
395 | 72 | parser=report_print_check,header=False | ||
396 | 73 | ) | ||
397 | 74 | |||
398 | 75 | report_sxw.report_sxw( | ||
399 | 76 | 'report.l10n.ca.account.print.check.middle', | ||
400 | 77 | 'account.voucher', | ||
401 | 78 | 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml', | ||
402 | 79 | parser=report_print_check,header=False | ||
403 | 80 | ) | ||
404 | 81 | |||
405 | 82 | #report_sxw.report_sxw( | ||
406 | 83 | # 'report.l10n.ca.account.print.check.bottom', | ||
407 | 84 | # 'account.voucher', | ||
408 | 85 | # 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_bottom.rml', | ||
409 | 86 | # parser=report_print_check,header=False | ||
410 | 87 | #) | ||
411 | 88 | |||
412 | 89 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
413 | 0 | 90 | ||
414 | === added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw' | |||
415 | 1 | Binary files l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw 2013-04-25 22:27:14 +0000 differ | 91 | Binary files l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw 2013-04-25 22:27:14 +0000 differ |
416 | === added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml' | |||
417 | --- l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml 1970-01-01 00:00:00 +0000 | |||
418 | +++ l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml 2013-04-25 22:27:14 +0000 | |||
419 | @@ -0,0 +1,342 @@ | |||
420 | 1 | <?xml version="1.0"?> | ||
421 | 2 | <document filename="test.pdf"> | ||
422 | 3 | <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20"> | ||
423 | 4 | <!-- Letter 612.0, 792.0 A4 595, 842 --> | ||
424 | 5 | <pageTemplate id="first"> | ||
425 | 6 | <frame id="first" x1="13.0" y1="0.0" width="567" height="785"/> | ||
426 | 7 | </pageTemplate> | ||
427 | 8 | </template> | ||
428 | 9 | <stylesheet> | ||
429 | 10 | <blockTableStyle id="Standard_Outline"> | ||
430 | 11 | <blockAlignment value="LEFT"/> | ||
431 | 12 | <blockValign value="TOP"/> | ||
432 | 13 | </blockTableStyle> | ||
433 | 14 | <blockTableStyle id="Table1"> | ||
434 | 15 | <blockAlignment value="LEFT"/> | ||
435 | 16 | <blockValign value="TOP"/> | ||
436 | 17 | </blockTableStyle> | ||
437 | 18 | <blockTableStyle id="Table4"> | ||
438 | 19 | <blockAlignment value="LEFT"/> | ||
439 | 20 | <blockValign value="TOP"/> | ||
440 | 21 | </blockTableStyle> | ||
441 | 22 | <blockTableStyle id="Table5"> | ||
442 | 23 | <blockAlignment value="LEFT"/> | ||
443 | 24 | <blockValign value="TOP"/> | ||
444 | 25 | </blockTableStyle> | ||
445 | 26 | <blockTableStyle id="Table12"> | ||
446 | 27 | <blockAlignment value="LEFT"/> | ||
447 | 28 | <blockValign value="TOP"/> | ||
448 | 29 | </blockTableStyle> | ||
449 | 30 | <blockTableStyle id="Table2"> | ||
450 | 31 | <blockAlignment value="LEFT"/> | ||
451 | 32 | <blockValign value="TOP"/> | ||
452 | 33 | </blockTableStyle> | ||
453 | 34 | <blockTableStyle id="Table6"> | ||
454 | 35 | <blockAlignment value="LEFT"/> | ||
455 | 36 | <blockValign value="TOP"/> | ||
456 | 37 | </blockTableStyle> | ||
457 | 38 | <blockTableStyle id="Table10"> | ||
458 | 39 | <blockAlignment value="LEFT"/> | ||
459 | 40 | <blockValign value="TOP"/> | ||
460 | 41 | </blockTableStyle> | ||
461 | 42 | <blockTableStyle id="Table11"> | ||
462 | 43 | <blockAlignment value="LEFT"/> | ||
463 | 44 | <blockValign value="TOP"/> | ||
464 | 45 | </blockTableStyle> | ||
465 | 46 | <blockTableStyle id="Table3"> | ||
466 | 47 | <blockAlignment value="LEFT"/> | ||
467 | 48 | <blockValign value="TOP"/> | ||
468 | 49 | </blockTableStyle> | ||
469 | 50 | <blockTableStyle id="Table7"> | ||
470 | 51 | <blockAlignment value="LEFT"/> | ||
471 | 52 | <blockValign value="TOP"/> | ||
472 | 53 | </blockTableStyle> | ||
473 | 54 | <blockTableStyle id="Table8"> | ||
474 | 55 | <blockAlignment value="LEFT"/> | ||
475 | 56 | <blockValign value="TOP"/> | ||
476 | 57 | </blockTableStyle> | ||
477 | 58 | <blockTableStyle id="Table9"> | ||
478 | 59 | <blockAlignment value="LEFT"/> | ||
479 | 60 | <blockValign value="TOP"/> | ||
480 | 61 | </blockTableStyle> | ||
481 | 62 | <initialize> | ||
482 | 63 | <paraStyle name="all" alignment="justify"/> | ||
483 | 64 | </initialize> | ||
484 | 65 | <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/> | ||
485 | 66 | <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/> | ||
486 | 67 | <paraStyle name="P3" fontName="Helvetica"/> | ||
487 | 68 | <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/> | ||
488 | 69 | <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/> | ||
489 | 70 | <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/> | ||
490 | 71 | <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
491 | 72 | <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/> | ||
492 | 73 | <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
493 | 74 | <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/> | ||
494 | 75 | <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/> | ||
495 | 76 | <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/> | ||
496 | 77 | <paraStyle name="P13" fontName="Helvetica"/> | ||
497 | 78 | <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
498 | 79 | <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
499 | 80 | <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/> | ||
500 | 81 | <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
501 | 82 | <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/> | ||
502 | 83 | <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/> | ||
503 | 84 | <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
504 | 85 | <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/> | ||
505 | 86 | <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/> | ||
506 | 87 | <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/> | ||
507 | 88 | <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/> | ||
508 | 89 | <paraStyle name="P25" fontName="Helvetica" fontSize="10.0" leading="13" alignment="RIGHT"/> | ||
509 | 90 | <paraStyle name="Standard" fontName="Helvetica"/> | ||
510 | 91 | <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/> | ||
511 | 92 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
512 | 93 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
513 | 94 | <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/> | ||
514 | 95 | <paraStyle name="Index" fontName="Helvetica"/> | ||
515 | 96 | <paraStyle name="Table Contents" fontName="Helvetica"/> | ||
516 | 97 | <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/> | ||
517 | 98 | <images/> | ||
518 | 99 | </stylesheet> | ||
519 | 100 | <story> | ||
520 | 101 | <para style="P1">[[repeatIn(objects,'voucher')]]</para> | ||
521 | 102 | <blockTable colWidths="568.0" style="Table2" rowHeights="280"> | ||
522 | 103 | <tr> | ||
523 | 104 | <td> | ||
524 | 105 | <blockTable colWidths="485.0,67.0" style="Table6"> | ||
525 | 106 | <tr> | ||
526 | 107 | <td> | ||
527 | 108 | <para style="P16"></para> | ||
528 | 109 | </td> | ||
529 | 110 | <td> | ||
530 | 111 | <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
531 | 112 | </td> | ||
532 | 113 | </tr> | ||
533 | 114 | <tr> | ||
534 | 115 | <td> | ||
535 | 116 | <para style="P16">[[voucher.partner_id.name]]</para> | ||
536 | 117 | </td> | ||
537 | 118 | <td> | ||
538 | 119 | <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para> | ||
539 | 120 | </td> | ||
540 | 121 | </tr> | ||
541 | 122 | </blockTable> | ||
542 | 123 | <blockTable colWidths="81.0,186.0,83.0,81.0,54.0,78.0" style="Table10"> | ||
543 | 124 | <tr> | ||
544 | 125 | <td> | ||
545 | 126 | <para style="P4">Due Date</para> | ||
546 | 127 | </td> | ||
547 | 128 | <td> | ||
548 | 129 | <para style="P4">Description</para> | ||
549 | 130 | </td> | ||
550 | 131 | <td> | ||
551 | 132 | <para style="P4">Original Amount</para> | ||
552 | 133 | </td> | ||
553 | 134 | <td> | ||
554 | 135 | <para style="P4">Balance Due</para> | ||
555 | 136 | </td> | ||
556 | 137 | <td> | ||
557 | 138 | <para style="P4">Discount</para> | ||
558 | 139 | </td> | ||
559 | 140 | <td> | ||
560 | 141 | <para style="P4">Payment</para> | ||
561 | 142 | </td> | ||
562 | 143 | </tr> | ||
563 | 144 | <tr> | ||
564 | 145 | <td> | ||
565 | 146 | <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para> | ||
566 | 147 | </td> | ||
567 | 148 | <td> | ||
568 | 149 | <para style="P19">[[ l['name'] ]]</para> | ||
569 | 150 | </td> | ||
570 | 151 | <td> | ||
571 | 152 | <para style="P19">[[formatLang( l['amount_original']) ]]</para> | ||
572 | 153 | </td> | ||
573 | 154 | <td> | ||
574 | 155 | <para style="P19">[[ formatLang( l['amount_due']) ]]</para> | ||
575 | 156 | </td> | ||
576 | 157 | <td> | ||
577 | 158 | <para style="P19"> | ||
578 | 159 | <font color="white"> </font> | ||
579 | 160 | </para> | ||
580 | 161 | </td> | ||
581 | 162 | <td> | ||
582 | 163 | <para style="P19">[[ formatLang (l['amount']) ]]</para> | ||
583 | 164 | </td> | ||
584 | 165 | </tr> | ||
585 | 166 | </blockTable> | ||
586 | 167 | |||
587 | 168 | <blockTable colWidths="485.0,77.0" style="Table11"> | ||
588 | 169 | <tr> | ||
589 | 170 | <td> | ||
590 | 171 | <para style="P24">Check Amount</para> | ||
591 | 172 | </td> | ||
592 | 173 | <td> | ||
593 | 174 | <para style="P23">[[ formatLang (voucher.amount) ]]</para> | ||
594 | 175 | </td> | ||
595 | 176 | </tr> | ||
596 | 177 | </blockTable> | ||
597 | 178 | |||
598 | 179 | <blockTable colWidths="485.0,77.0" rowHeights="148.0,50.0" style="Table11"> | ||
599 | 180 | <tr> | ||
600 | 181 | <td> </td> | ||
601 | 182 | <td> </td> | ||
602 | 183 | </tr> | ||
603 | 184 | <tr> | ||
604 | 185 | <td> </td> | ||
605 | 186 | <td> | ||
606 | 187 | <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
607 | 188 | </td> | ||
608 | 189 | </tr> | ||
609 | 190 | </blockTable> | ||
610 | 191 | </td> | ||
611 | 192 | </tr> | ||
612 | 193 | </blockTable> | ||
613 | 194 | |||
614 | 195 | <blockTable colWidths="400.0,50.0" rowHeights="29.3" style="Table5"> | ||
615 | 196 | <tr> | ||
616 | 197 | <td> | ||
617 | 198 | <para style="P25">Date</para> | ||
618 | 199 | </td> | ||
619 | 200 | <td> | ||
620 | 201 | <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]]</para> | ||
621 | 202 | </td> | ||
622 | 203 | </tr> | ||
623 | 204 | </blockTable> | ||
624 | 205 | |||
625 | 206 | <blockTable colWidths="30.0,538.0" rowHeights="15.0" style="Table5"> | ||
626 | 207 | <tr> | ||
627 | 208 | <td> | ||
628 | 209 | <para style="P3"><font color="white"> </font></para> | ||
629 | 210 | </td> | ||
630 | 211 | <td> | ||
631 | 212 | <para style="P26">[[ str(fill_stars(voucher.amount_in_word)) ]]</para> | ||
632 | 213 | </td> | ||
633 | 214 | </tr> | ||
634 | 215 | </blockTable> | ||
635 | 216 | |||
636 | 217 | <blockTable colWidths="568.0" style="Table1"> | ||
637 | 218 | <tr> | ||
638 | 219 | <td> | ||
639 | 220 | <blockTable colWidths="30.0,420.0,50.0" rowHeights="22.8,130.0" style="Table12"> | ||
640 | 221 | <tr> | ||
641 | 222 | <td> | ||
642 | 223 | <para style="P3"><font color="white"> </font></para> | ||
643 | 224 | </td> | ||
644 | 225 | <td> | ||
645 | 226 | <para style="P3"><font color="white"> </font></para> | ||
646 | 227 | </td> | ||
647 | 228 | <td> | ||
648 | 229 | <para style="P9">[[ formatLang(voucher.amount) ]]</para> | ||
649 | 230 | </td> | ||
650 | 231 | </tr> | ||
651 | 232 | <tr> | ||
652 | 233 | <td> | ||
653 | 234 | <para style="P3"><font color="white"> </font></para> | ||
654 | 235 | </td> | ||
655 | 236 | <td> | ||
656 | 237 | <para style="P15">[[ voucher.partner_id.name ]]</para> | ||
657 | 238 | <para style="P15">[[ display_address(voucher.partner_id) or removeParentNode('para') ]]</para> | ||
658 | 239 | </td> | ||
659 | 240 | <td> | ||
660 | 241 | <para style="P3"><font color="white"> </font></para> | ||
661 | 242 | </td> | ||
662 | 243 | </tr> | ||
663 | 244 | </blockTable> | ||
664 | 245 | <blockTable colWidths="25.0,500" rowHeights="15.0" style="Table12"> | ||
665 | 246 | <tr> | ||
666 | 247 | <td> | ||
667 | 248 | <para style="P3"><font color="white"> </font></para> | ||
668 | 249 | </td> | ||
669 | 250 | <td> | ||
670 | 251 | <para style="P3"><font color="white"> </font></para> | ||
671 | 252 | <!--para style="P15">[[ voucher.name ]]</para--> | ||
672 | 253 | </td> | ||
673 | 254 | </tr> | ||
674 | 255 | </blockTable> | ||
675 | 256 | <para style="P3"> | ||
676 | 257 | <font color="white"> </font> | ||
677 | 258 | </para> | ||
678 | 259 | </td> | ||
679 | 260 | </tr> | ||
680 | 261 | </blockTable> | ||
681 | 262 | <blockTable colWidths="568.0" style="Table3"> | ||
682 | 263 | <tr> | ||
683 | 264 | <td> | ||
684 | 265 | <blockTable colWidths="436.0,76.0,20.0" style="Table7"> | ||
685 | 266 | <tr> | ||
686 | 267 | <td> | ||
687 | 268 | <para style="P16">[[voucher.partner_id.name]]</para> | ||
688 | 269 | </td> | ||
689 | 270 | <td> | ||
690 | 271 | <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para> | ||
691 | 272 | </td> | ||
692 | 273 | <td> | ||
693 | 274 | <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
694 | 275 | </td> | ||
695 | 276 | </tr> | ||
696 | 277 | </blockTable> | ||
697 | 278 | <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8"> | ||
698 | 279 | <tr> | ||
699 | 280 | <td> | ||
700 | 281 | <para style="P4">Due Date</para> | ||
701 | 282 | </td> | ||
702 | 283 | <td> | ||
703 | 284 | <para style="P4">Description</para> | ||
704 | 285 | </td> | ||
705 | 286 | <td> | ||
706 | 287 | <para style="P4">Original Amount</para> | ||
707 | 288 | </td> | ||
708 | 289 | <td> | ||
709 | 290 | <para style="P4">Balance Due</para> | ||
710 | 291 | </td> | ||
711 | 292 | <td> | ||
712 | 293 | <para style="P4">Discount</para> | ||
713 | 294 | </td> | ||
714 | 295 | <td> | ||
715 | 296 | <para style="P4">Payment</para> | ||
716 | 297 | </td> | ||
717 | 298 | </tr> | ||
718 | 299 | <tr> | ||
719 | 300 | <td> | ||
720 | 301 | <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para> | ||
721 | 302 | </td> | ||
722 | 303 | <td> | ||
723 | 304 | <para style="P19">[[ l['name'] ]]</para> | ||
724 | 305 | </td> | ||
725 | 306 | <td> | ||
726 | 307 | <para style="P19">[[ formatLang (l['amount_original']) ]]</para> | ||
727 | 308 | </td> | ||
728 | 309 | <td> | ||
729 | 310 | <para style="P19">[[ formatLang (l['amount_due']) ]]</para> | ||
730 | 311 | </td> | ||
731 | 312 | <td> | ||
732 | 313 | <para style="P19"> | ||
733 | 314 | <font color="white"> </font> | ||
734 | 315 | </para> | ||
735 | 316 | </td> | ||
736 | 317 | <td> | ||
737 | 318 | <para style="P19">[[ formatLang (l['amount']) ]]</para> | ||
738 | 319 | </td> | ||
739 | 320 | </tr> | ||
740 | 321 | </blockTable> | ||
741 | 322 | <blockTable colWidths="485.0,77.0" style="Table9"> | ||
742 | 323 | <tr> | ||
743 | 324 | <td> | ||
744 | 325 | <para style="P24">Check Amount</para> | ||
745 | 326 | </td> | ||
746 | 327 | <td> | ||
747 | 328 | <para style="P23">[[ formatLang (voucher.amount) ]]</para> | ||
748 | 329 | </td> | ||
749 | 330 | </tr> | ||
750 | 331 | </blockTable> | ||
751 | 332 | <para style="P3"> | ||
752 | 333 | <font color="white"> </font> | ||
753 | 334 | </para> | ||
754 | 335 | </td> | ||
755 | 336 | </tr> | ||
756 | 337 | </blockTable> | ||
757 | 338 | <para style="P2"> | ||
758 | 339 | <font color="white"> </font> | ||
759 | 340 | </para> | ||
760 | 341 | </story> | ||
761 | 342 | </document> | ||
762 | 0 | 343 | ||
763 | === added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml' | |||
764 | --- l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml 1970-01-01 00:00:00 +0000 | |||
765 | +++ l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml 2013-04-25 22:27:14 +0000 | |||
766 | @@ -0,0 +1,338 @@ | |||
767 | 1 | <?xml version="1.0"?> | ||
768 | 2 | <document filename="test.pdf"> | ||
769 | 3 | <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20"> | ||
770 | 4 | <pageTemplate id="first"> | ||
771 | 5 | <frame id="first" x1="13.0" y1="0.0" width="567" height="841"/> | ||
772 | 6 | </pageTemplate> | ||
773 | 7 | </template> | ||
774 | 8 | <stylesheet> | ||
775 | 9 | <blockTableStyle id="Standard_Outline"> | ||
776 | 10 | <blockAlignment value="LEFT"/> | ||
777 | 11 | <blockValign value="TOP"/> | ||
778 | 12 | </blockTableStyle> | ||
779 | 13 | <blockTableStyle id="Table1"> | ||
780 | 14 | <blockAlignment value="LEFT"/> | ||
781 | 15 | <blockValign value="TOP"/> | ||
782 | 16 | </blockTableStyle> | ||
783 | 17 | <blockTableStyle id="Table4"> | ||
784 | 18 | <blockAlignment value="LEFT"/> | ||
785 | 19 | <blockValign value="TOP"/> | ||
786 | 20 | </blockTableStyle> | ||
787 | 21 | <blockTableStyle id="Table5"> | ||
788 | 22 | <blockAlignment value="LEFT"/> | ||
789 | 23 | <blockValign value="TOP"/> | ||
790 | 24 | </blockTableStyle> | ||
791 | 25 | <blockTableStyle id="Table12"> | ||
792 | 26 | <blockAlignment value="LEFT"/> | ||
793 | 27 | <blockValign value="TOP"/> | ||
794 | 28 | </blockTableStyle> | ||
795 | 29 | <blockTableStyle id="Table2"> | ||
796 | 30 | <blockAlignment value="LEFT"/> | ||
797 | 31 | <blockValign value="TOP"/> | ||
798 | 32 | </blockTableStyle> | ||
799 | 33 | <blockTableStyle id="Table6"> | ||
800 | 34 | <blockAlignment value="LEFT"/> | ||
801 | 35 | <blockValign value="TOP"/> | ||
802 | 36 | </blockTableStyle> | ||
803 | 37 | <blockTableStyle id="Table10"> | ||
804 | 38 | <blockAlignment value="LEFT"/> | ||
805 | 39 | <blockValign value="TOP"/> | ||
806 | 40 | </blockTableStyle> | ||
807 | 41 | <blockTableStyle id="Table11"> | ||
808 | 42 | <blockAlignment value="LEFT"/> | ||
809 | 43 | <blockValign value="TOP"/> | ||
810 | 44 | </blockTableStyle> | ||
811 | 45 | <blockTableStyle id="Table3"> | ||
812 | 46 | <blockAlignment value="LEFT"/> | ||
813 | 47 | <blockValign value="TOP"/> | ||
814 | 48 | </blockTableStyle> | ||
815 | 49 | <blockTableStyle id="Table7"> | ||
816 | 50 | <blockAlignment value="LEFT"/> | ||
817 | 51 | <blockValign value="TOP"/> | ||
818 | 52 | </blockTableStyle> | ||
819 | 53 | <blockTableStyle id="Table8"> | ||
820 | 54 | <blockAlignment value="LEFT"/> | ||
821 | 55 | <blockValign value="TOP"/> | ||
822 | 56 | </blockTableStyle> | ||
823 | 57 | <blockTableStyle id="Table9"> | ||
824 | 58 | <blockAlignment value="LEFT"/> | ||
825 | 59 | <blockValign value="TOP"/> | ||
826 | 60 | </blockTableStyle> | ||
827 | 61 | <initialize> | ||
828 | 62 | <paraStyle name="all" alignment="justify"/> | ||
829 | 63 | </initialize> | ||
830 | 64 | <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/> | ||
831 | 65 | <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/> | ||
832 | 66 | <paraStyle name="P3" fontName="Helvetica"/> | ||
833 | 67 | <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/> | ||
834 | 68 | <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/> | ||
835 | 69 | <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/> | ||
836 | 70 | <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
837 | 71 | <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/> | ||
838 | 72 | <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
839 | 73 | <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/> | ||
840 | 74 | <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/> | ||
841 | 75 | <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/> | ||
842 | 76 | <paraStyle name="P13" fontName="Helvetica"/> | ||
843 | 77 | <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
844 | 78 | <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/> | ||
845 | 79 | <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/> | ||
846 | 80 | <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
847 | 81 | <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/> | ||
848 | 82 | <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/> | ||
849 | 83 | <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/> | ||
850 | 84 | <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/> | ||
851 | 85 | <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/> | ||
852 | 86 | <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/> | ||
853 | 87 | <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/> | ||
854 | 88 | <paraStyle name="Standard" fontName="Helvetica"/> | ||
855 | 89 | <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/> | ||
856 | 90 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
857 | 91 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | ||
858 | 92 | <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/> | ||
859 | 93 | <paraStyle name="Index" fontName="Helvetica"/> | ||
860 | 94 | <paraStyle name="Table Contents" fontName="Helvetica"/> | ||
861 | 95 | <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/> | ||
862 | 96 | <images/> | ||
863 | 97 | </stylesheet> | ||
864 | 98 | <story> | ||
865 | 99 | <para style="P1">[[repeatIn(objects,'voucher')]]</para> | ||
866 | 100 | <blockTable colWidths="568.0" style="Table1"> | ||
867 | 101 | <tr> | ||
868 | 102 | <td> | ||
869 | 103 | <blockTable colWidths="425.0,177.0" rowHeights="107.50,25.5" style="Table4"> | ||
870 | 104 | <tr> | ||
871 | 105 | <td> | ||
872 | 106 | <para style="P6"> | ||
873 | 107 | <font color="white"> </font> | ||
874 | 108 | </para> | ||
875 | 109 | </td> | ||
876 | 110 | <td> | ||
877 | 111 | <para style="P6"> | ||
878 | 112 | <font color="white"> </font> | ||
879 | 113 | </para> | ||
880 | 114 | </td> | ||
881 | 115 | </tr> | ||
882 | 116 | <tr> | ||
883 | 117 | <td> | ||
884 | 118 | <para style="P6"> | ||
885 | 119 | <font color="white"> </font> | ||
886 | 120 | </para> | ||
887 | 121 | </td> | ||
888 | 122 | <td> | ||
889 | 123 | <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
890 | 124 | </td> | ||
891 | 125 | </tr> | ||
892 | 126 | </blockTable> | ||
893 | 127 | <blockTable colWidths="54.0,425.0,85.0" rowHeights="21.5" style="Table4"> | ||
894 | 128 | <tr> | ||
895 | 129 | <td> | ||
896 | 130 | <para style="P6"> | ||
897 | 131 | <font color="white"> </font> | ||
898 | 132 | </para> | ||
899 | 133 | </td> | ||
900 | 134 | <td> | ||
901 | 135 | <para style="P9">[[ voucher.partner_id.name ]] </para> | ||
902 | 136 | </td> | ||
903 | 137 | <td> | ||
904 | 138 | <para style="P12">[[ formatLang (voucher.amount) ]]</para> | ||
905 | 139 | </td> | ||
906 | 140 | </tr> | ||
907 | 141 | </blockTable> | ||
908 | 142 | <blockTable colWidths="550.0" rowHeights="18" style="Table5"> | ||
909 | 143 | <tr> | ||
910 | 144 | <td> | ||
911 | 145 | <para style="P9">[[ fill_stars(voucher.amount_in_word) ]]</para> | ||
912 | 146 | </td> | ||
913 | 147 | </tr> | ||
914 | 148 | </blockTable> | ||
915 | 149 | <blockTable colWidths="54.0,425.0,85.0" rowHeights="45.5" style="Table4"> | ||
916 | 150 | <tr> | ||
917 | 151 | <td> | ||
918 | 152 | <para style="P6"></para> | ||
919 | 153 | </td> | ||
920 | 154 | <td> | ||
921 | 155 | <para style="P9">[[ voucher.partner_id.name ]] </para> | ||
922 | 156 | <para style="P15">[[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street2 or removeParentNode('para') ]]</para> | ||
923 | 157 | <para style="P15">[[ get_zip_line(voucher.partner_id.address[0]) ]] </para> | ||
924 | 158 | <para style="P15">[[ voucher.partner_id.address[0].country_id.name]]</para> | ||
925 | 159 | </td> | ||
926 | 160 | <td> | ||
927 | 161 | <para/> | ||
928 | 162 | </td> | ||
929 | 163 | </tr> | ||
930 | 164 | </blockTable> | ||
931 | 165 | <blockTable colWidths="25.0,350,150" rowHeights="10.5" style="Table12"> | ||
932 | 166 | <tr> | ||
933 | 167 | <td> | ||
934 | 168 | <para style="P3"> | ||
935 | 169 | <font color="white"> </font> | ||
936 | 170 | </para> | ||
937 | 171 | </td> | ||
938 | 172 | <td> | ||
939 | 173 | <para style="P15">[[ voucher.name ]]</para> | ||
940 | 174 | </td> | ||
941 | 175 | <td> | ||
942 | 176 | <para style="P3"> | ||
943 | 177 | <font color="white"> </font> | ||
944 | 178 | </para> | ||
945 | 179 | </td> | ||
946 | 180 | </tr> | ||
947 | 181 | </blockTable> | ||
948 | 182 | <para style="P3"> | ||
949 | 183 | <font color="white"> </font> | ||
950 | 184 | </para> | ||
951 | 185 | </td> | ||
952 | 186 | </tr> | ||
953 | 187 | </blockTable> | ||
954 | 188 | <blockTable colWidths="568.0" style="Table2" rowHeights="255"> | ||
955 | 189 | <tr> | ||
956 | 190 | <td> | ||
957 | 191 | <blockTable colWidths="445.0,117.0" style="Table6"> | ||
958 | 192 | <tr> | ||
959 | 193 | <td> | ||
960 | 194 | <para style="P16">[[voucher.partner_id.name]]</para> | ||
961 | 195 | </td> | ||
962 | 196 | <td> | ||
963 | 197 | <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
964 | 198 | </td> | ||
965 | 199 | </tr> | ||
966 | 200 | </blockTable> | ||
967 | 201 | <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table10"> | ||
968 | 202 | <tr> | ||
969 | 203 | <td> | ||
970 | 204 | <para style="P4">Due Date</para> | ||
971 | 205 | </td> | ||
972 | 206 | <td> | ||
973 | 207 | <para style="P4">Description</para> | ||
974 | 208 | </td> | ||
975 | 209 | <td> | ||
976 | 210 | <para style="P4">Original Amount</para> | ||
977 | 211 | </td> | ||
978 | 212 | <td> | ||
979 | 213 | <para style="P4">Open Balance</para> | ||
980 | 214 | </td> | ||
981 | 215 | <td> | ||
982 | 216 | <para style="P4">Discount</para> | ||
983 | 217 | </td> | ||
984 | 218 | <td> | ||
985 | 219 | <para style="P4">Payment</para> | ||
986 | 220 | </td> | ||
987 | 221 | </tr> | ||
988 | 222 | <tr> | ||
989 | 223 | <td> | ||
990 | 224 | <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para> | ||
991 | 225 | </td> | ||
992 | 226 | <td> | ||
993 | 227 | <para style="P19">[[ l['name'] ]]</para> | ||
994 | 228 | </td> | ||
995 | 229 | <td> | ||
996 | 230 | <para style="P19">[[formatLang( l['amount_original']) ]]</para> | ||
997 | 231 | </td> | ||
998 | 232 | <td> | ||
999 | 233 | <para style="P19">[[ formatLang( l['amount_unreconciled']) ]]</para> | ||
1000 | 234 | </td> | ||
1001 | 235 | <td> | ||
1002 | 236 | <para style="P19"> | ||
1003 | 237 | <font color="white"> </font> | ||
1004 | 238 | </para> | ||
1005 | 239 | </td> | ||
1006 | 240 | <td> | ||
1007 | 241 | <para style="P19">[[ formatLang (l['amount']) ]]</para> | ||
1008 | 242 | </td> | ||
1009 | 243 | </tr> | ||
1010 | 244 | </blockTable> | ||
1011 | 245 | <blockTable colWidths="485.0,77.0" style="Table11"> | ||
1012 | 246 | <tr> | ||
1013 | 247 | <td> | ||
1014 | 248 | <para style="P24">Check Amount</para> | ||
1015 | 249 | </td> | ||
1016 | 250 | <td> | ||
1017 | 251 | <para style="P23">[[ formatLang (voucher.amount) ]]</para> | ||
1018 | 252 | </td> | ||
1019 | 253 | </tr> | ||
1020 | 254 | </blockTable> | ||
1021 | 255 | <para style="P3"> | ||
1022 | 256 | <font color="white"> </font> | ||
1023 | 257 | </para> | ||
1024 | 258 | </td> | ||
1025 | 259 | </tr> | ||
1026 | 260 | </blockTable> | ||
1027 | 261 | <blockTable colWidths="568.0" style="Table3"> | ||
1028 | 262 | <tr> | ||
1029 | 263 | <td> | ||
1030 | 264 | <blockTable colWidths="446.0,116.0" style="Table7"> | ||
1031 | 265 | <tr> | ||
1032 | 266 | <td> | ||
1033 | 267 | <para style="P16">[[voucher.partner_id.name]]</para> | ||
1034 | 268 | </td> | ||
1035 | 269 | <td> | ||
1036 | 270 | <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para> | ||
1037 | 271 | </td> | ||
1038 | 272 | </tr> | ||
1039 | 273 | </blockTable> | ||
1040 | 274 | <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8"> | ||
1041 | 275 | <tr> | ||
1042 | 276 | <td> | ||
1043 | 277 | <para style="P4">Due Date</para> | ||
1044 | 278 | </td> | ||
1045 | 279 | <td> | ||
1046 | 280 | <para style="P4">Description</para> | ||
1047 | 281 | </td> | ||
1048 | 282 | <td> | ||
1049 | 283 | <para style="P4">Original Amount</para> | ||
1050 | 284 | </td> | ||
1051 | 285 | <td> | ||
1052 | 286 | <para style="P4">Open Balance</para> | ||
1053 | 287 | </td> | ||
1054 | 288 | <td> | ||
1055 | 289 | <para style="P4">Discount</para> | ||
1056 | 290 | </td> | ||
1057 | 291 | <td> | ||
1058 | 292 | <para style="P4">Payment</para> | ||
1059 | 293 | </td> | ||
1060 | 294 | </tr> | ||
1061 | 295 | <tr> | ||
1062 | 296 | <td> | ||
1063 | 297 | <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para> | ||
1064 | 298 | </td> | ||
1065 | 299 | <td> | ||
1066 | 300 | <para style="P19">[[ l['name'] ]]</para> | ||
1067 | 301 | </td> | ||
1068 | 302 | <td> | ||
1069 | 303 | <para style="P19">[[ formatLang (l['amount_original']) ]]</para> | ||
1070 | 304 | </td> | ||
1071 | 305 | <td> | ||
1072 | 306 | <para style="P19">[[ formatLang (l['amount_unreconciled']) ]]</para> | ||
1073 | 307 | </td> | ||
1074 | 308 | <td> | ||
1075 | 309 | <para style="P19"> | ||
1076 | 310 | <font color="white"> </font> | ||
1077 | 311 | </para> | ||
1078 | 312 | </td> | ||
1079 | 313 | <td> | ||
1080 | 314 | <para style="P19">[[ formatLang (l['amount']) ]]</para> | ||
1081 | 315 | </td> | ||
1082 | 316 | </tr> | ||
1083 | 317 | </blockTable> | ||
1084 | 318 | <blockTable colWidths="485.0,77.0" style="Table9"> | ||
1085 | 319 | <tr> | ||
1086 | 320 | <td> | ||
1087 | 321 | <para style="P17">Check Amount</para> | ||
1088 | 322 | </td> | ||
1089 | 323 | <td> | ||
1090 | 324 | <para style="P16">[[ formatLang (voucher.amount) ]]</para> | ||
1091 | 325 | </td> | ||
1092 | 326 | </tr> | ||
1093 | 327 | </blockTable> | ||
1094 | 328 | <para style="P3"> | ||
1095 | 329 | <font color="white"> </font> | ||
1096 | 330 | </para> | ||
1097 | 331 | </td> | ||
1098 | 332 | </tr> | ||
1099 | 333 | </blockTable> | ||
1100 | 334 | <para style="P2"> | ||
1101 | 335 | <font color="white"> </font> | ||
1102 | 336 | </para> | ||
1103 | 337 | </story> | ||
1104 | 338 | </document> | ||
1105 | 0 | 339 | ||
1106 | === added directory 'l10n_ca_account_check_writing/static' | |||
1107 | === added directory 'l10n_ca_account_check_writing/static/src' | |||
1108 | === added directory 'l10n_ca_account_check_writing/static/src/img' | |||
1109 | === added file 'l10n_ca_account_check_writing/static/src/img/icon.png' | |||
1110 | 1 | Binary files l10n_ca_account_check_writing/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/static/src/img/icon.png 2013-04-25 22:27:14 +0000 differ | 340 | Binary files l10n_ca_account_check_writing/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/static/src/img/icon.png 2013-04-25 22:27:14 +0000 differ |
hi guys !
if someone have any idea , how to make OPENERP V7 work with 3 digit to
compute .
when i try to do a bank statement , he still validate with 2 digit ,
exemple :
Starting Balance DTEnding Balance DT is not true , and he accept :
Starting Balance DTEnding Balance DT
this like true.
2013/4/25 <email address hidden>
> The proposal to merge /code.launchpad .net/~openerp- community/ openerp- canada/ 7.0-l10n_ ca_account_ check_writing/ +merge/ 161033 /code.launchpad .net/~openerp- community/ openerp- canada/ 7.0-l10n_ ca_account_ check_writing/ +merge/ 161033 _______ _______ _______ _______ _______ _____ /launchpad. net/~openerp- community /launchpad. net/~openerp- community /help.launchpad .net/ListHelp
> lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing into
> lp:openerp-canada has been updated.
>
> Status: Needs review => Merged
>
> For more details, see:
>
> https:/
> --
>
> https:/
> Your team OpenERP Community is subscribed to branch
> lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>