Merge lp:~savoirfairelinux-openerp/openerp-canada/fix_l10n_ca_check_print_top into lp:openerp-canada

Status: Merged
Approved by: Sandy Carter (http://www.savoirfairelinux.com)
Approved revision: 30
Merged at revision: 30
Proposed branch: lp:~savoirfairelinux-openerp/openerp-canada/fix_l10n_ca_check_print_top
Merge into: lp:openerp-canada
Diff against target: 930 lines (+474/-313)
7 files modified
l10n_ca_account_check_writing/__init__.py (+0/-1)
l10n_ca_account_check_writing/__openerp__.py (+21/-6)
l10n_ca_account_check_writing/account_voucher.py (+2/-2)
l10n_ca_account_check_writing/report/README.txt (+9/-0)
l10n_ca_account_check_writing/report/__init__.py (+0/-3)
l10n_ca_account_check_writing/report/l10n_ca_check_print.py (+32/-27)
l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml (+410/-274)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-canada/fix_l10n_ca_check_print_top
Reviewer Review Type Date Requested Status
Maxime Chambreuil (http://www.savoirfairelinux.com) Approve
Joao Alfredo Gama Batista code review, no tests Approve
Sandy Carter (http://www.savoirfairelinux.com) code review Approve
Review via email: mp+219059@code.launchpad.net
To post a comment you must log in.
30. By Maxime Chambreuil (http://www.savoirfairelinux.com)

[FIX] PEP8 issues and add external dependencies on num2words. Update the description accordingly.

Revision history for this message
Sandy Carter (http://www.savoirfairelinux.com) (sandy-carter) wrote :

LGTM

review: Approve (code review)
Revision history for this message
Joao Alfredo Gama Batista (joao-gama) wrote :

LGTM

review: Approve (code review, no tests)
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve
31. By Marc Cassuto (SFL)

[FIX] fix position of the 3rd table

32. By Marc Cassuto (SFL)

[FIX] fix position of the 2nd table & force date format to be YYYY-MM-DD

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_ca_account_check_writing/__init__.py'
--- l10n_ca_account_check_writing/__init__.py 2013-04-25 21:23:42 +0000
+++ l10n_ca_account_check_writing/__init__.py 2014-05-12 21:07:22 +0000
@@ -18,7 +18,6 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21
22import company21import company
23import account_voucher22import account_voucher
24import report23import report
2524
=== modified file 'l10n_ca_account_check_writing/__openerp__.py'
--- l10n_ca_account_check_writing/__openerp__.py 2013-06-11 13:48:06 +0000
+++ l10n_ca_account_check_writing/__openerp__.py 2014-05-12 21:07:22 +0000
@@ -20,7 +20,7 @@
20##############################################################################20##############################################################################
21{21{
22 'name': 'Canada - Check Writing',22 'name': 'Canada - Check Writing',
23 'version': '1.1',23 'version': '1.2',
24 'author': 'Savoir-faire Linux',24 'author': 'Savoir-faire Linux',
25 'website': 'http://www.savoirfairelinux.com',25 'website': 'http://www.savoirfairelinux.com',
26 'category': 'Generic Modules/Accounting',26 'category': 'Generic Modules/Accounting',
@@ -31,15 +31,27 @@
31This module provides reports to print check using the canadian format from:31This module provides reports to print check using the canadian format from:
32http://www.cdnpay.ca/imis15/pdf/pdfs_rules/standard_006_fr.pdf32http://www.cdnpay.ca/imis15/pdf/pdfs_rules/standard_006_fr.pdf
3333
34Note that the amount in letter is generated when you enter/change the amount,
35not when you print. You will need to modify it if you change the language of
36the supplier.
37
34To use this module, you will need to install num2words Python library:38To use this module, you will need to install num2words Python library:
35https://pypi.python.org/pypi/num2words39https://pypi.python.org/pypi/num2words
3640
37Note that the amount in letter is generated when you enter/change the amount,41Contributors
38not when you print. You will need to modify it if you change the language of 42------------
39the supplier.43* David Cormier (david.cormier@savoirfairelinux.com)
4044* Joao Alfredo Gama Batista (joao.gama@savoirfairelinux.com)
45* Marc Cassuto (marc.cassuto@savoirfairelinux.com)
46* Mathieu Benoit (mathieu.benoit@savoirfairelinux.com)
47* Maxime Chambreuil (maxime.chambreuil@savoirfairelinux.com)
48* Vincent Vinet (vincent.vinet@savoirfairelinux.com)
49* Virgil Dupras (virgil.dupras@savoirfairelinux.com)
41 """,50 """,
42 'depends': ['account_check_writing', 'res_currency_print_on_check'],51 'depends': [
52 'account_check_writing',
53 'res_currency_print_on_check'
54 ],
43 'data': [55 'data': [
44 'l10n_ca_account_check_writing_report.xml',56 'l10n_ca_account_check_writing_report.xml',
45 ],57 ],
@@ -47,5 +59,8 @@
47 'test': [],59 'test': [],
48 'installable': True,60 'installable': True,
49 'active': False,61 'active': False,
62 'external_dependencies': {
63 'python': ['num2words'],
64 }
50}65}
51# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:66# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
5267
=== modified file 'l10n_ca_account_check_writing/account_voucher.py'
--- l10n_ca_account_check_writing/account_voucher.py 2014-04-22 13:02:09 +0000
+++ l10n_ca_account_check_writing/account_voucher.py 2014-05-12 21:07:22 +0000
@@ -49,8 +49,8 @@
49 currency_name = currency.print_on_check49 currency_name = currency.print_on_check
50 cents = int(amount * 100) % 10050 cents = int(amount * 100) % 100
51 total_length = len(amount_in_word) + len(currency_name)51 total_length = len(amount_in_word) + len(currency_name)
52 if total_length < 87:52 if total_length < 67:
53 stars = '*' * (87 - total_length)53 stars = '*' * (67 - total_length)
54 else:54 else:
55 stars = ''55 stars = ''
56 AND = custom_translation("and", lang)56 AND = custom_translation("and", lang)
5757
=== added file 'l10n_ca_account_check_writing/report/README.txt'
--- l10n_ca_account_check_writing/report/README.txt 1970-01-01 00:00:00 +0000
+++ l10n_ca_account_check_writing/report/README.txt 2014-05-12 21:07:22 +0000
@@ -0,0 +1,9 @@
1The third table in the report has to be on the third part of the page.
2We can fix height of the check by adding empty rows in the SXW file,
3but we can not fix the 2nd tables's height.
4
5The way to do it, after converting the SXW file to RML, is adding
6is adding a rowHeights attribute for the second table :
7
8 <blockTable rowHeights="80.0mm" colWidths="591.0" style="Table2">
9
010
=== modified file 'l10n_ca_account_check_writing/report/__init__.py'
--- l10n_ca_account_check_writing/report/__init__.py 2013-04-25 21:23:42 +0000
+++ l10n_ca_account_check_writing/report/__init__.py 2014-05-12 21:07:22 +0000
@@ -18,8 +18,5 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21
22import l10n_ca_check_print21import l10n_ca_check_print
23
24# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:22# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
25
2623
=== modified file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.py'
--- l10n_ca_account_check_writing/report/l10n_ca_check_print.py 2014-04-22 13:02:09 +0000
+++ l10n_ca_account_check_writing/report/l10n_ca_check_print.py 2014-05-12 21:07:22 +0000
@@ -24,7 +24,6 @@
2424
2525
26class report_print_check(report_sxw.rml_parse):26class report_print_check(report_sxw.rml_parse):
27
28 def __init__(self, cr, uid, name, context):27 def __init__(self, cr, uid, name, context):
29 super(report_print_check, self).__init__(cr, uid, name, context)28 super(report_print_check, self).__init__(cr, uid, name, context)
30 self.number_lines = 029 self.number_lines = 0
@@ -42,46 +41,52 @@
42 def get_lines(self, voucher_lines):41 def get_lines(self, voucher_lines):
43 result = []42 result = []
44 self.number_lines = len(voucher_lines)43 self.number_lines = len(voucher_lines)
45 for i in range(0, min(10,self.number_lines)):44 for i in range(0, min(10, self.number_lines)):
46 if i < self.number_lines:45 if i < self.number_lines:
47 voucher_line = voucher_lines[i]46 voucher_line = voucher_lines[i]
48 # In general, the supplier invoice reference number is a much better description47 # Don't show lines with amount=0; this means, an invoice/credit note has not been linked to this check
49 # for writing checks than our own reference number, but if we don't have it, we48 if voucher_line.amount != 0:
50 # might as well use our internal number49 # In general, the supplier invoice reference number is a much better description
51 if voucher_line.supplier_invoice_number:50 # for writing checks than our own reference number, but if we don't have it, we
52 name = voucher_line.supplier_invoice_number51 # might as well use our internal number
53 else:52 if voucher_line.supplier_invoice_number:
54 name = voucher_line.name53 name = voucher_line.supplier_invoice_number
55 res = {54 else:
56 'date_due' : voucher_line.date_due,55 name = voucher_line.name
57 'name' : name,56 res = {
58 'amount_original' : voucher_line.amount_original and voucher_line.amount_original or False,57 'date_due': voucher_line.date_due,
59 'amount_unreconciled' : voucher_line.amount_unreconciled and voucher_line.amount_unreconciled or False,58 'name': name,
60 'amount' : voucher_line.amount and voucher_line.amount or False,59 'amount_original': voucher_line.amount_original and voucher_line.amount_original or False,
61 }60 'amount_unreconciled': voucher_line.amount_unreconciled and voucher_line.amount_unreconciled
62 else :61 or False,
63 res = {62 'amount': voucher_line.amount and voucher_line.amount or False,
64 'date_due' : False,63 }
65 'name' : False,64 result.append(res)
66 'amount_original' : False,65 else:
67 'amount_unreconciled' : False,66 res = {
68 'amount' : False,67 'date_due': False,
69 }68 'name': False,
70 result.append(res)69 'amount_original': False,
70 'amount_unreconciled': False,
71 'amount': False,
72 }
73 result.append(res)
74
71 return result75 return result
7276
77
73report_sxw.report_sxw(78report_sxw.report_sxw(
74 'report.l10n.ca.account.print.check.top',79 'report.l10n.ca.account.print.check.top',
75 'account.voucher',80 'account.voucher',
76 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml',81 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml',
77 parser=report_print_check,header=False82 parser=report_print_check, header=False
78)83)
7984
80report_sxw.report_sxw(85report_sxw.report_sxw(
81 'report.l10n.ca.account.print.check.middle',86 'report.l10n.ca.account.print.check.middle',
82 'account.voucher',87 'account.voucher',
83 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml',88 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml',
84 parser=report_print_check,header=False89 parser=report_print_check, header=False
85)90)
8691
87#report_sxw.report_sxw(92#report_sxw.report_sxw(
8893
=== modified 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 2014-04-22 13:02:09 +0000
+++ l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml 2014-05-12 21:07:22 +0000
@@ -1,8 +1,8 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<document filename="test.pdf">2<document filename="test.pdf">
3 <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20">3 <template pageSize="(612.0,792.0)" title="Test" author="Martin Simon" allowSplitting="20">
4 <pageTemplate id="first">4 <pageTemplate id="first">
5 <frame id="first" x1="13.0" y1="0.0" width="567" height="841"/>5 <frame id="first" x1="8.0" y1="0.0" width="596" height="791"/>
6 </pageTemplate>6 </pageTemplate>
7 </template>7 </template>
8 <stylesheet>8 <stylesheet>
@@ -18,11 +18,7 @@
18 <blockAlignment value="LEFT"/>18 <blockAlignment value="LEFT"/>
19 <blockValign value="TOP"/>19 <blockValign value="TOP"/>
20 </blockTableStyle>20 </blockTableStyle>
21 <blockTableStyle id="Table5">21 <blockTableStyle id="Table13">
22 <blockAlignment value="LEFT"/>
23 <blockValign value="TOP"/>
24 </blockTableStyle>
25 <blockTableStyle id="Table12">
26 <blockAlignment value="LEFT"/>22 <blockAlignment value="LEFT"/>
27 <blockValign value="TOP"/>23 <blockValign value="TOP"/>
28 </blockTableStyle>24 </blockTableStyle>
@@ -42,49 +38,51 @@
42 <blockAlignment value="LEFT"/>38 <blockAlignment value="LEFT"/>
43 <blockValign value="TOP"/>39 <blockValign value="TOP"/>
44 </blockTableStyle>40 </blockTableStyle>
41 <blockTableStyle id="Table8">
42 <blockAlignment value="LEFT"/>
43 <blockValign value="TOP"/>
44 </blockTableStyle>
45 <blockTableStyle id="Table3">45 <blockTableStyle id="Table3">
46 <blockAlignment value="LEFT"/>46 <blockAlignment value="LEFT"/>
47 <blockValign value="TOP"/>47 <blockValign value="TOP"/>
48 </blockTableStyle>48 </blockTableStyle>
49 <blockTableStyle id="Table5">
50 <blockAlignment value="LEFT"/>
51 <blockValign value="TOP"/>
52 </blockTableStyle>
49 <blockTableStyle id="Table7">53 <blockTableStyle id="Table7">
50 <blockAlignment value="LEFT"/>54 <blockAlignment value="LEFT"/>
51 <blockValign value="TOP"/>55 <blockValign value="TOP"/>
52 </blockTableStyle>56 </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>57 <initialize>
62 <paraStyle name="all" alignment="justify"/>58 <paraStyle name="all" alignment="justify"/>
63 </initialize>59 </initialize>
64 <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>60 <paraStyle name="P1" fontName="Helvetica"/>
65 <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/>61 <paraStyle name="P2" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
66 <paraStyle name="P3" fontName="Helvetica"/>62 <paraStyle name="P3" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
67 <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/>63 <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT"/>
68 <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>64 <paraStyle name="P5" fontName="Helvetica" fontSize="8.0" leading="10"/>
69 <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>65 <paraStyle name="P6" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT"/>
70 <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>66 <paraStyle name="P7" fontName="Helvetica" fontSize="8.0" leading="10"/>
71 <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/>67 <paraStyle name="P8" fontName="Helvetica" fontSize="11.0" leading="14"/>
72 <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/>68 <paraStyle name="P9" fontName="Helvetica" fontSize="11.0" leading="14" alignment="RIGHT"/>
73 <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>69 <paraStyle name="P10" fontName="Helvetica" fontSize="11.0" leading="14" alignment="LEFT"/>
74 <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/>70 <paraStyle name="P11" fontName="Helvetica" fontSize="11.0" leading="14"/>
75 <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/>71 <paraStyle name="P12" fontName="Helvetica" fontSize="6.0" leading="8"/>
76 <paraStyle name="P13" fontName="Helvetica"/>72 <paraStyle name="P13" fontName="Helvetica" fontSize="11.0" leading="14" textColor="#ffffff"/>
77 <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/>73 <paraStyle name="P14" rightIndent="-5.0" leftIndent="0.0" fontName="Helvetica"/>
78 <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/>74 <paraStyle name="P15" fontName="Helvetica" fontSize="11.0" leading="14" alignment="RIGHT"/>
79 <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>75 <paraStyle name="P16" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT"/>
80 <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>76 <paraStyle name="P17" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>
81 <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/>77 <paraStyle name="P18" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT"/>
82 <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>78 <paraStyle name="P19" fontName="Helvetica" fontSize="3.0" leading="4" spaceBefore="0.0" spaceAfter="6.0"/>
83 <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/>79 <paraStyle name="P20" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica" fontSize="11.0" leading="14" textColor="#ffffff"/>
84 <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/>80 <paraStyle name="P21" rightIndent="22.0" leftIndent="-0.0" fontName="Helvetica" fontSize="8.0" leading="10"/>
85 <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>81 <paraStyle name="P22" rightIndent="-12.0" leftIndent="5.0" fontName="Helvetica" fontSize="11.0" leading="14"/>
86 <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>82 <paraStyle name="P23" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>
87 <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>83 <paraStyle name="P24" fontName="Helvetica"/>
84 <paraStyle name="P25" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
85 <paraStyle name="P26" fontName="Helvetica" fontSize="8.0" leading="10"/>
88 <paraStyle name="Standard" fontName="Helvetica"/>86 <paraStyle name="Standard" fontName="Helvetica"/>
89 <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>87 <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"/>88 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
@@ -96,242 +94,380 @@
96 <images/>94 <images/>
97 </stylesheet>95 </stylesheet>
98 <story>96 <story>
99 <para style="P1">[[repeatIn(objects,'voucher')]]</para>97 <para style="P23">[[repeatIn(objects,'voucher')]]</para>
100 <para style="P1">[[ setLang(voucher.partner_id.lang) ]]</para>98 <para style="P23">[[ setLang(voucher.partner_id.lang) ]]</para>
101 <blockTable colWidths="568.0" style="Table1">99 <blockTable colWidths="591.0" style="Table1">
102 <tr>100 <tr>
103 <td>101 <td>
104 <blockTable colWidths="425.0,177.0" rowHeights="107.50,25.5" style="Table4">102 <blockTable colWidths="30.0,405.0,33.0,147.0" style="Table4">
105 <tr>103 <tr>
106 <td>104 <td>
107 <para style="P6">105 <para style="P11">
108 <font color="white"> </font>106 <font color="white"> </font>
109 </para>107 </para>
110 </td>108 </td>
111 <td>109 <td>
112 <para style="P6">110 <para style="P20">.</para>
113 <font color="white"> </font>111 </td>
114 </para>112 <td>
115 </td>113 <para style="P20">
116 </tr> 114 <font color="white"> </font>
117 <tr>115 </para>
118 <td>116 </td>
119 <para style="P6">117 <td>
120 <font color="white"> </font>118 <para style="P8">
121 </para>119 <font color="white"> </font>
122 </td>120 </para>
123 <td>121 </td>
124 <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>122 </tr>
125 </td>123 <tr>
126 </tr>124 <td>
127 </blockTable> 125 <para style="P11">
128 <blockTable colWidths="54.0,425.0,85.0" rowHeights="21.5" style="Table4">126 <font color="white"> </font>
129 <tr>127 </para>
130 <td>128 </td>
131 <para style="P6">129 <td>
132 <font color="white"> </font>130 <para style="P13">.</para>
133 </para>131 </td>
134 </td>132 <td>
135 <td>133 <para style="P13">
136 <para style="P9">[[ voucher.partner_id.name ]] </para>134 <font color="white"> </font>
137 </td>135 </para>
138 <td>136 </td>
139 <para style="P12">[[ formatLang (voucher.amount) ]]</para>137 <td>
140 </td>138 <para style="P8">
141 </tr>139 <font color="white"> </font>
142 </blockTable>140 </para>
143 <blockTable colWidths="550.0" rowHeights="18" style="Table5">141 </td>
144 <tr>142 </tr>
145 <td>143 <tr>
146 <para style="P9">[[ voucher.amount_in_word ]]</para>144 <td>
147 </td>145 <para style="P11">
148 </tr>146 <font color="white"> </font>
149 </blockTable>147 </para>
150 <blockTable colWidths="54.0,425.0,85.0" rowHeights="45.5" style="Table4">148 </td>
151 <tr>149 <td>
152 <td>150 <para style="P9">
153 <para style="P6"></para>151 <font color="white"> </font>
154 </td>152 </para>
155 <td>153 </td>
156 <para style="P9">[[ voucher.partner_id.name ]] </para>154 <td>
157 <para style="P15">[[ display_address(voucher.partner_id) or removeParentNode('para') ]]</para>155 <para style="P9">DATE</para>
158 </td>156 </td>
159 <td>157 <td>
160 <para/>158 <para style="P10">[[ voucher.date or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
161 </td>159 </td>
162 </tr>160 </tr>
163 </blockTable> 161 <tr>
164 <blockTable colWidths="25.0,350,150" rowHeights="10.5" style="Table12">162 <td>
165 <tr>163 <para style="P11">
166 <td>164 <font color="white"> </font>
167 <para style="P3">165 </para>
168 <font color="white"> </font>166 </td>
169 </para>167 <td>
170 </td>168 <para style="P13">.</para>
171 <td>169 </td>
172 <para style="P15">[[ voucher.name ]]</para>170 <td>
173 </td>171 <para style="P13">
174 <td>172 <font color="white"> </font>
175 <para style="P3">173 </para>
176 <font color="white"> </font>174 </td>
177 </para>175 <td>
178 </td> 176 <para style="P12">Y Y Y Y – M M – D D</para>
179 </tr>177 </td>
180 </blockTable>178 </tr>
181 <para style="P3">179 <tr>
182 <font color="white"> </font>180 <td>
183 </para>181 <para style="P22">
184 </td>182 <font color="white"> </font>
185 </tr>183 </para>
186 </blockTable> 184 </td>
187 <blockTable colWidths="568.0" style="Table2" rowHeights="255">185 <td>
188 <tr>186 <para style="P17">[[ voucher.amount_in_word ]]</para>
189 <td>187 </td>
190 <blockTable colWidths="445.0,117.0" style="Table6">188 <td>
191 <tr>189 <para style="P15">
192 <td>190 <font color="white"> </font>
193 <para style="P16">[[voucher.partner_id.name]]</para>191 </para>
194 </td>192 </td>
195 <td>193 <td>
196 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>194 <para style="P18">[[ formatLang (voucher.amount) ]]</para>
197 </td>195 </td>
198 </tr>196 </tr>
199 </blockTable>197 <tr>
200 <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table10">198 <td>
201 <tr>199 <para style="P21">
202 <td>200 <font color="white"> </font>
203 <para style="P4">Due Date</para>201 </para>
204 </td>202 </td>
205 <td>203 <td>
206 <para style="P4">Invoice</para>204 <para style="P16">
207 </td>205 <font color="white"> </font>
208 <td>206 </para>
209 <para style="P4">Original Amount</para>207 </td>
210 </td>208 <td>
211 <td>209 <para style="P7">
212 <para style="P4">Open Balance</para>210 <font color="white"> </font>
213 </td>211 </para>
214 <td>212 </td>
215 <para style="P4">Discount</para>213 </tr>
216 </td>214 <tr>
217 <td>215 <td>
218 <para style="P4">Payment</para>216 <para style="P5">
219 </td>217 <font color="white"> </font>
220 </tr>218 </para>
221 <tr>219 </td>
222 <td>220 <td>
223 <para style="P19">[[ repeatIn(get_all_lines(voucher),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>221 <para style="P16">[[ voucher.partner_id.name ]]</para>
224 </td>222 <para style="P16">[[ display_address(voucher.partner_id) or removeParentNode('para') ]]</para>
225 <td>223 </td>
226 <para style="P19">[[ l['name'] ]]</para>224 <td>
227 </td>225 <para style="P7">
228 <td>226 <font color="white"> </font>
229 <para style="P19">[[formatLang( l['amount_original']) ]]</para>227 </para>
230 </td>228 </td>
231 <td>229 </tr>
232 <para style="P19">[[ formatLang( l['amount_unreconciled']) ]]</para>230 </blockTable>
233 </td>231 <blockTable colWidths="32.0,360.0,199.0" style="Table13">
234 <td>232 <tr>
235 <para style="P19">233 <td>
236 <font color="white"> </font>234 <para style="P5">
237 </para>235 <font color="white"> </font>
238 </td>236 </para>
239 <td>237 </td>
240 <para style="P19">[[ formatLang (l['amount']) ]]</para>238 <td>
241 </td>239 <para style="P5">
242 </tr>240 <font color="white"> </font>
243 </blockTable>241 </para>
244 <blockTable colWidths="485.0,77.0" style="Table11">242 </td>
245 <tr>243 <td>
246 <td>244 <para style="P1">
247 <para style="P24">Check Amount</para>245 <font color="white"> </font>
248 </td>246 </para>
249 <td>247 </td>
250 <para style="P23">[[ formatLang (voucher.amount) ]]</para>248 </tr>
251 </td>249 <tr>
252 </tr>250 <td>
253 </blockTable>251 <para style="P5">MEMO</para>
254 <para style="P3">252 </td>
255 <font color="white"> </font>253 <td>
256 </para>254 <para style="P5">[[ voucher.name ]]</para>
257 </td>255 </td>
258 </tr>256 <td>
259 </blockTable>257 <para style="P1">
260 <blockTable colWidths="568.0" style="Table3">258 <font color="white"> </font>
261 <tr>259 </para>
262 <td>260 </td>
263 <blockTable colWidths="446.0,116.0" style="Table7">261 </tr>
264 <tr>262 <tr>
265 <td>263 <td>
266 <para style="P16">[[voucher.partner_id.name]]</para>264 <para style="P5">
267 </td>265 <font color="white"> </font>
268 <td>266 </para>
269 <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>267 </td>
270 </td>268 <td>
271 </tr>269 <para style="P5">
272 </blockTable>270 <font color="white"> </font>
273 <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8">271 </para>
274 <tr>272 </td>
275 <td>273 <td>
276 <para style="P4">Due Date</para>274 <para style="P1">
277 </td>275 <font color="white"> </font>
278 <td>276 </para>
279 <para style="P4">Invoice</para>277 </td>
280 </td>278 </tr>
281 <td>279 <tr>
282 <para style="P4">Original Amount</para>280 <td>
283 </td>281 <para style="P5">
284 <td>282 <font color="white"> </font>
285 <para style="P4">Open Balance</para>283 </para>
286 </td>284 </td>
287 <td>285 <td>
288 <para style="P4">Discount</para>286 <para style="P5">
289 </td>287 <font color="white"> </font>
290 <td>288 </para>
291 <para style="P4">Payment</para>289 </td>
292 </td>290 <td>
293 </tr>291 <para style="P1">
294 <tr>292 <font color="white"> </font>
295 <td>293 </para>
296 <para style="P19">[[ repeatIn(get_all_lines(voucher),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>294 </td>
297 </td>295 </tr>
298 <td>296 <tr>
299 <para style="P19">[[ l['name'] ]]</para>297 <td>
300 </td>298 <para style="P5">
301 <td>299 <font color="white"> </font>
302 <para style="P19">[[ formatLang (l['amount_original']) ]]</para>300 </para>
303 </td>301 </td>
304 <td>302 <td>
305 <para style="P19">[[ formatLang (l['amount_unreconciled']) ]]</para>303 <para style="P5">
306 </td>304 <font color="white"> </font>
307 <td>305 </para>
308 <para style="P19">306 </td>
309 <font color="white"> </font>307 <td>
310 </para>308 <para style="P1">
311 </td>309 <font color="white"> </font>
312 <td>310 </para>
313 <para style="P19">[[ formatLang (l['amount']) ]]</para>311 </td>
314 </td>312 </tr>
315 </tr>313 </blockTable>
316 </blockTable>314 <para style="P1">
317 <blockTable colWidths="485.0,77.0" style="Table9">315 <font color="white"> </font>
318 <tr>316 </para>
319 <td>317 </td>
320 <para style="P17">Check Amount</para>318 </tr>
321 </td>319 </blockTable>
322 <td>320 <para style="P19"/>
323 <para style="P16">[[ formatLang (voucher.amount) ]]</para>321 <blockTable rowHeights="80.0mm" colWidths="591.0" style="Table2">
324 </td>322 <tr>
325 </tr>323 <td>
326 </blockTable>324 <blockTable colWidths="464.0,122.0" style="Table6">
327 <para style="P3">325 <tr>
328 <font color="white"> </font>326 <td>
329 </para>327 <para style="P2">[[voucher.partner_id.name]]</para>
330 </td>328 </td>
331 </tr>329 <td>
332 </blockTable>330 <para style="P2">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
333 <para style="P2">331 </td>
332 </tr>
333 </blockTable>
334 <blockTable colWidths="84.0,193.0,86.0,85.0,56.0,80.0" style="Table10">
335 <tr>
336 <td>
337 <para style="P4">Due Date</para>
338 </td>
339 <td>
340 <para style="P4">Invoice</para>
341 </td>
342 <td>
343 <para style="P4">Original Amt.</para>
344 </td>
345 <td>
346 <para style="P4">Balance Due</para>
347 </td>
348 <td>
349 <para style="P4">Discount</para>
350 </td>
351 <td>
352 <para style="P4">Payment</para>
353 </td>
354 </tr>
355 <tr>
356 <td>
357 <para style="P6">[[ repeatIn(get_all_lines(voucher),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
358 </td>
359 <td>
360 <para style="P6">[[ l['name'] ]]</para>
361 </td>
362 <td>
363 <para style="P6">[[ ( formatLang(l['amount_original'])) ]]</para>
364 </td>
365 <td>
366 <para style="P6">[[ (formatLang(l['amount_unreconciled'])) ]]</para>
367 </td>
368 <td>
369 <para style="P6">
370 <font color="white"> </font>
371 </para>
372 </td>
373 <td>
374 <para style="P6">[[ ( formatLang(l['amount'])) ]]</para>
375 </td>
376 </tr>
377 </blockTable>
378 <blockTable colWidths="505.0,81.0" style="Table11">
379 <tr>
380 <td>
381 <para style="P3">Check Amount</para>
382 </td>
383 <td>
384 <para style="P2"><font face="Helvetica">[[ voucher.currency_id.symbol ]]</font>[[ formatLang (voucher.amount) ]]</para>
385 </td>
386 </tr>
387 </blockTable>
388 <para style="P1">
389 <font color="white"> </font>
390 </para>
391 </td>
392 </tr>
393 </blockTable>
394 <para style="P19"/>
395 <blockTable colWidths="591.0" style="Table8">
396 <tr>
397 <td>
398 <blockTable colWidths="464.0,121.0" style="Table3">
399 <tr>
400 <td>
401 <para style="P2">[[voucher.partner_id.name]]</para>
402 </td>
403 <td>
404 <para style="P2">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
405 </td>
406 </tr>
407 </blockTable>
408 <blockTable colWidths="68.0,157.0,70.0,69.0,141.0,80.0" style="Table5">
409 <tr>
410 <td>
411 <para style="P4">Due Date</para>
412 </td>
413 <td>
414 <para style="P4">Invoice</para>
415 </td>
416 <td>
417 <para style="P4">Original Amt.</para>
418 </td>
419 <td>
420 <para style="P4">Balance Due</para>
421 </td>
422 <td>
423 <para style="P4">Discount</para>
424 </td>
425 <td>
426 <para style="P4">Payment</para>
427 </td>
428 </tr>
429 <tr>
430 <td>
431 <para style="P6">[[ repeatIn(get_all_lines(voucher),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
432 </td>
433 <td>
434 <para style="P6">[[ l['name'] ]]</para>
435 </td>
436 <td>
437 <para style="P6">[[ ( formatLang(l['amount_original'])) ]]</para>
438 </td>
439 <td>
440 <para style="P6">[[ (formatLang(l['amount_unreconciled'])) ]]</para>
441 </td>
442 <td>
443 <para style="P6">
444 <font color="white"> </font>
445 </para>
446 </td>
447 <td>
448 <para style="P6">[[ ( formatLang(l['amount'])) ]]</para>
449 </td>
450 </tr>
451 </blockTable>
452 <blockTable colWidths="505.0,80.0" style="Table7">
453 <tr>
454 <td>
455 <para style="P3">Check Amount</para>
456 </td>
457 <td>
458 <para style="P2"><font face="Helvetica">[[ voucher.currency_id.symbol ]]</font>[[ formatLang (voucher.amount) ]]</para>
459 </td>
460 </tr>
461 </blockTable>
462 <para style="P25">
463 <font color="white"> </font>
464 </para>
465 </td>
466 </tr>
467 </blockTable>
468 <para style="P14">
334 <font color="white"> </font>469 <font color="white"> </font>
335 </para>470 </para>
336 </story>471 </story>
337</document>472</document>
473
338474
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print_top.sxw'
339Binary files l10n_ca_account_check_writing/report/l10n_ca_check_print_top.sxw 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/report/l10n_ca_check_print_top.sxw 2014-05-12 21:07:22 +0000 differ475Binary files l10n_ca_account_check_writing/report/l10n_ca_check_print_top.sxw 1970-01-01 00:00:00 +0000 and l10n_ca_account_check_writing/report/l10n_ca_check_print_top.sxw 2014-05-12 21:07:22 +0000 differ

Subscribers

People subscribed via source and target branches