openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02605
lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing into lp:openerp-canada
Joao Alfredo Gama Batista has proposed merging lp:~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing into lp:openerp-canada.
Requested reviews:
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
For more details, see:
https://code.launchpad.net/~openerp-community/openerp-canada/7.0-l10n_ca_account_check_writing/+merge/161033
7.0 initial version based on the 6.1 branch
--
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.
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import company
+import account_voucher
+import report
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+ 'name': 'Canadian Check Writing',
+ 'version': '1.0',
+ 'author': 'Savoir-faire Linux',
+ 'website': 'http://www.savoirfairelinux.com',
+ 'category': 'Generic Modules/Accounting',
+ 'description': """
+Print checks in Canadian's format'
+==================================
+
+This module provides reports to print check using the canadian format from:
+http://www.cdnpay.ca/imis15/pdf/pdfs_rules/standard_006_fr.pdf
+
+ """,
+ 'depends': ['account_check_writing'],
+ 'data': [
+ 'l10n_ca_account_check_writing_report.xml',
+ ],
+ 'demo': [],
+ 'test': [],
+ 'installable': True,
+ 'active': False,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+
+
+class account_voucher(orm.Model):
+ _inherit = 'account.voucher'
+
+ def print_check(self, cr, uid, ids, context=None):
+ if not ids:
+ return {}
+
+ check_layout_report = {
+ 'top': 'account.print.check.top',
+ 'middle': 'account.print.check.middle',
+ 'bottom': 'account.print.check.bottom',
+ 'top_ca': 'l10n.ca.account.print.check.top',
+ 'middle_ca': 'l10n.ca.account.print.check.middle',
+ #'bottom_ca': 'l10n.ca.account.print.check.bottom',
+ }
+
+ check_layout = self.browse(cr, uid, ids[0], context=context).company_id.check_layout
+ return {
+ 'type': 'ir.actions.report.xml',
+ 'report_name': check_layout_report[check_layout],
+ 'datas': {
+ 'model': 'account.voucher',
+ 'id': ids and ids[0] or False,
+ 'ids': ids and ids or [],
+ 'report_type': 'pdf'
+ },
+ 'nodestroy': True
+ }
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import orm, fields
+
+
+class res_company(orm.Model):
+ _inherit = 'res.company'
+
+ _columns = {
+ 'check_layout': fields.selection([
+ ('top', 'Check on Top'),
+ ('middle', 'Check in middle'),
+ ('bottom', 'Check on bottom'),
+ ('top_ca', 'Check on top (CA)'),
+ ('middle_ca', 'Check in middle (CA)'),
+ ## ('bottom_ca', 'Check on bottom (CA)'),
+ ],
+ "Choose Check layout",
+ )
+ }
=== 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 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * l10n_ca_account_check_writing
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 6.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-04-23 20:44+0000\n"
+"PO-Revision-Date: 2013-04-23 20:44+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Check Amount"
+msgstr "Check Amount"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Description"
+msgstr "Description"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Due Date"
+msgstr "Due Date"
+
+#. module: l10n_ca_account_check_writing
+#: model:ir.actions.report.xml,name:l10n_ca_account_check_writing.l10n_ca_account_print_check_middle
+msgid "Print Check (CA)"
+msgstr "Print Check (CA)"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Discount"
+msgstr "Discount"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Original Amount"
+msgstr "Original Amount"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Date"
+msgstr "Date"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Balance Due"
+msgstr "Balance Due"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "Payment"
+msgstr "Payment"
+
+#. module: l10n_ca_account_check_writing
+#: report:l10n.ca.account.print.check.middle:0
+msgid "$"
+msgstr "$"
+
=== 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 @@
+<?xml version="1.0"?>
+<openerp>
+ <data>
+ <report id="l10n_ca_account_print_check_top"
+ string="Print Check CA (Top)"
+ model="account.voucher"
+ name="l10n.ca.account.print.check.top"
+ rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml"
+ multi="True"
+ auto="False"/>
+
+ <report id="l10n_ca_account_print_check_middle"
+ string="Print Check CA (Middle)"
+ model="account.voucher"
+ name="l10n.ca.account.print.check.middle"
+ rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml"
+ multi="True"
+ auto="False"/>
+<!--
+ <report id="l10n_ca_account_print_check_bottom"
+ string="Print Check (CA)"
+ model="account.voucher"
+ name="l10n.ca.account.print.check.middle"
+ rml="l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml"
+ multi="True"
+ auto="False"/>
+-->
+ </data>
+</openerp>
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import l10n_ca_check_print
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+
=== 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 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import time
+from openerp.report import report_sxw
+from openerp.tools import amount_to_text_en
+
+class report_print_check(report_sxw.rml_parse):
+
+ def __init__(self, cr, uid, name, context):
+ super(report_print_check, self).__init__(cr, uid, name, context)
+ self.number_lines = 0
+ self.number_add = 0
+ self.localcontext.update({
+ 'time': time,
+ 'get_lines': self.get_lines,
+ 'fill_stars' : self.fill_stars,
+ })
+ def fill_stars(self, amount):
+ amount = amount.replace('Dollars','')
+ if len(amount) < 100:
+ stars = 100 - len(amount)
+ return ' '.join([amount,'*'*stars])
+
+ else: return amount
+
+ def get_lines(self, voucher_lines):
+ result = []
+ self.number_lines = len(voucher_lines)
+ for i in range(0, min(10,self.number_lines)):
+ if i < self.number_lines:
+ res = {
+ 'date_due' : voucher_lines[i].date_due,
+ 'name' : voucher_lines[i].name,
+ 'amount_original' : voucher_lines[i].amount_original and voucher_lines[i].amount_original or False,
+ 'amount_unreconciled' : voucher_lines[i].amount_unreconciled and voucher_lines[i].amount_unreconciled or False,
+ 'amount' : voucher_lines[i].amount and voucher_lines[i].amount or False,
+ }
+ else :
+ res = {
+ 'date_due' : False,
+ 'name' : False,
+ 'amount_original' : False,
+ 'amount_due' : False,
+ 'amount' : False,
+ }
+ result.append(res)
+ return result
+
+report_sxw.report_sxw(
+ 'report.l10n.ca.account.print.check.top',
+ 'account.voucher',
+ 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_top.rml',
+ parser=report_print_check,header=False
+)
+
+report_sxw.report_sxw(
+ 'report.l10n.ca.account.print.check.middle',
+ 'account.voucher',
+ 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_middle.rml',
+ parser=report_print_check,header=False
+)
+
+#report_sxw.report_sxw(
+# 'report.l10n.ca.account.print.check.bottom',
+# 'account.voucher',
+# 'addons/l10n_ca_account_check_writing/report/l10n_ca_check_print_bottom.rml',
+# parser=report_print_check,header=False
+#)
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'l10n_ca_account_check_writing/report/l10n_ca_check_print.sxw'
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
=== 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 @@
+<?xml version="1.0"?>
+<document filename="test.pdf">
+ <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20">
+ <!-- Letter 612.0, 792.0 A4 595, 842 -->
+ <pageTemplate id="first">
+ <frame id="first" x1="13.0" y1="0.0" width="567" height="785"/>
+ </pageTemplate>
+ </template>
+ <stylesheet>
+ <blockTableStyle id="Standard_Outline">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table1">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table4">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table5">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table12">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table2">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table6">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table10">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table11">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table3">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table7">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table8">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table9">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <initialize>
+ <paraStyle name="all" alignment="justify"/>
+ </initialize>
+ <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>
+ <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/>
+ <paraStyle name="P3" fontName="Helvetica"/>
+ <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/>
+ <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
+ <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
+ <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/>
+ <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
+ <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/>
+ <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/>
+ <paraStyle name="P13" fontName="Helvetica"/>
+ <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
+ <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/>
+ <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>
+ <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/>
+ <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
+ <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
+ <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
+ <paraStyle name="P25" fontName="Helvetica" fontSize="10.0" leading="13" alignment="RIGHT"/>
+ <paraStyle name="Standard" fontName="Helvetica"/>
+ <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
+ <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+ <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+ <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
+ <paraStyle name="Index" fontName="Helvetica"/>
+ <paraStyle name="Table Contents" fontName="Helvetica"/>
+ <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
+ <images/>
+ </stylesheet>
+ <story>
+ <para style="P1">[[repeatIn(objects,'voucher')]]</para>
+ <blockTable colWidths="568.0" style="Table2" rowHeights="280">
+ <tr>
+ <td>
+ <blockTable colWidths="485.0,67.0" style="Table6">
+ <tr>
+ <td>
+ <para style="P16"></para>
+ </td>
+ <td>
+ <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P16">[[voucher.partner_id.name]]</para>
+ </td>
+ <td>
+ <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="81.0,186.0,83.0,81.0,54.0,78.0" style="Table10">
+ <tr>
+ <td>
+ <para style="P4">Due Date</para>
+ </td>
+ <td>
+ <para style="P4">Description</para>
+ </td>
+ <td>
+ <para style="P4">Original Amount</para>
+ </td>
+ <td>
+ <para style="P4">Balance Due</para>
+ </td>
+ <td>
+ <para style="P4">Discount</para>
+ </td>
+ <td>
+ <para style="P4">Payment</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ l['name'] ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[formatLang( l['amount_original']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang( l['amount_due']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount']) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+
+ <blockTable colWidths="485.0,77.0" style="Table11">
+ <tr>
+ <td>
+ <para style="P24">Check Amount</para>
+ </td>
+ <td>
+ <para style="P23">[[ formatLang (voucher.amount) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+
+ <blockTable colWidths="485.0,77.0" rowHeights="148.0,50.0" style="Table11">
+ <tr>
+ <td> </td>
+ <td> </td>
+ </tr>
+ <tr>
+ <td> </td>
+ <td>
+ <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ </td>
+ </tr>
+ </blockTable>
+
+ <blockTable colWidths="400.0,50.0" rowHeights="29.3" style="Table5">
+ <tr>
+ <td>
+ <para style="P25">Date</para>
+ </td>
+ <td>
+ <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+
+ <blockTable colWidths="30.0,538.0" rowHeights="15.0" style="Table5">
+ <tr>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ <td>
+ <para style="P26">[[ str(fill_stars(voucher.amount_in_word)) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+
+ <blockTable colWidths="568.0" style="Table1">
+ <tr>
+ <td>
+ <blockTable colWidths="30.0,420.0,50.0" rowHeights="22.8,130.0" style="Table12">
+ <tr>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ <td>
+ <para style="P9">[[ formatLang(voucher.amount) ]]</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ <td>
+ <para style="P15">[[ voucher.partner_id.name ]]</para>
+ <para style="P15">[[ display_address(voucher.partner_id) or removeParentNode('para') ]]</para>
+ </td>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="25.0,500" rowHeights="15.0" style="Table12">
+ <tr>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ </td>
+ <td>
+ <para style="P3"><font color="white"> </font></para>
+ <!--para style="P15">[[ voucher.name ]]</para-->
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="568.0" style="Table3">
+ <tr>
+ <td>
+ <blockTable colWidths="436.0,76.0,20.0" style="Table7">
+ <tr>
+ <td>
+ <para style="P16">[[voucher.partner_id.name]]</para>
+ </td>
+ <td>
+ <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]]</para>
+ </td>
+ <td>
+ <para style="P14">[[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8">
+ <tr>
+ <td>
+ <para style="P4">Due Date</para>
+ </td>
+ <td>
+ <para style="P4">Description</para>
+ </td>
+ <td>
+ <para style="P4">Original Amount</para>
+ </td>
+ <td>
+ <para style="P4">Balance Due</para>
+ </td>
+ <td>
+ <para style="P4">Discount</para>
+ </td>
+ <td>
+ <para style="P4">Payment</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_original'] ,date=True) or '' ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ l['name'] ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount_original']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount_due']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount']) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="485.0,77.0" style="Table9">
+ <tr>
+ <td>
+ <para style="P24">Check Amount</para>
+ </td>
+ <td>
+ <para style="P23">[[ formatLang (voucher.amount) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P2">
+ <font color="white"> </font>
+ </para>
+ </story>
+</document>
=== 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 @@
+<?xml version="1.0"?>
+<document filename="test.pdf">
+ <template pageSize="(595, 842)" title="Test" author="Martin Simon" allowSplitting="20">
+ <pageTemplate id="first">
+ <frame id="first" x1="13.0" y1="0.0" width="567" height="841"/>
+ </pageTemplate>
+ </template>
+ <stylesheet>
+ <blockTableStyle id="Standard_Outline">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table1">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table4">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table5">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table12">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table2">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table6">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table10">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table11">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table3">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table7">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table8">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <blockTableStyle id="Table9">
+ <blockAlignment value="LEFT"/>
+ <blockValign value="TOP"/>
+ </blockTableStyle>
+ <initialize>
+ <paraStyle name="all" alignment="justify"/>
+ </initialize>
+ <paraStyle name="P1" rightIndent="-1.0" leftIndent="0.0" fontName="Helvetica"/>
+ <paraStyle name="P2" rightIndent="0.0" leftIndent="0.0" fontName="Helvetica"/>
+ <paraStyle name="P3" fontName="Helvetica"/>
+ <paraStyle name="P4" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT"/>
+ <paraStyle name="P5" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
+ <paraStyle name="P6" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
+ <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P8" fontName="Helvetica" fontSize="9.0" leading="11"/>
+ <paraStyle name="P9" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P10" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="RIGHT"/>
+ <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="10.0" leading="13" alignment="LEFT"/>
+ <paraStyle name="P12" fontName="Helvetica" fontSize="12.0" leading="15"/>
+ <paraStyle name="P13" fontName="Helvetica"/>
+ <paraStyle name="P14" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P15" fontName="Helvetica" fontSize="10.0" leading="13"/>
+ <paraStyle name="P16" fontName="Helvetica-Bold" fontSize="9.0" leading="11"/>
+ <paraStyle name="P17" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P18" fontName="Helvetica" fontSize="9.0" leading="11"/>
+ <paraStyle name="P19" fontName="Helvetica" fontSize="9.0" leading="11" alignment="LEFT"/>
+ <paraStyle name="P20" fontName="Helvetica" fontSize="9.0" leading="11" alignment="RIGHT"/>
+ <paraStyle name="P21" fontName="Helvetica" fontSize="8.0" leading="10"/>
+ <paraStyle name="P22" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT"/>
+ <paraStyle name="P23" fontName="Helvetica-Bold" fontSize="8.0" leading="10"/>
+ <paraStyle name="P24" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT"/>
+ <paraStyle name="Standard" fontName="Helvetica"/>
+ <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
+ <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+ <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
+ <paraStyle name="Caption" fontName="Helvetica" fontSize="12.0" leading="15" spaceBefore="6.0" spaceAfter="6.0"/>
+ <paraStyle name="Index" fontName="Helvetica"/>
+ <paraStyle name="Table Contents" fontName="Helvetica"/>
+ <paraStyle name="Table Heading" fontName="Helvetica" alignment="CENTER"/>
+ <images/>
+ </stylesheet>
+ <story>
+ <para style="P1">[[repeatIn(objects,'voucher')]]</para>
+ <blockTable colWidths="568.0" style="Table1">
+ <tr>
+ <td>
+ <blockTable colWidths="425.0,177.0" rowHeights="107.50,25.5" style="Table4">
+ <tr>
+ <td>
+ <para style="P6">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P6">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P6">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P9">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="54.0,425.0,85.0" rowHeights="21.5" style="Table4">
+ <tr>
+ <td>
+ <para style="P6">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P9">[[ voucher.partner_id.name ]] </para>
+ </td>
+ <td>
+ <para style="P12">[[ formatLang (voucher.amount) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="550.0" rowHeights="18" style="Table5">
+ <tr>
+ <td>
+ <para style="P9">[[ fill_stars(voucher.amount_in_word) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="54.0,425.0,85.0" rowHeights="45.5" style="Table4">
+ <tr>
+ <td>
+ <para style="P6"></para>
+ </td>
+ <td>
+ <para style="P9">[[ voucher.partner_id.name ]] </para>
+ <para style="P15">[[ voucher.partner_id.address and voucher.partner_id.address[0] and voucher.partner_id.address[0].street2 or removeParentNode('para') ]]</para>
+ <para style="P15">[[ get_zip_line(voucher.partner_id.address[0]) ]] </para>
+ <para style="P15">[[ voucher.partner_id.address[0].country_id.name]]</para>
+ </td>
+ <td>
+ <para/>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="25.0,350,150" rowHeights="10.5" style="Table12">
+ <tr>
+ <td>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P15">[[ voucher.name ]]</para>
+ </td>
+ <td>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="568.0" style="Table2" rowHeights="255">
+ <tr>
+ <td>
+ <blockTable colWidths="445.0,117.0" style="Table6">
+ <tr>
+ <td>
+ <para style="P16">[[voucher.partner_id.name]]</para>
+ </td>
+ <td>
+ <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table10">
+ <tr>
+ <td>
+ <para style="P4">Due Date</para>
+ </td>
+ <td>
+ <para style="P4">Description</para>
+ </td>
+ <td>
+ <para style="P4">Original Amount</para>
+ </td>
+ <td>
+ <para style="P4">Open Balance</para>
+ </td>
+ <td>
+ <para style="P4">Discount</para>
+ </td>
+ <td>
+ <para style="P4">Payment</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ l['name'] ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[formatLang( l['amount_original']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang( l['amount_unreconciled']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount']) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="485.0,77.0" style="Table11">
+ <tr>
+ <td>
+ <para style="P24">Check Amount</para>
+ </td>
+ <td>
+ <para style="P23">[[ formatLang (voucher.amount) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="568.0" style="Table3">
+ <tr>
+ <td>
+ <blockTable colWidths="446.0,116.0" style="Table7">
+ <tr>
+ <td>
+ <para style="P16">[[voucher.partner_id.name]]</para>
+ </td>
+ <td>
+ <para style="P16">[[ formatLang(voucher.date , date=True) or '' ]] [[ voucher.journal_id.use_preprint_check and voucher.chk_seq or '' ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="82.0,185.0,89.0,76.0,52.0,78.0" style="Table8">
+ <tr>
+ <td>
+ <para style="P4">Due Date</para>
+ </td>
+ <td>
+ <para style="P4">Description</para>
+ </td>
+ <td>
+ <para style="P4">Original Amount</para>
+ </td>
+ <td>
+ <para style="P4">Open Balance</para>
+ </td>
+ <td>
+ <para style="P4">Discount</para>
+ </td>
+ <td>
+ <para style="P4">Payment</para>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <para style="P19">[[ repeatIn(get_lines(voucher.line_dr_ids),'l') ]] [[ formatLang(l['date_due'] ,date=True) or '' ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ l['name'] ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount_original']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount_unreconciled']) ]]</para>
+ </td>
+ <td>
+ <para style="P19">
+ <font color="white"> </font>
+ </para>
+ </td>
+ <td>
+ <para style="P19">[[ formatLang (l['amount']) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <blockTable colWidths="485.0,77.0" style="Table9">
+ <tr>
+ <td>
+ <para style="P17">Check Amount</para>
+ </td>
+ <td>
+ <para style="P16">[[ formatLang (voucher.amount) ]]</para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P3">
+ <font color="white"> </font>
+ </para>
+ </td>
+ </tr>
+ </blockTable>
+ <para style="P2">
+ <font color="white"> </font>
+ </para>
+ </story>
+</document>
=== 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'
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
Follow ups