Merge lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing into lp:openerp-canada

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
Reviewer Review Type Date Requested Status
Maxime Chambreuil (http://www.savoirfairelinux.com) lgtm, no test. Approve
Review via email: mp+161033@code.launchpad.net

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 :

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
> 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://code.launchpad.net/~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing/+merge/161033
> --
>
> https://code.launchpad.net/~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing/+merge/161033
> Your team OpenERP Community is subscribed to branch
> lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openerp-community
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openerp-community
> More help : https://help.launchpad.net/ListHelp
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'l10n_ca_account_check_writing'
=== added file 'l10n_ca_account_check_writing/__init__.py'
--- l10n_ca_account_check_writing/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/__init__.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import company
23import account_voucher
24import report
25# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
026
=== added file 'l10n_ca_account_check_writing/__openerp__.py'
--- l10n_ca_account_check_writing/__openerp__.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/__openerp__.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,44 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21{
22 'name': 'Canadian Check Writing',
23 'version': '1.0',
24 'author': 'Savoir-faire Linux',
25 'website': 'http://www.savoirfairelinux.com',
26 'category': 'Generic Modules/Accounting',
27 'description': """
28Print checks in Canadian's format'
29==================================
30
31This module provides reports to print check using the canadian format from:
32http://www.cdnpay.ca/imis15/pdf/pdfs_rules/standard_006_fr.pdf
33
34 """,
35 'depends': ['account_check_writing'],
36 'data': [
37 'l10n_ca_account_check_writing_report.xml',
38 ],
39 'demo': [],
40 'test': [],
41 'installable': True,
42 'active': False,
43}
44# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
045
=== added file 'l10n_ca_account_check_writing/account_voucher.py'
--- l10n_ca_account_check_writing/account_voucher.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/account_voucher.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,52 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from openerp.osv import orm, fields
23
24
25class account_voucher(orm.Model):
26 _inherit = 'account.voucher'
27
28 def print_check(self, cr, uid, ids, context=None):
29 if not ids:
30 return {}
31
32 check_layout_report = {
33 'top': 'account.print.check.top',
34 'middle': 'account.print.check.middle',
35 'bottom': 'account.print.check.bottom',
36 'top_ca': 'l10n.ca.account.print.check.top',
37 'middle_ca': 'l10n.ca.account.print.check.middle',
38 #'bottom_ca': 'l10n.ca.account.print.check.bottom',
39 }
40
41 check_layout = self.browse(cr, uid, ids[0], context=context).company_id.check_layout
42 return {
43 'type': 'ir.actions.report.xml',
44 'report_name': check_layout_report[check_layout],
45 'datas': {
46 'model': 'account.voucher',
47 'id': ids and ids[0] or False,
48 'ids': ids and ids or [],
49 'report_type': 'pdf'
50 },
51 'nodestroy': True
52 }
053
=== added file 'l10n_ca_account_check_writing/company.py'
--- l10n_ca_account_check_writing/company.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/company.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,39 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22from openerp.osv import orm, fields
23
24
25class res_company(orm.Model):
26 _inherit = 'res.company'
27
28 _columns = {
29 'check_layout': fields.selection([
30 ('top', 'Check on Top'),
31 ('middle', 'Check in middle'),
32 ('bottom', 'Check on bottom'),
33 ('top_ca', 'Check on top (CA)'),
34 ('middle_ca', 'Check in middle (CA)'),
35 ## ('bottom_ca', 'Check on bottom (CA)'),
36 ],
37 "Choose Check layout",
38 )
39 }
040
=== added directory 'l10n_ca_account_check_writing/i18n'
=== added file 'l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot'
--- l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/i18n/l10n_ca_account_check_writing.pot 2013-04-25 22:27:14 +0000
@@ -0,0 +1,67 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3# * l10n_ca_account_check_writing
4#
5msgid ""
6msgstr ""
7"Project-Id-Version: OpenERP Server 6.1\n"
8"Report-Msgid-Bugs-To: \n"
9"POT-Creation-Date: 2013-04-23 20:44+0000\n"
10"PO-Revision-Date: 2013-04-23 20:44+0000\n"
11"Last-Translator: <>\n"
12"Language-Team: \n"
13"MIME-Version: 1.0\n"
14"Content-Type: text/plain; charset=UTF-8\n"
15"Content-Transfer-Encoding: \n"
16"Plural-Forms: \n"
17
18#. module: l10n_ca_account_check_writing
19#: report:l10n.ca.account.print.check.middle:0
20msgid "Check Amount"
21msgstr "Check Amount"
22
23#. module: l10n_ca_account_check_writing
24#: report:l10n.ca.account.print.check.middle:0
25msgid "Description"
26msgstr "Description"
27
28#. module: l10n_ca_account_check_writing
29#: report:l10n.ca.account.print.check.middle:0
30msgid "Due Date"
31msgstr "Due Date"
32
33#. module: l10n_ca_account_check_writing
34#: model:ir.actions.report.xml,name:l10n_ca_account_check_writing.l10n_ca_account_print_check_middle
35msgid "Print Check (CA)"
36msgstr "Print Check (CA)"
37
38#. module: l10n_ca_account_check_writing
39#: report:l10n.ca.account.print.check.middle:0
40msgid "Discount"
41msgstr "Discount"
42
43#. module: l10n_ca_account_check_writing
44#: report:l10n.ca.account.print.check.middle:0
45msgid "Original Amount"
46msgstr "Original Amount"
47
48#. module: l10n_ca_account_check_writing
49#: report:l10n.ca.account.print.check.middle:0
50msgid "Date"
51msgstr "Date"
52
53#. module: l10n_ca_account_check_writing
54#: report:l10n.ca.account.print.check.middle:0
55msgid "Balance Due"
56msgstr "Balance Due"
57
58#. module: l10n_ca_account_check_writing
59#: report:l10n.ca.account.print.check.middle:0
60msgid "Payment"
61msgstr "Payment"
62
63#. module: l10n_ca_account_check_writing
64#: report:l10n.ca.account.print.check.middle:0
65msgid "$"
66msgstr "$"
67
068
=== added file 'l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml'
--- l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/l10n_ca_account_check_writing_report.xml 2013-04-25 22:27:14 +0000
@@ -0,0 +1,29 @@
1<?xml version="1.0"?>
2<openerp>
3 <data>
4 <report id="l10n_ca_account_print_check_top"
5 string="Print Check CA (Top)"
6 model="account.voucher"
7 name="l10n.ca.account.print.check.top"
8 rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml"
9 multi="True"
10 auto="False"/>
11
12 <report id="l10n_ca_account_print_check_middle"
13 string="Print Check CA (Middle)"
14 model="account.voucher"
15 name="l10n.ca.account.print.check.middle"
16 rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml"
17 multi="True"
18 auto="False"/>
19<!--
20 <report id="l10n_ca_account_print_check_bottom"
21 string="Print Check (CA)"
22 model="account.voucher"
23 name="l10n.ca.account.print.check.middle"
24 rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml"
25 multi="True"
26 auto="False"/>
27-->
28 </data>
29</openerp>
030
=== added directory 'l10n_ca_account_check_writing/report'
=== added file 'l10n_ca_account_check_writing/report/__init__.py'
--- l10n_ca_account_check_writing/report/__init__.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/report/__init__.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,25 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import l10n_ca_check_print
23
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
25
026
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.py'
--- l10n_ca_account_check_writing/report/l10n_ca_check_print.py 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/report/l10n_ca_check_print.py 2013-04-25 22:27:14 +0000
@@ -0,0 +1,89 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# OpenERP, Open Source Management Solution
5# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6#
7# This program is free software: you can redistribute it and/or modify
8# it under the terms of the GNU Affero General Public License as
9# published by the Free Software Foundation, either version 3 of the
10# License, or (at your option) any later version.
11#
12# This program is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU Affero General Public License for more details.
16#
17# You should have received a copy of the GNU Affero General Public License
18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#
20##############################################################################
21
22import time
23from openerp.report import report_sxw
24from openerp.tools import amount_to_text_en
25
26class report_print_check(report_sxw.rml_parse):
27
28 def __init__(self, cr, uid, name, context):
29 super(report_print_check, self).__init__(cr, uid, name, context)
30 self.number_lines = 0
31 self.number_add = 0
32 self.localcontext.update({
33 'time': time,
34 'get_lines': self.get_lines,
35 'fill_stars' : self.fill_stars,
36 })
37 def fill_stars(self, amount):
38 amount = amount.replace('Dollars','')
39 if len(amount) < 100:
40 stars = 100 - len(amount)
41 return ' '.join([amount,'*'*stars])
42
43 else: return amount
44
45 def get_lines(self, voucher_lines):
46 result = []
47 self.number_lines = len(voucher_lines)
48 for i in range(0, min(10,self.number_lines)):
49 if i < self.number_lines:
50 res = {
51 'date_due' : voucher_lines[i].date_due,
52 'name' : voucher_lines[i].name,
53 'amount_original' : voucher_lines[i].amount_original and voucher_lines[i].amount_original or False,
54 'amount_unreconciled' : voucher_lines[i].amount_unreconciled and voucher_lines[i].amount_unreconciled or False,
55 'amount' : voucher_lines[i].amount and voucher_lines[i].amount or False,
56 }
57 else :
58 res = {
59 'date_due' : False,
60 'name' : False,
61 'amount_original' : False,
62 'amount_due' : False,
63 'amount' : False,
64 }
65 result.append(res)
66 return result
67
68report_sxw.report_sxw(
69 'report.l10n.ca.account.print.check.top',
70 'account.voucher',
71 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml',
72 parser=report_print_check,header=False
73)
74
75report_sxw.report_sxw(
76 'report.l10n.ca.account.print.check.middle',
77 'account.voucher',
78 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml',
79 parser=report_print_check,header=False
80)
81
82#report_sxw.report_sxw(
83# 'report.l10n.ca.account.print.check.bottom',
84# 'account.voucher',
85# 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_bottom.rml',
86# parser=report_print_check,header=False
87#)
88
89# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
090
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw'
1Binary 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 differ91Binary 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
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml'
--- l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml 2013-04-25 22:27:14 +0000
@@ -0,0 +1,342 @@
1<?xml version="1.0"?>
2<document filename="test.pdf">
3 <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20">
4 <!-- Letter 612.0, 792.0 A4 595, 842 -->
5 <pageTemplate id="first">
6 <frame id="first" x1="13.0" y1="0.0" width="567" height="785"/>
7 </pageTemplate>
8 </template>
9 <stylesheet>
10 <blockTableStyle id="Standard_Outline">
11 <blockAlignment value="LEFT"/>
12 <blockValign value="TOP"/>
13 </blockTableStyle>
14 <blockTableStyle id="Table1">
15 <blockAlignment value="LEFT"/>
16 <blockValign value="TOP"/>
17 </blockTableStyle>
18 <blockTableStyle id="Table4">
19 <blockAlignment value="LEFT"/>
20 <blockValign value="TOP"/>
21 </blockTableStyle>
22 <blockTableStyle id="Table5">
23 <blockAlignment value="LEFT"/>
24 <blockValign value="TOP"/>
25 </blockTableStyle>
26 <blockTableStyle id="Table12">
27 <blockAlignment value="LEFT"/>
28 <blockValign value="TOP"/>
29 </blockTableStyle>
30 <blockTableStyle id="Table2">
31 <blockAlignment value="LEFT"/>
32 <blockValign value="TOP"/>
33 </blockTableStyle>
34 <blockTableStyle id="Table6">
35 <blockAlignment value="LEFT"/>
36 <blockValign value="TOP"/>
37 </blockTableStyle>
38 <blockTableStyle id="Table10">
39 <blockAlignment value="LEFT"/>
40 <blockValign value="TOP"/>
41 </blockTableStyle>
42 <blockTableStyle id="Table11">
43 <blockAlignment value="LEFT"/>
44 <blockValign value="TOP"/>
45 </blockTableStyle>
46 <blockTableStyle id="Table3">
47 <blockAlignment value="LEFT"/>
48 <blockValign value="TOP"/>
49 </blockTableStyle>
50 <blockTableStyle id="Table7">
51 <blockAlignment value="LEFT"/>
52 <blockValign value="TOP"/>
53 </blockTableStyle>
54 <blockTableStyle id="Table8">
55 <blockAlignment value="LEFT"/>
56 <blockValign value="TOP"/>
57 </blockTableStyle>
58 <blockTableStyle id="Table9">
59 <blockAlignment value="LEFT"/>
60 <blockValign value="TOP"/>
61 </blockTableStyle>
62 <initialize>
63 <paraStyle name="all" alignment="justify"/>
64 </initialize>
65 <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>
66 <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/>
67 <paraStyle name="P3" fontName="Helvetica"/>
68 <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/>
69 <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
70 <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
71 <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
72 <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/>
73 <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/>
74 <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
75 <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/>
76 <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/>
77 <paraStyle name="P13" fontName="Helvetica"/>
78 <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/>
79 <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/>
80 <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
81 <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
82 <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/>
83 <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>
84 <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/>
85 <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/>
86 <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
87 <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
88 <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
89 <paraStyle name="P25" fontName="Helvetica" fontSize="10.0" leading="13" alignment="RIGHT"/>
90 <paraStyle name="Standard" fontName="Helvetica"/>
91 <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
92 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
93 <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
94 <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
95 <paraStyle name="Index" fontName="Helvetica"/>
96 <paraStyle name="Table Contents" fontName="Helvetica"/>
97 <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
98 <images/>
99 </stylesheet>
100 <story>
101 <para style="P1">[[repeatIn(objects,'voucher')]]</para>
102 <blockTable colWidths="568.0" style="Table2" rowHeights="280">
103 <tr>
104 <td>
105 <blockTable colWidths="485.0,67.0" style="Table6">
106 <tr>
107 <td>
108 <para style="P16"></para>
109 </td>
110 <td>
111 <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
112 </td>
113 </tr>
114 <tr>
115 <td>
116 <para style="P16">[[voucher.partner_id.name]]</para>
117 </td>
118 <td>
119 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para>
120 </td>
121 </tr>
122 </blockTable>
123 <blockTable colWidths="81.0,186.0,83.0,81.0,54.0,78.0" style="Table10">
124 <tr>
125 <td>
126 <para style="P4">Due Date</para>
127 </td>
128 <td>
129 <para style="P4">Description</para>
130 </td>
131 <td>
132 <para style="P4">Original Amount</para>
133 </td>
134 <td>
135 <para style="P4">Balance Due</para>
136 </td>
137 <td>
138 <para style="P4">Discount</para>
139 </td>
140 <td>
141 <para style="P4">Payment</para>
142 </td>
143 </tr>
144 <tr>
145 <td>
146 <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para>
147 </td>
148 <td>
149 <para style="P19">[[ l['name'] ]]</para>
150 </td>
151 <td>
152 <para style="P19">[[formatLang( l['amount_original']) ]]</para>
153 </td>
154 <td>
155 <para style="P19">[[ formatLang( l['amount_due']) ]]</para>
156 </td>
157 <td>
158 <para style="P19">
159 <font color="white"> </font>
160 </para>
161 </td>
162 <td>
163 <para style="P19">[[ formatLang (l['amount']) ]]</para>
164 </td>
165 </tr>
166 </blockTable>
167
168 <blockTable colWidths="485.0,77.0" style="Table11">
169 <tr>
170 <td>
171 <para style="P24">Check Amount</para>
172 </td>
173 <td>
174 <para style="P23">[[ formatLang (voucher.amount) ]]</para>
175 </td>
176 </tr>
177 </blockTable>
178
179 <blockTable colWidths="485.0,77.0" rowHeights="148.0,50.0" style="Table11">
180 <tr>
181 <td> </td>
182 <td> </td>
183 </tr>
184 <tr>
185 <td> </td>
186 <td>
187 <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
188 </td>
189 </tr>
190 </blockTable>
191 </td>
192 </tr>
193 </blockTable>
194
195 <blockTable colWidths="400.0,50.0" rowHeights="29.3" style="Table5">
196 <tr>
197 <td>
198 <para style="P25">Date</para>
199 </td>
200 <td>
201 <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]]</para>
202 </td>
203 </tr>
204 </blockTable>
205
206 <blockTable colWidths="30.0,538.0" rowHeights="15.0" style="Table5">
207 <tr>
208 <td>
209 <para style="P3"><font color="white"> </font></para>
210 </td>
211 <td>
212 <para style="P26">[[ str(fill_stars(voucher.amount_in_word)) ]]</para>
213 </td>
214 </tr>
215 </blockTable>
216
217 <blockTable colWidths="568.0" style="Table1">
218 <tr>
219 <td>
220 <blockTable colWidths="30.0,420.0,50.0" rowHeights="22.8,130.0" style="Table12">
221 <tr>
222 <td>
223 <para style="P3"><font color="white"> </font></para>
224 </td>
225 <td>
226 <para style="P3"><font color="white"> </font></para>
227 </td>
228 <td>
229 <para style="P9">[[ formatLang(voucher.amount) ]]</para>
230 </td>
231 </tr>
232 <tr>
233 <td>
234 <para style="P3"><font color="white"> </font></para>
235 </td>
236 <td>
237 <para style="P15">[[ voucher.partner_id.name ]]</para>
238 <para style="P15">[[ display_address(voucher.partner_id) or removeParentNode('para') ]]</para>
239 </td>
240 <td>
241 <para style="P3"><font color="white"> </font></para>
242 </td>
243 </tr>
244 </blockTable>
245 <blockTable colWidths="25.0,500" rowHeights="15.0" style="Table12">
246 <tr>
247 <td>
248 <para style="P3"><font color="white"> </font></para>
249 </td>
250 <td>
251 <para style="P3"><font color="white"> </font></para>
252 <!--para style="P15">[[ voucher.name ]]</para-->
253 </td>
254 </tr>
255 </blockTable>
256 <para style="P3">
257 <font color="white"> </font>
258 </para>
259 </td>
260 </tr>
261 </blockTable>
262 <blockTable colWidths="568.0" style="Table3">
263 <tr>
264 <td>
265 <blockTable colWidths="436.0,76.0,20.0" style="Table7">
266 <tr>
267 <td>
268 <para style="P16">[[voucher.partner_id.name]]</para>
269 </td>
270 <td>
271 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para>
272 </td>
273 <td>
274 <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
275 </td>
276 </tr>
277 </blockTable>
278 <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8">
279 <tr>
280 <td>
281 <para style="P4">Due Date</para>
282 </td>
283 <td>
284 <para style="P4">Description</para>
285 </td>
286 <td>
287 <para style="P4">Original Amount</para>
288 </td>
289 <td>
290 <para style="P4">Balance Due</para>
291 </td>
292 <td>
293 <para style="P4">Discount</para>
294 </td>
295 <td>
296 <para style="P4">Payment</para>
297 </td>
298 </tr>
299 <tr>
300 <td>
301 <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para>
302 </td>
303 <td>
304 <para style="P19">[[ l['name'] ]]</para>
305 </td>
306 <td>
307 <para style="P19">[[ formatLang (l['amount_original']) ]]</para>
308 </td>
309 <td>
310 <para style="P19">[[ formatLang (l['amount_due']) ]]</para>
311 </td>
312 <td>
313 <para style="P19">
314 <font color="white"> </font>
315 </para>
316 </td>
317 <td>
318 <para style="P19">[[ formatLang (l['amount']) ]]</para>
319 </td>
320 </tr>
321 </blockTable>
322 <blockTable colWidths="485.0,77.0" style="Table9">
323 <tr>
324 <td>
325 <para style="P24">Check Amount</para>
326 </td>
327 <td>
328 <para style="P23">[[ formatLang (voucher.amount) ]]</para>
329 </td>
330 </tr>
331 </blockTable>
332 <para style="P3">
333 <font color="white"> </font>
334 </para>
335 </td>
336 </tr>
337 </blockTable>
338 <para style="P2">
339 <font color="white"> </font>
340 </para>
341 </story>
342</document>
0343
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml'
--- l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml 2013-04-25 22:27:14 +0000
@@ -0,0 +1,338 @@
1<?xml version="1.0"?>
2<document filename="test.pdf">
3 <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20">
4 <pageTemplate id="first">
5 <frame id="first" x1="13.0" y1="0.0" width="567" height="841"/>
6 </pageTemplate>
7 </template>
8 <stylesheet>
9 <blockTableStyle id="Standard_Outline">
10 <blockAlignment value="LEFT"/>
11 <blockValign value="TOP"/>
12 </blockTableStyle>
13 <blockTableStyle id="Table1">
14 <blockAlignment value="LEFT"/>
15 <blockValign value="TOP"/>
16 </blockTableStyle>
17 <blockTableStyle id="Table4">
18 <blockAlignment value="LEFT"/>
19 <blockValign value="TOP"/>
20 </blockTableStyle>
21 <blockTableStyle id="Table5">
22 <blockAlignment value="LEFT"/>
23 <blockValign value="TOP"/>
24 </blockTableStyle>
25 <blockTableStyle id="Table12">
26 <blockAlignment value="LEFT"/>
27 <blockValign value="TOP"/>
28 </blockTableStyle>
29 <blockTableStyle id="Table2">
30 <blockAlignment value="LEFT"/>
31 <blockValign value="TOP"/>
32 </blockTableStyle>
33 <blockTableStyle id="Table6">
34 <blockAlignment value="LEFT"/>
35 <blockValign value="TOP"/>
36 </blockTableStyle>
37 <blockTableStyle id="Table10">
38 <blockAlignment value="LEFT"/>
39 <blockValign value="TOP"/>
40 </blockTableStyle>
41 <blockTableStyle id="Table11">
42 <blockAlignment value="LEFT"/>
43 <blockValign value="TOP"/>
44 </blockTableStyle>
45 <blockTableStyle id="Table3">
46 <blockAlignment value="LEFT"/>
47 <blockValign value="TOP"/>
48 </blockTableStyle>
49 <blockTableStyle id="Table7">
50 <blockAlignment value="LEFT"/>
51 <blockValign value="TOP"/>
52 </blockTableStyle>
53 <blockTableStyle id="Table8">
54 <blockAlignment value="LEFT"/>
55 <blockValign value="TOP"/>
56 </blockTableStyle>
57 <blockTableStyle id="Table9">
58 <blockAlignment value="LEFT"/>
59 <blockValign value="TOP"/>
60 </blockTableStyle>
61 <initialize>
62 <paraStyle name="all" alignment="justify"/>
63 </initialize>
64 <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>
65 <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/>
66 <paraStyle name="P3" fontName="Helvetica"/>
67 <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/>
68 <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
69 <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
70 <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
71 <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/>
72 <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/>
73 <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
74 <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/>
75 <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/>
76 <paraStyle name="P13" fontName="Helvetica"/>
77 <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/>
78 <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/>
79 <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
80 <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
81 <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/>
82 <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>
83 <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/>
84 <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/>
85 <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
86 <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
87 <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
88 <paraStyle name="Standard" fontName="Helvetica"/>
89 <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
90 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
91 <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
92 <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
93 <paraStyle name="Index" fontName="Helvetica"/>
94 <paraStyle name="Table Contents" fontName="Helvetica"/>
95 <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
96 <images/>
97 </stylesheet>
98 <story>
99 <para style="P1">[[repeatIn(objects,'voucher')]]</para>
100 <blockTable colWidths="568.0" style="Table1">
101 <tr>
102 <td>
103 <blockTable colWidths="425.0,177.0" rowHeights="107.50,25.5" style="Table4">
104 <tr>
105 <td>
106 <para style="P6">
107 <font color="white"> </font>
108 </para>
109 </td>
110 <td>
111 <para style="P6">
112 <font color="white"> </font>
113 </para>
114 </td>
115 </tr>
116 <tr>
117 <td>
118 <para style="P6">
119 <font color="white"> </font>
120 </para>
121 </td>
122 <td>
123 <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
124 </td>
125 </tr>
126 </blockTable>
127 <blockTable colWidths="54.0,425.0,85.0" rowHeights="21.5" style="Table4">
128 <tr>
129 <td>
130 <para style="P6">
131 <font color="white"> </font>
132 </para>
133 </td>
134 <td>
135 <para style="P9">[[ voucher.partner_id.name ]] </para>
136 </td>
137 <td>
138 <para style="P12">[[ formatLang (voucher.amount) ]]</para>
139 </td>
140 </tr>
141 </blockTable>
142 <blockTable colWidths="550.0" rowHeights="18" style="Table5">
143 <tr>
144 <td>
145 <para style="P9">[[ fill_stars(voucher.amount_in_word) ]]</para>
146 </td>
147 </tr>
148 </blockTable>
149 <blockTable colWidths="54.0,425.0,85.0" rowHeights="45.5" style="Table4">
150 <tr>
151 <td>
152 <para style="P6"></para>
153 </td>
154 <td>
155 <para style="P9">[[ voucher.partner_id.name ]] </para>
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>
157 <para style="P15">[[ get_zip_line(voucher.partner_id.address[0]) ]] </para>
158 <para style="P15">[[ voucher.partner_id.address[0].country_id.name]]</para>
159 </td>
160 <td>
161 <para/>
162 </td>
163 </tr>
164 </blockTable>
165 <blockTable colWidths="25.0,350,150" rowHeights="10.5" style="Table12">
166 <tr>
167 <td>
168 <para style="P3">
169 <font color="white"> </font>
170 </para>
171 </td>
172 <td>
173 <para style="P15">[[ voucher.name ]]</para>
174 </td>
175 <td>
176 <para style="P3">
177 <font color="white"> </font>
178 </para>
179 </td>
180 </tr>
181 </blockTable>
182 <para style="P3">
183 <font color="white"> </font>
184 </para>
185 </td>
186 </tr>
187 </blockTable>
188 <blockTable colWidths="568.0" style="Table2" rowHeights="255">
189 <tr>
190 <td>
191 <blockTable colWidths="445.0,117.0" style="Table6">
192 <tr>
193 <td>
194 <para style="P16">[[voucher.partner_id.name]]</para>
195 </td>
196 <td>
197 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
198 </td>
199 </tr>
200 </blockTable>
201 <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table10">
202 <tr>
203 <td>
204 <para style="P4">Due Date</para>
205 </td>
206 <td>
207 <para style="P4">Description</para>
208 </td>
209 <td>
210 <para style="P4">Original Amount</para>
211 </td>
212 <td>
213 <para style="P4">Open Balance</para>
214 </td>
215 <td>
216 <para style="P4">Discount</para>
217 </td>
218 <td>
219 <para style="P4">Payment</para>
220 </td>
221 </tr>
222 <tr>
223 <td>
224 <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
225 </td>
226 <td>
227 <para style="P19">[[ l['name'] ]]</para>
228 </td>
229 <td>
230 <para style="P19">[[formatLang( l['amount_original']) ]]</para>
231 </td>
232 <td>
233 <para style="P19">[[ formatLang( l['amount_unreconciled']) ]]</para>
234 </td>
235 <td>
236 <para style="P19">
237 <font color="white"> </font>
238 </para>
239 </td>
240 <td>
241 <para style="P19">[[ formatLang (l['amount']) ]]</para>
242 </td>
243 </tr>
244 </blockTable>
245 <blockTable colWidths="485.0,77.0" style="Table11">
246 <tr>
247 <td>
248 <para style="P24">Check Amount</para>
249 </td>
250 <td>
251 <para style="P23">[[ formatLang (voucher.amount) ]]</para>
252 </td>
253 </tr>
254 </blockTable>
255 <para style="P3">
256 <font color="white"> </font>
257 </para>
258 </td>
259 </tr>
260 </blockTable>
261 <blockTable colWidths="568.0" style="Table3">
262 <tr>
263 <td>
264 <blockTable colWidths="446.0,116.0" style="Table7">
265 <tr>
266 <td>
267 <para style="P16">[[voucher.partner_id.name]]</para>
268 </td>
269 <td>
270 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
271 </td>
272 </tr>
273 </blockTable>
274 <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8">
275 <tr>
276 <td>
277 <para style="P4">Due Date</para>
278 </td>
279 <td>
280 <para style="P4">Description</para>
281 </td>
282 <td>
283 <para style="P4">Original Amount</para>
284 </td>
285 <td>
286 <para style="P4">Open Balance</para>
287 </td>
288 <td>
289 <para style="P4">Discount</para>
290 </td>
291 <td>
292 <para style="P4">Payment</para>
293 </td>
294 </tr>
295 <tr>
296 <td>
297 <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
298 </td>
299 <td>
300 <para style="P19">[[ l['name'] ]]</para>
301 </td>
302 <td>
303 <para style="P19">[[ formatLang (l['amount_original']) ]]</para>
304 </td>
305 <td>
306 <para style="P19">[[ formatLang (l['amount_unreconciled']) ]]</para>
307 </td>
308 <td>
309 <para style="P19">
310 <font color="white"> </font>
311 </para>
312 </td>
313 <td>
314 <para style="P19">[[ formatLang (l['amount']) ]]</para>
315 </td>
316 </tr>
317 </blockTable>
318 <blockTable colWidths="485.0,77.0" style="Table9">
319 <tr>
320 <td>
321 <para style="P17">Check Amount</para>
322 </td>
323 <td>
324 <para style="P16">[[ formatLang (voucher.amount) ]]</para>
325 </td>
326 </tr>
327 </blockTable>
328 <para style="P3">
329 <font color="white"> </font>
330 </para>
331 </td>
332 </tr>
333 </blockTable>
334 <para style="P2">
335 <font color="white"> </font>
336 </para>
337 </story>
338</document>
0339
=== added directory 'l10n_ca_account_check_writing/static'
=== added directory 'l10n_ca_account_check_writing/static/src'
=== added directory 'l10n_ca_account_check_writing/static/src/img'
=== added file 'l10n_ca_account_check_writing/static/src/img/icon.png'
1Binary 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 differ340Binary 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

Subscribers

People subscribed via source and target branches