Merge lp:~unifield-team/unifield-addons/uf-1714 into lp:unifield-addons

Proposed by jftempo
Status: Merged
Merged at revision: 4607
Proposed branch: lp:~unifield-team/unifield-addons/uf-1714
Merge into: lp:unifield-addons
Diff against target: 1912 lines (+769/-648)
7 files modified
account/account_report.xml (+11/-1)
account/report/account_general_ledger.py (+202/-10)
account/report/account_general_ledger.rml (+47/-254)
account/report/account_general_ledger_landscape.rml (+147/-375)
account/report/account_general_ledger_xls.mako (+279/-0)
account/wizard/account_report_general_ledger.py (+52/-4)
account/wizard/account_report_general_ledger_view.xml (+31/-4)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/uf-1714
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+195731@code.launchpad.net
To post a comment you must log in.
4619. By Vincent GREINER

UF-1714 general ledger report view xml update

4620. By Vincent GREINER

UF-1714-addons merge unifield-addons and proprietary instances in report header

4621. By Vincent GREINER

UF-1714-addons xls header 'All journals' if all journal selected vs codes like in UF-1715

4622. By Vincent GREINER

UF-1714-addons not displaying 8* 9* account then deduced 8 and 9 amount to MSF root account

4623. By Vincent GREINER

UF-1714-addons report mako xls layout review

4624. By Vincent GREINER

UF-1714-addons set intance_ids filter in context for account._compute (for accounts of type 'view' debit/credit/balance calculation), fixing missing account 9* excluding

4625. By Vincent GREINER

UF-1714 [FIX] reducing journal info cols for debit/credit/balance OK with large amounts

4626. By Vincent GREINER

UF-1714-addons [IMP] mako xls header title and footer page count

4627. By Vincent GREINER

UF-1714-addons [FIX] report mako - remove auto filter cells in worksheet, fixing counterpart cell format: numeric

4628. By Vincent GREINER

UF-1714 hidding output currency criteria

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account/account_report.xml'
--- account/account_report.xml 2013-11-28 20:42:44 +0000
+++ account/account_report.xml 2013-12-20 09:30:16 +0000
@@ -48,6 +48,16 @@
48 rml="account/report/account_balance_landscape.rml"48 rml="account/report/account_balance_landscape.rml"
49 auto="False"49 auto="False"
50 menu="False"/>50 menu="False"/>
5151
52 <!-- UF-1714 -->
53 <report id="account_general_ledger_xls"
54 auto="False"
55 menu="False"
56 header="False"
57 model="account.account"
58 name="account.general.ledger_xls"
59 file="account/report/account_general_ledger_xls.mako"
60 report_type="webkit"
61 string="General Ledger"/>
52 </data>62 </data>
53</openerp>63</openerp>
5464
=== modified file 'account/report/account_general_ledger.py'
--- account/report/account_general_ledger.py 2011-01-14 00:11:01 +0000
+++ account/report/account_general_ledger.py 2013-12-20 09:30:16 +0000
@@ -30,6 +30,8 @@
30import time30import time
31from report import report_sxw31from report import report_sxw
32from common_report_header import common_report_header32from common_report_header import common_report_header
33from report_webkit.webkit_report import WebKitParser
34from spreadsheet_xml.spreadsheet_xml_write import SpreadsheetReport
3335
34class general_ledger(report_sxw.rml_parse, common_report_header):36class general_ledger(report_sxw.rml_parse, common_report_header):
35 _name = 'report.account.general.ledger'37 _name = 'report.account.general.ledger'
@@ -37,6 +39,7 @@
37 def set_context(self, objects, data, ids, report_type=None):39 def set_context(self, objects, data, ids, report_type=None):
38 new_ids = ids40 new_ids = ids
39 obj_move = self.pool.get('account.move.line')41 obj_move = self.pool.get('account.move.line')
42
40 self.sortby = data['form'].get('sortby', 'sort_date')43 self.sortby = data['form'].get('sortby', 'sort_date')
41 self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{}))44 self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context',{}))
42 ctx2 = data['form'].get('used_context',{}).copy()45 ctx2 = data['form'].get('used_context',{}).copy()
@@ -53,11 +56,60 @@
53 ctx['date_from'] = data['form']['date_from']56 ctx['date_from'] = data['form']['date_from']
54 ctx['date_to'] = data['form']['date_to']57 ctx['date_to'] = data['form']['date_to']
55 ctx['state'] = data['form']['target_move']58 ctx['state'] = data['form']['target_move']
59 if 'instance_ids' in data['form']:
60 ctx['instance_ids'] = data['form']['instance_ids']
56 self.context.update(ctx)61 self.context.update(ctx)
57 if (data['model'] == 'ir.ui.menu'):62 if (data['model'] == 'ir.ui.menu'):
58 new_ids = [data['form']['chart_account_id']]63 new_ids = [data['form']['chart_account_id']]
59 objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids)64 objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids, context=self.context)
60 return super(general_ledger, self).set_context(objects, data, new_ids, report_type=report_type)65
66 # output currency
67 self.output_currency_id = data['form']['output_currency']
68 self.output_currency_code = ''
69 if self.output_currency_id:
70 ouput_cur_r = self.pool.get('res.currency').read(self.cr,
71 self.uid,
72 [self.output_currency_id],
73 ['name'])
74 if ouput_cur_r and ouput_cur_r[0] and ouput_cur_r[0]['name']:
75 self.output_currency_code = ouput_cur_r[0]['name']
76
77 # proprietary instances filter
78 self.instance_ids = data['form']['instance_ids']
79 if self.instance_ids:
80 # we add instance filter in clauses 'self.query/self.init_query'
81 instance_ids_in = "l.instance_id in(%s)" % (",".join(map(str, self.instance_ids)))
82 if not self.query:
83 self.query = instance_ids_in
84 else:
85 self.query += ' AND ' + instance_ids_in
86 if not self.init_query:
87 self.init_query = instance_ids_in
88 else:
89 self.init_query += ' AND ' + instance_ids_in
90
91 res = super(general_ledger, self).set_context(objects, data, new_ids, report_type=report_type)
92
93 # UF-1714
94 # accounts 8*, 9* are not displayed:
95 # we have to deduce debit/credit/balance amounts of MSF account view (root account)
96 self._deduce_accounts = {
97 '8': {'debit': 0., 'credit': 0., 'balance': 0. },
98 '9': {'debit': 0., 'credit': 0., 'balance': 0. },
99 }
100 a_obj = self.pool.get('account.account')
101 for a_code in self._deduce_accounts:
102 a_ids = a_obj.search(self.cr, self.uid, [('code', '=', a_code)])
103 if a_ids:
104 if isinstance(a_ids, (int, long)):
105 a_ids = [a_ids]
106 account = a_obj.browse(self.cr, self.uid, a_ids, context=self.context)[0]
107 if account:
108 self._deduce_accounts[a_code]['debit'] = self._sum_debit_account(account)
109 self._deduce_accounts[a_code]['credit'] = self._sum_credit_account(account)
110 self._deduce_accounts[a_code]['balance'] = self._sum_balance_account(account)
111
112 return res
61113
62 def __init__(self, cr, uid, name, context=None):114 def __init__(self, cr, uid, name, context=None):
63 if context is None:115 if context is None:
@@ -68,7 +120,7 @@
68 self.period_sql = ""120 self.period_sql = ""
69 self.sold_accounts = {}121 self.sold_accounts = {}
70 self.sortby = 'sort_date'122 self.sortby = 'sort_date'
71 self.localcontext.update( {123 self.localcontext.update({
72 'time': time,124 'time': time,
73 'lines': self.lines,125 'lines': self.lines,
74 'sum_debit_account': self._sum_debit_account,126 'sum_debit_account': self._sum_debit_account,
@@ -86,7 +138,27 @@
86 'get_start_date':self._get_start_date,138 'get_start_date':self._get_start_date,
87 'get_end_date':self._get_end_date,139 'get_end_date':self._get_end_date,
88 'get_target_move': self._get_target_move,140 'get_target_move': self._get_target_move,
141 'get_output_currency_code': self._get_output_currency_code,
142 'get_filter_info': self._get_filter_info,
143 'get_line_debit': self._get_line_debit,
144 'get_line_credit': self._get_line_credit,
145 'get_line_balance': self._get_line_balance,
146 'currency_conv': self._currency_conv,
147 'get_prop_instances': self._get_prop_instances,
89 })148 })
149
150 # company currency
151 self.uid = uid
152 self.currency_id = False
153 self.instance_id = False
154 user = self.pool.get('res.users').browse(cr, uid, [uid], context=context)
155 if user and user[0] and user[0].company_id:
156 self.currency_id = user[0].company_id.currency_id.id
157 if user[0].company_id.instance_id:
158 self.instance_id = user[0].company_id.instance_id.id
159 if not self.currency_id:
160 raise osv.except_osv(_('Error !'), _('Company has no default currency'))
161
90 self.context = context162 self.context = context
91163
92 def _sum_currency_amount_account(self, account):164 def _sum_currency_amount_account(self, account):
@@ -104,9 +176,13 @@
104 def get_children_accounts(self, account):176 def get_children_accounts(self, account):
105 res = []177 res = []
106 currency_obj = self.pool.get('res.currency')178 currency_obj = self.pool.get('res.currency')
179
107 ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id)180 ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id)
108 currency = account.currency_id and account.currency_id or account.company_id.currency_id181 currency = account.currency_id and account.currency_id or account.company_id.currency_id
109 for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc, context=self.context):182 for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc, context=self.context):
183 if child_account.code.startswith('8') or child_account.code.startswith('9'):
184 # UF-1714: exclude accounts '8*'/'9*'
185 continue
110 sql = """186 sql = """
111 SELECT count(id)187 SELECT count(id)
112 FROM account_move_line AS l188 FROM account_move_line AS l
@@ -128,7 +204,6 @@
128 if not res:204 if not res:
129 return [account]205 return [account]
130 return res206 return res
131
132 def lines(self, account):207 def lines(self, account):
133 """ Return all the account_move_line of account with their account code counterparts """208 """ Return all the account_move_line of account with their account code counterparts """
134 move_state = ['draft','posted']209 move_state = ['draft','posted']
@@ -161,7 +236,7 @@
161 else:236 else:
162 sql_sort='l.date, l.move_id'237 sql_sort='l.date, l.move_id'
163 sql = """238 sql = """
164 SELECT l.id AS lid, l.date AS ldate, j.code AS lcode, l.currency_id,l.amount_currency,l.ref AS lref, l.name AS lname, COALESCE(l.debit,0) AS debit, COALESCE(l.credit,0) AS credit, l.period_id AS lperiod_id, l.partner_id AS lpartner_id,239 SELECT l.id AS lid, l.date AS ldate, j.code AS lcode, l.currency_id,l.amount_currency,l.ref AS lref, l.name AS lname, COALESCE(l.debit,0) AS debit, COALESCE(l.credit,0) AS credit, COALESCE(l.debit_currency,0) as debit_currency, COALESCE(l.credit_currency,0) as credit_currency, l.period_id AS lperiod_id, l.partner_id AS lpartner_id,
165 m.name AS move_name, m.id AS mmove_id,per.code as period_code,240 m.name AS move_name, m.id AS mmove_id,per.code as period_code,
166 c.symbol AS currency_code,241 c.symbol AS currency_code,
167 i.id AS invoice_id, i.type AS invoice_type, i.number AS invoice_number,242 i.id AS invoice_id, i.type AS invoice_type, i.number AS invoice_number,
@@ -181,7 +256,7 @@
181 if res_lines and self.init_balance:256 if res_lines and self.init_balance:
182 #FIXME: replace the label of lname with a string translatable257 #FIXME: replace the label of lname with a string translatable
183 sql = """258 sql = """
184 SELECT 0 AS lid, '' AS ldate, '' AS lcode, COALESCE(SUM(l.amount_currency),0.0) AS amount_currency, '' AS lref, 'Initial Balance' AS lname, COALESCE(SUM(l.debit),0.0) AS debit, COALESCE(SUM(l.credit),0.0) AS credit, '' AS lperiod_id, '' AS lpartner_id,259 SELECT 0 AS lid, '' AS ldate, '' AS lcode, COALESCE(SUM(l.amount_currency),0.0) AS amount_currency, '' AS lref, 'Initial Balance' AS lname, COALESCE(SUM(l.debit),0.0) AS debit, COALESCE(SUM(l.credit),0.0) AS credit,COALESCE(SUM(l.debit_currency),0.0) AS debit_currency, COALESCE(SUM(l.credit_currency),0.0) AS credit_currency, '' AS lperiod_id, '' AS lpartner_id,
185 '' AS move_name, '' AS mmove_id, '' AS period_code,260 '' AS move_name, '' AS mmove_id, '' AS period_code,
186 '' AS currency_code,261 '' AS currency_code,
187 NULL AS currency_id,262 NULL AS currency_id,
@@ -215,7 +290,14 @@
215290
216 def _sum_debit_account(self, account):291 def _sum_debit_account(self, account):
217 if account.type == 'view':292 if account.type == 'view':
218 return account.debit293 amount = account.debit
294 if not account.parent_id:
295 # UF-1714
296 # accounts 8*, 9* are not displayed:
297 # we have to deduce debit/credit/balance amounts of MSF account view (root account)
298 for a_code in self._deduce_accounts:
299 amount -= self._deduce_accounts[a_code]['debit']
300 return self._currency_conv(amount)
219 move_state = ['draft','posted']301 move_state = ['draft','posted']
220 if self.target_move == 'posted':302 if self.target_move == 'posted':
221 move_state = ['posted','']303 move_state = ['posted','']
@@ -226,6 +308,16 @@
226 AND (am.state IN %s) \308 AND (am.state IN %s) \
227 AND '+ self.query +' '309 AND '+ self.query +' '
228 ,(account.id, tuple(move_state)))310 ,(account.id, tuple(move_state)))
311 #~ self.cr.execute("SELECT sum(debit)" \
312 #~ " FROM account_move_line l" \
313 #~ " JOIN account_move am ON (am.id = l.move_id)" \
314 #~ " JOIN account_account a ON (a.id = l.account_id)" \
315 #~ " WHERE (l.account_id = %s)" \
316 #~ " AND (am.state IN %s)" \
317 #~ " AND (a.code not like '8%%')" \
318 #~ " AND (a.code not like '9%%')" \
319 #~ " AND "+ self.query + " "
320 #~ ,(account.id, tuple(move_state)))
229 sum_debit = self.cr.fetchone()[0] or 0.0321 sum_debit = self.cr.fetchone()[0] or 0.0
230 if self.init_balance:322 if self.init_balance:
231 self.cr.execute('SELECT sum(debit) \323 self.cr.execute('SELECT sum(debit) \
@@ -235,13 +327,31 @@
235 AND (am.state IN %s) \327 AND (am.state IN %s) \
236 AND '+ self.init_query +' '328 AND '+ self.init_query +' '
237 ,(account.id, tuple(move_state)))329 ,(account.id, tuple(move_state)))
330 #~ self.cr.execute("SELECT sum(debit)" \
331 #~ "FROM account_move_line l" \
332 #~ " JOIN account_move am ON (am.id = l.move_id)" \
333 #~ " JOIN account_account a ON (a.id = l.account_id)" \
334 #~ " WHERE (l.account_id = %s)" \
335 #~ " AND (am.state IN %s)" \
336 #~ " AND (a.code not like '8%%')" \
337 #~ " AND (a.code not like '9%%')" \
338 #~ " AND " + self.init_query + " "
339 #~ ,(account.id, tuple(move_state)))
238 # Add initial balance to the result340 # Add initial balance to the result
239 sum_debit += self.cr.fetchone()[0] or 0.0341 sum_debit += self.cr.fetchone()[0] or 0.0
342 sum_debit = self._currency_conv(sum_debit)
240 return sum_debit343 return sum_debit
241344
242 def _sum_credit_account(self, account):345 def _sum_credit_account(self, account):
243 if account.type == 'view':346 if account.type == 'view':
244 return account.credit347 amount = account.credit
348 if not account.parent_id:
349 # UF-1714
350 # accounts 8*, 9* are not displayed:
351 # we have to deduce debit/credit/balance amounts of MSF account view (root account)
352 for a_code in self._deduce_accounts:
353 amount -= self._deduce_accounts[a_code]['credit']
354 return self._currency_conv(amount)
245 move_state = ['draft','posted']355 move_state = ['draft','posted']
246 if self.target_move == 'posted':356 if self.target_move == 'posted':
247 move_state = ['posted','']357 move_state = ['posted','']
@@ -263,11 +373,19 @@
263 ,(account.id, tuple(move_state)))373 ,(account.id, tuple(move_state)))
264 # Add initial balance to the result374 # Add initial balance to the result
265 sum_credit += self.cr.fetchone()[0] or 0.0375 sum_credit += self.cr.fetchone()[0] or 0.0
376 sum_credit = self._currency_conv(sum_credit)
266 return sum_credit377 return sum_credit
267378
268 def _sum_balance_account(self, account):379 def _sum_balance_account(self, account):
269 if account.type == 'view':380 if account.type == 'view':
270 return account.balance381 amount = account.balance
382 if not account.parent_id:
383 # UF-1714
384 # accounts 8*, 9* are not displayed:
385 # we have to deduce debit/credit/balance amounts of MSF account view (root account)
386 for a_code in self._deduce_accounts:
387 amount -= self._deduce_accounts[a_code]['balance']
388 return self._currency_conv(amount)
271 move_state = ['draft','posted']389 move_state = ['draft','posted']
272 if self.target_move == 'posted':390 if self.target_move == 'posted':
273 move_state = ['posted','']391 move_state = ['posted','']
@@ -289,11 +407,12 @@
289 ,(account.id, tuple(move_state)))407 ,(account.id, tuple(move_state)))
290 # Add initial balance to the result408 # Add initial balance to the result
291 sum_balance += self.cr.fetchone()[0] or 0.0409 sum_balance += self.cr.fetchone()[0] or 0.0
410 sum_balance = self._currency_conv(sum_balance)
292 return sum_balance411 return sum_balance
293412
294 def _get_account(self, data):413 def _get_account(self, data):
295 if data['model'] == 'account.account':414 if data['model'] == 'account.account':
296 return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id']).company_id.name415 return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id'], context=self.context).company_id.name
297 return super(general_ledger ,self)._get_account(data)416 return super(general_ledger ,self)._get_account(data)
298417
299 def _get_sortby(self, data):418 def _get_sortby(self, data):
@@ -302,8 +421,81 @@
302 elif self.sortby == 'sort_journal_partner':421 elif self.sortby == 'sort_journal_partner':
303 return 'Journal & Partner'422 return 'Journal & Partner'
304 return 'Date'423 return 'Date'
424
425 def _get_output_currency_code(self, data):
426 if not self.output_currency_code:
427 return ''
428 return self.output_currency_code
429
430 def _get_filter_info(self, data):
431 """ get filter info
432 _get_filter, _get_start_date, _get_end_date,
433 get_start_period, get_end_period
434 are from common_report_header
435 """
436 res = ''
437 f = self._get_filter(data)
438 if not f:
439 return res
305440
441 if f == 'No Filter':
442 res = f
443 elif f == 'Date':
444 res = self.formatLang(self._get_start_date(data), date=True) + ' - ' + self.formatLang(self._get_end_date(data), date=True)
445 elif f == 'Periods':
446 res = self.get_start_period(data) + ' - ' + self.get_end_period(data)
447 return res
448
449 def _get_line_debit(self, line):
450 return self._currency_conv(line['debit'])
451
452 def _get_line_credit(self, line):
453 return self._currency_conv(line['credit'])
454
455 def _get_line_balance(self, line):
456 return self._currency_conv(line['debit'] - line['credit'])
457
458 def _is_company_currency(self):
459 if not self.output_currency_id or not self.currency_id \
460 or self.output_currency_id == self.currency_id:
461 # ouput currency == company currency
462 return True
463 else:
464 # is other currency
465 return False
466
467 def _currency_conv(self, amount):
468 if not amount or amount == 0.:
469 return amount
470 if self._is_company_currency():
471 return amount
472 amount = self.pool.get('res.currency').compute(self.cr, self.uid,
473 self.currency_id,
474 self.output_currency_id,
475 amount)
476 if not amount:
477 amount = 0.
478 return amount
479
480 def _get_prop_instances(self, data):
481 instances = []
482 if data.get('form', False) and data['form'].get('instance_ids', False):
483 self.cr.execute('select code from msf_instance where id IN %s',(tuple(data['form']['instance_ids']),))
484 instances = [x for x, in self.cr.fetchall()]
485 return instances
486
306report_sxw.report_sxw('report.account.general.ledger', 'account.account', 'addons/account/report/account_general_ledger.rml', parser=general_ledger, header='internal')487report_sxw.report_sxw('report.account.general.ledger', 'account.account', 'addons/account/report/account_general_ledger.rml', parser=general_ledger, header='internal')
307report_sxw.report_sxw('report.account.general.ledger_landscape', 'account.account', 'addons/account/report/account_general_ledger_landscape.rml', parser=general_ledger, header='internal landscape')488report_sxw.report_sxw('report.account.general.ledger_landscape', 'account.account', 'addons/account/report/account_general_ledger_landscape.rml', parser=general_ledger, header='internal landscape')
308489
490
491class general_ledger_xls(SpreadsheetReport):
492 def __init__(self, name, table, rml=False, parser=report_sxw.rml_parse, header='external', store=False):
493 super(general_ledger_xls, self).__init__(name, table, rml=rml, parser=parser, header=header, store=store)
494
495 def create(self, cr, uid, ids, data, context=None):
496 #ids = getIds(self, cr, uid, ids, context)
497 a = super(general_ledger_xls, self).create(cr, uid, ids, data, context)
498 return (a[0], 'xls')
499general_ledger_xls('report.account.general.ledger_xls', 'account.account', 'addons/account/report/account_general_ledger_xls.mako', parser=general_ledger, header='internal')
500
309# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:501# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
310502
=== modified file 'account/report/account_general_ledger.rml'
--- account/report/account_general_ledger.rml 2011-01-14 00:11:01 +0000
+++ account/report/account_general_ledger.rml 2013-12-20 09:30:16 +0000
@@ -1,6 +1,6 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<document filename="General Ledger.pdf">2<document filename="test.pdf">
3 <template pageSize="(595.0,842.0)" title="General Ledger" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20">3 <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
4 <pageTemplate id="first">4 <pageTemplate id="first">
5 <frame id="first" x1="28.0" y1="28.0" width="539" height="772"/>5 <frame id="first" x1="28.0" y1="28.0" width="539" height="772"/>
6 </pageTemplate>6 </pageTemplate>
@@ -26,12 +26,9 @@
26 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>26 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
27 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>27 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
28 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>28 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
29 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
29 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>30 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>
30 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>31 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
31 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
32 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
33 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/>
34 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/>
35 </blockTableStyle>32 </blockTableStyle>
36 <blockTableStyle id="Table1">33 <blockTableStyle id="Table1">
37 <blockAlignment value="LEFT"/>34 <blockAlignment value="LEFT"/>
@@ -49,112 +46,9 @@
49 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>46 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/>
50 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>47 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/>
51 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>48 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
49 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/>
52 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>50 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/>
53 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>51 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/>
54 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
55 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/>
56 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/>
57 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/>
58 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="6,0" stop="6,-1"/>
59 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/>
60 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/>
61 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="7,0" stop="7,-1"/>
62 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="7,0" stop="7,-1"/>
63 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="7,0" stop="7,0"/>
64 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/>
65 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="8,0" stop="8,-1"/>
66 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="8,0" stop="8,0"/>
67 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>
68 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="9,0" stop="9,-1"/>
69 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="9,0" stop="9,-1"/>
70 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="9,0" stop="9,0"/>
71 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>
72 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="10,0" stop="10,-1"/>
73 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="10,0" stop="10,0"/>
74 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/>
75 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="11,0" stop="11,-1"/>
76 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="11,0" stop="11,-1"/>
77 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/>
78 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/>
79 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/>
80 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/>
81 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/>
82 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="13,0" stop="13,-1"/>
83 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="13,0" stop="13,-1"/>
84 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="13,0" stop="13,0"/>
85 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="13,-1" stop="13,-1"/>
86 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/>
87 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/>
88 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
89 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
90 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
91 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,1" stop="1,1"/>
92 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
93 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,2" stop="0,-1"/>
94 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,2" stop="0,2"/>
95 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
96 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,2" stop="1,-1"/>
97 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,2" stop="1,-1"/>
98 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,2" stop="1,2"/>
99 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
100 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,3" stop="0,-1"/>
101 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,3" stop="0,3"/>
102 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
103 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,3" stop="1,-1"/>
104 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,3" stop="1,-1"/>
105 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,3" stop="1,3"/>
106 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
107 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,4" stop="0,-1"/>
108 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,4" stop="0,4"/>
109 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
110 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,4" stop="1,-1"/>
111 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,4" stop="1,-1"/>
112 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,4" stop="1,4"/>
113 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
114 </blockTableStyle>
115 <blockTableStyle id="Table2">
116 <blockAlignment value="LEFT"/>
117 <blockValign value="TOP"/>
118 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
119 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
120 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
121 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
122 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
123 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
124 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
125 </blockTableStyle>
126 <blockTableStyle id="Table3">
127 <blockAlignment value="LEFT"/>
128 <blockValign value="TOP"/>
129 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
130 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
131 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
132 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
133 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
134 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
135 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
136 </blockTableStyle>
137 <blockTableStyle id="Table4">
138 <blockAlignment value="LEFT"/>
139 <blockValign value="TOP"/>
140 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
141 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
142 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
143 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
144 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
145 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
146 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
147 </blockTableStyle>
148 <blockTableStyle id="Table5">
149 <blockAlignment value="LEFT"/>
150 <blockValign value="TOP"/>
151 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
152 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
153 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
154 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
155 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
156 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
157 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
158 </blockTableStyle>52 </blockTableStyle>
159 <blockTableStyle id="Table7">53 <blockTableStyle id="Table7">
160 <blockAlignment value="LEFT"/>54 <blockAlignment value="LEFT"/>
@@ -227,6 +121,7 @@
227 <initialize>121 <initialize>
228 <paraStyle name="all" alignment="justify"/>122 <paraStyle name="all" alignment="justify"/>
229 </initialize>123 </initialize>
124 <paraStyle name="P1" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
230 <paraStyle name="Standard" fontName="Helvetica"/>125 <paraStyle name="Standard" fontName="Helvetica"/>
231 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>126 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
232 <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>127 <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
@@ -262,86 +157,12 @@
262 <images/>157 <images/>
263 </stylesheet>158 </stylesheet>
264 <story>159 <story>
265 <pto>
266 <pto_header>
267 <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
268 <tr>
269 <td>
270 <para style="terp_tblheader_Details">Date</para>
271 </td>
272 <td>
273 <para style="terp_tblheader_Details">JNRL</para>
274 </td>
275 <td>
276 <para style="terp_tblheader_Details">Partner</para>
277 </td>
278 <td>
279 <para style="terp_tblheader_Details_Centre">Ref</para>
280 </td>
281 <td>
282 <para style="terp_tblheader_Details_Centre">Move</para>
283 </td>
284 <td>
285 <para style="terp_tblheader_Details">Entry Label</para>
286 </td>
287 <td>
288 <para style="terp_tblheader_Details_Centre">Counterpart</para>
289 </td>
290 <td>
291 <para style="terp_tblheader_Details_Right">Debit</para>
292 </td>
293 <td>
294 <para style="terp_tblheader_Details_Right">Credit</para>
295 </td>
296 <td>
297 <para style="terp_tblheader_Details_Right">Balance</para>
298 </td>
299 </tr>
300 </blockTable>
301 <blockTable colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
302 <tr>
303 <td>
304 <para style="terp_tblheader_Details">Date</para>
305 </td>
306 <td>
307 <para style="terp_tblheader_Details">JNRL</para>
308 </td>
309 <td>
310 <para style="terp_tblheader_Details">Partner</para>
311 </td>
312 <td>
313 <para style="terp_tblheader_Details_Centre">Ref</para>
314 </td>
315 <td>
316 <para style="terp_tblheader_Details_Centre">Move</para>
317 </td>
318 <td>
319 <para style="terp_tblheader_Details">Entry Label</para>
320 </td>
321 <td>
322 <para style="terp_tblheader_Details_Centre">Counterpart</para>
323 </td>
324 <td>
325 <para style="terp_tblheader_Details_Right">Debit</para>
326 </td>
327 <td>
328 <para style="terp_tblheader_Details_Right">Credit</para>
329 </td>
330 <td>
331 <para style="terp_tblheader_Details_Right">Balance</para>
332 </td>
333 <td>
334 <para style="terp_tblheader_Details_Right">Currency</para>
335 </td>
336 </tr>
337 </blockTable>
338 </pto_header>
339 <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para>160 <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para>
340 <para style="terp_header_Centre">General Ledger</para>161 <para style="terp_header_Centre">General Ledger</para>
341 <para style="terp_default_8">162 <para style="terp_default_8">
342 <font color="white"> </font>163 <font color="white"> </font>
343 </para>164 </para>
344 <blockTable colWidths="102.0,102.0,102.0,130.0,102.0" style="Table13">165 <blockTable colWidths="82.0,82.0,82.0,169.0,123.0" style="Table13">
345 <tr>166 <tr>
346 <td>167 <td>
347 <para style="terp_tblheader_General_Centre">Chart of Account</para>168 <para style="terp_tblheader_General_Centre">Chart of Account</para>
@@ -360,7 +181,7 @@
360 </td>181 </td>
361 </tr>182 </tr>
362 </blockTable>183 </blockTable>
363 <blockTable colWidths="102.0,102.0,102.0,130.0,102.0" style="Table1">184 <blockTable colWidths="82.0,82.0,82.0,169.0,123.0" style="Table1">
364 <tr>185 <tr>
365 <td>186 <td>
366 <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para>187 <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para>
@@ -372,47 +193,7 @@
372 <para style="terp_default_Centre_8">[[', '.join([ lt or '' for lt in get_journal(data) ]) ]]</para>193 <para style="terp_default_Centre_8">[[', '.join([ lt or '' for lt in get_journal(data) ]) ]]</para>
373 </td>194 </td>
374 <td>195 <td>
375 <para style="terp_default_Centre_8">[[ get_filter(data)=='No Filter' and get_filter(data) or removeParentNode('para') ]]</para>196 <para style="terp_default_Centre_8">[[ get_filter_info(data) ]]</para>
376 <blockTable colWidths="58.0,58.0" style="Table2">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]]
377 <tr>
378 <td>
379 <para style="terp_tblheader_General_Centre">Start Date</para>
380 </td>
381 <td>
382 <para style="terp_tblheader_General_Centre">End Date</para>
383 </td>
384 </tr>
385 </blockTable>
386 <blockTable colWidths="58.0,58.0" style="Table3">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]]
387 <tr>
388 <td>
389 <para style="terp_default_Centre_8">[[ formatLang(get_start_date(data),date=True) ]]</para>
390 </td>
391 <td>
392 <para style="terp_default_Centre_8">[[ formatLang(get_end_date(data),date=True) ]]</para>
393 </td>
394 </tr>
395 </blockTable>
396 <blockTable colWidths="58.0,58.0" style="Table4">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]]
397 <tr>
398 <td>
399 <para style="terp_tblheader_General_Centre">Start Period</para>
400 </td>
401 <td>
402 <para style="terp_tblheader_General_Centre">End Period</para>
403 </td>
404 </tr>
405 </blockTable>
406 <blockTable colWidths="58.0,58.0" style="Table5">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]]
407 <tr>
408 <td>
409 <para style="terp_default_Centre_8">[[ get_start_period(data) or removeParentNode('para') ]]</para>
410 </td>
411 <td>
412 <para style="terp_default_Centre_8">[[ get_end_period(data) or removeParentNode('para') ]]</para>
413 </td>
414 </tr>
415 </blockTable>
416 <para style="terp_default_8">197 <para style="terp_default_8">
417 <font color="white"> </font>198 <font color="white"> </font>
418 </para>199 </para>
@@ -425,7 +206,7 @@
425 <para style="terp_default_8">206 <para style="terp_default_8">
426 <font color="white"> </font>207 <font color="white"> </font>
427 </para>208 </para>
428 <blockTable colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]209 <blockTable colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7">
429 <tr>210 <tr>
430 <td>211 <td>
431 <para style="terp_tblheader_Details">Date</para>212 <para style="terp_tblheader_Details">Date</para>
@@ -464,10 +245,10 @@
464 </blockTable>245 </blockTable>
465 <section>246 <section>
466 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>247 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>
467 <blockTable rowHeights="0.55cm" colWidths="278.0,57.0,57.0,74.0,74.0" style="Table8">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]248 <blockTable colWidths="278.0,57.0,57.0,74.0,74.0" style="Table8">
468 <tr>249 <tr>
469 <td>250 <td>
470 <para style="terp_default_Bold_9"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para>251 <para style="terp_default_Bold_9">[[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para>
471 </td>252 </td>
472 <td>253 <td>
473 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>254 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>
@@ -476,16 +257,16 @@
476 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>257 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>
477 </td>258 </td>
478 <td>259 <td>
479 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>260 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] </para>
480 </td>261 </td>
481 <td>262 <td>
482 <para style="terp_default_Bold_9_Right">[[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account')) + o.currency_id.symbol or '' ]]</para>263 <para style="terp_default_Bold_9_Right">[[ get_output_currency_code(data) ]]</para>
483 </td>264 </td>
484 </tr>265 </tr>
485 </blockTable>266 </blockTable>
486 <section>267 <section>
487 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>268 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>
488 <blockTable rowHeights="0.55cm" colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table9">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]269 <blockTable colWidths="47.0,21.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table9">
489 <tr>270 <tr>
490 <td>271 <td>
491 <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para>272 <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para>
@@ -497,10 +278,10 @@
497 <para style="terp_default_8">[[ strip_name(line['partner_name'],10) ]]</para>278 <para style="terp_default_8">[[ strip_name(line['partner_name'],10) ]]</para>
498 </td>279 </td>
499 <td>280 <td>
500 <para style="terp_default_8">[[ strip_name(line['lref'],9) ]]</para>281 <para style="terp_default_8">[[ strip_name(line['lref'],8) ]]</para>
501 </td>282 </td>
502 <td>283 <td>
503 <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para>284 <para style="terp_default_8">[[ strip_name(line['move'],8) ]]</para>
504 </td>285 </td>
505 <td>286 <td>
506 <para style="terp_default_8">[[ strip_name(line['lname'],10) ]]</para>287 <para style="terp_default_8">[[ strip_name(line['lname'],10) ]]</para>
@@ -509,25 +290,25 @@
509 <para style="terp_default_Centre_8">[[ strip_name(line['line_corresp'].replace(', ',','),10) ]]</para>290 <para style="terp_default_Centre_8">[[ strip_name(line['line_corresp'].replace(', ',','),10) ]]</para>
510 </td>291 </td>
511 <td>292 <td>
512 <para style="terp_default_Right_8">[[ formatLang(line['debit'], digits=get_digits(dp='Account')) ]]</para>293 <para style="terp_default_Right_8">[[ formatLang(get_line_debit(line), digits=get_digits(dp='Account')) ]]</para>
513 </td>294 </td>
514 <td>295 <td>
515 <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>296 <para style="terp_default_Right_8">[[ formatLang(get_line_credit(line), digits=get_digits(dp='Account')) ]]</para>
516 </td>297 </td>
517 <td>298 <td>
518 <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>299 <para style="terp_default_Right_8">[[ formatLang(get_line_balance(line), digits=get_digits(dp='Account')) ]] </para>
519 </td>300 </td>
520 <td>301 <td>
521 <para style="terp_default_Right_8"><font>[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]</font></para>302 <para style="P1">[[ get_output_currency_code(data) ]]</para>
522 </td>303 </td>
523 </tr>304 </tr>
524 </blockTable>305 </blockTable>
525 </section>306 </section>
526 </section>307 </section>
527 <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]308 <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table10">
528 <tr>309 <tr>
529 <td>310 <td>
530 <para style="terp_tblheader_Details">Date</para>311 <para style="terp_tblheader_Details">[[ removeParentNode('blockTable') ]]</para>
531 </td>312 </td>
532 <td>313 <td>
533 <para style="terp_tblheader_Details">JNRL</para>314 <para style="terp_tblheader_Details">JNRL</para>
@@ -560,10 +341,10 @@
560 </blockTable>341 </blockTable>
561 <section>342 <section>
562 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>343 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>
563 <blockTable rowHeights="0.55cm" colWidths="349.0,57.0,57.0,77.0" style="Table11">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]344 <blockTable colWidths="349.0,57.0,57.0,77.0" style="Table11">
564 <tr>345 <tr>
565 <td>346 <td>
566 <para style="terp_default_Bold_9"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para>347 <para style="terp_default_Bold_9">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para>
567 </td>348 </td>
568 <td>349 <td>
569 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>350 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>
@@ -572,16 +353,16 @@
572 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>353 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>
573 </td>354 </td>
574 <td>355 <td>
575 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>356 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] <font face="Helvetica" size="8.0">[[ get_output_currency_code(data) ]]</font></para>
576 </td>357 </td>
577 </tr>358 </tr>
578 </blockTable>359 </blockTable>
579 <section>360 <section>
580 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>361 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>
581 <blockTable rowHeights="0.55cm" colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table6">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]362 <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table6">
582 <tr>363 <tr>
583 <td>364 <td>
584 <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para>365 <para style="terp_default_8">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ formatLang(line['ldate'],date=True) ]]</para>
585 </td>366 </td>
586 <td>367 <td>
587 <para style="terp_default_8">[[ line['lcode'] ]]</para>368 <para style="terp_default_8">[[ line['lcode'] ]]</para>
@@ -608,12 +389,24 @@
608 <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>389 <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>
609 </td>390 </td>
610 <td>391 <td>
611 <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>392 <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] <font face="Helvetica" size="8.0">[[ company.currency_id.name ]]</font></para>
612 </td>393 </td>
613 </tr>394 </tr>
614 </blockTable>395 </blockTable>
396 <para style="terp_default_2">
397 <font color="white"> </font>
398 </para>
615 </section>399 </section>
616 </section>400 </section>
617 </pto>401 <para style="terp_default_8">
402 <font color="white"> </font>
403 </para>
404 <para style="terp_default_8">
405 <font color="white"> </font>
406 </para>
407 <para style="terp_default_8">
408 <font color="white"> </font>
409 </para>
618 </story>410 </story>
619</document>411</document>
412
620413
=== modified file 'account/report/account_general_ledger.sxw'
621Binary files account/report/account_general_ledger.sxw 2011-01-14 00:11:01 +0000 and account/report/account_general_ledger.sxw 2013-12-20 09:30:16 +0000 differ414Binary files account/report/account_general_ledger.sxw 2011-01-14 00:11:01 +0000 and account/report/account_general_ledger.sxw 2013-12-20 09:30:16 +0000 differ
=== modified file 'account/report/account_general_ledger_landscape.rml'
--- account/report/account_general_ledger_landscape.rml 2011-01-14 00:11:01 +0000
+++ account/report/account_general_ledger_landscape.rml 2013-12-20 09:30:16 +0000
@@ -1,6 +1,6 @@
1<?xml version="1.0"?>1<?xml version="1.0"?>
2<document filename="General Ledger.pdf">2<document filename="test.pdf">
3 <template pageSize="(842.0,595.0)" title="General Ledger" author="OpenERP S.A.(sales@openerp.com)" allowSplitting="20">3 <template pageSize="(842.0,595.0)" title="Test" author="Martin Simon" allowSplitting="20">
4 <pageTemplate id="first">4 <pageTemplate id="first">
5 <frame id="first" x1="28.0" y1="28.0" width="786" height="525"/>5 <frame id="first" x1="28.0" y1="28.0" width="786" height="525"/>
6 </pageTemplate>6 </pageTemplate>
@@ -61,106 +61,6 @@
61 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="6,0" stop="6,-1"/>61 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="6,0" stop="6,-1"/>
62 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/>62 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/>
63 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/>63 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/>
64 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="7,0" stop="7,-1"/>
65 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="7,0" stop="7,0"/>
66 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/>
67 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="8,0" stop="8,-1"/>
68 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="8,0" stop="8,-1"/>
69 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="8,0" stop="8,0"/>
70 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>
71 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="9,0" stop="9,-1"/>
72 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="9,0" stop="9,0"/>
73 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>
74 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="10,0" stop="10,-1"/>
75 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="10,0" stop="10,-1"/>
76 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="10,0" stop="10,0"/>
77 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/>
78 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="11,0" stop="11,-1"/>
79 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/>
80 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/>
81 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/>
82 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="12,0" stop="12,-1"/>
83 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/>
84 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/>
85 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="13,0" stop="13,-1"/>
86 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="13,0" stop="13,0"/>
87 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="13,-1" stop="13,-1"/>
88 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="14,0" stop="14,-1"/>
89 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="14,0" stop="14,-1"/>
90 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="14,0" stop="14,0"/>
91 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="14,-1" stop="14,-1"/>
92 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/>
93 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/>
94 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
95 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
96 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,1" stop="1,-1"/>
97 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,1" stop="1,1"/>
98 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
99 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,2" stop="0,-1"/>
100 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,2" stop="0,2"/>
101 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
102 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,2" stop="1,-1"/>
103 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,2" stop="1,-1"/>
104 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,2" stop="1,2"/>
105 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
106 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,3" stop="0,-1"/>
107 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,3" stop="0,3"/>
108 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
109 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,3" stop="1,-1"/>
110 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,3" stop="1,-1"/>
111 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,3" stop="1,3"/>
112 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
113 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,4" stop="0,-1"/>
114 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,4" stop="0,4"/>
115 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
116 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,4" stop="1,-1"/>
117 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,4" stop="1,-1"/>
118 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,4" stop="1,4"/>
119 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
120 </blockTableStyle>
121 <blockTableStyle id="Table3">
122 <blockAlignment value="LEFT"/>
123 <blockValign value="TOP"/>
124 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
125 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
126 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
127 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
128 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
129 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
130 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
131 </blockTableStyle>
132 <blockTableStyle id="Table4">
133 <blockAlignment value="LEFT"/>
134 <blockValign value="TOP"/>
135 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
136 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
137 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
138 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
139 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
140 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
141 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
142 </blockTableStyle>
143 <blockTableStyle id="Table5">
144 <blockAlignment value="LEFT"/>
145 <blockValign value="TOP"/>
146 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
147 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
148 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
149 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
150 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
151 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
152 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
153 </blockTableStyle>
154 <blockTableStyle id="Table6">
155 <blockAlignment value="LEFT"/>
156 <blockValign value="TOP"/>
157 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/>
158 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/>
159 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/>
160 <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
161 <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/>
162 <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/>
163 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/>
164 </blockTableStyle>64 </blockTableStyle>
165 <blockTableStyle id="Table7">65 <blockTableStyle id="Table7">
166 <blockAlignment value="LEFT"/>66 <blockAlignment value="LEFT"/>
@@ -176,7 +76,6 @@
176 <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>76 <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>
177 <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/>77 <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/>
178 <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/>78 <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/>
179 <lineStyle kind="LINEBELOW" colorName="#000000" start="11,-1" stop="11,-1"/>
180 </blockTableStyle>79 </blockTableStyle>
181 <blockTableStyle id="Table8">80 <blockTableStyle id="Table8">
182 <blockAlignment value="LEFT"/>81 <blockAlignment value="LEFT"/>
@@ -197,7 +96,6 @@
197 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>96 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>
198 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>97 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>
199 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/>98 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/>
200 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/>
201 </blockTableStyle>99 </blockTableStyle>
202 <blockTableStyle id="Table10">100 <blockTableStyle id="Table10">
203 <blockAlignment value="LEFT"/>101 <blockAlignment value="LEFT"/>
@@ -212,7 +110,6 @@
212 <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/>110 <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/>
213 <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>111 <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/>
214 <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/>112 <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/>
215 <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/>
216 </blockTableStyle>113 </blockTableStyle>
217 <blockTableStyle id="Table11">114 <blockTableStyle id="Table11">
218 <blockAlignment value="LEFT"/>115 <blockAlignment value="LEFT"/>
@@ -232,11 +129,12 @@
232 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/>129 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/>
233 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>130 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/>
234 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>131 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/>
235 <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/>
236 </blockTableStyle>132 </blockTableStyle>
237 <initialize>133 <initialize>
238 <paraStyle name="all" alignment="justify"/>134 <paraStyle name="all" alignment="justify"/>
239 </initialize>135 </initialize>
136 <paraStyle name="P1" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
137 <paraStyle name="P2" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
240 <paraStyle name="Standard" fontName="Helvetica"/>138 <paraStyle name="Standard" fontName="Helvetica"/>
241 <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>139 <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
242 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>140 <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/>
@@ -251,113 +149,33 @@
251 <paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/>149 <paraStyle name="Heading 9" fontName="Helvetica-Bold" fontSize="75%" leading="NaN" spaceBefore="12.0" spaceAfter="6.0"/>
252 <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>150 <paraStyle name="terp_tblheader_General" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
253 <paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>151 <paraStyle name="terp_tblheader_Details" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="6.0" spaceAfter="6.0"/>
254 <paraStyle name="terp_default_7" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>152 <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
255 <paraStyle name="terp_default_Bold_7" fontName="Helvetica-Bold" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>153 <paraStyle name="terp_default_Bold_8" fontName="Helvetica-Bold" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
256 <paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>154 <paraStyle name="terp_tblheader_General_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
257 <paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>155 <paraStyle name="terp_tblheader_General_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
258 <paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>156 <paraStyle name="terp_tblheader_Details_Centre" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="6.0" spaceAfter="6.0"/>
259 <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>157 <paraStyle name="terp_tblheader_Details_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="6.0" spaceAfter="6.0"/>
260 <paraStyle name="terp_default_Right_7" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>158 <paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
261 <paraStyle name="terp_default_Centre_7" fontName="Helvetica" fontSize="7.0" leading="9" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>159 <paraStyle name="terp_default_Centre_8" fontName="Helvetica" fontSize="7.0" leading="9" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
262 <paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>160 <paraStyle name="terp_header_Right" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="LEFT" spaceBefore="12.0" spaceAfter="6.0"/>
263 <paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>161 <paraStyle name="terp_header_Centre" fontName="Helvetica-Bold" fontSize="15.0" leading="19" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
264 <paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>162 <paraStyle name="terp_default_address" fontName="Helvetica" fontSize="10.0" leading="13" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
265 <paraStyle name="terp_default_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>163 <paraStyle name="terp_default_9" fontName="Helvetica" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
266 <paraStyle name="terp_default_Bold_7" fontName="Helvetica-Bold" fontSize="7.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>164 <paraStyle name="terp_default_Bold_9" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
267 <paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>165 <paraStyle name="terp_default_Centre_9" fontName="Helvetica" fontSize="8.0" leading="10" alignment="CENTER" spaceBefore="0.0" spaceAfter="0.0"/>
268 <paraStyle name="terp_default_Right_8" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>166 <paraStyle name="terp_default_Right_9" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
269 <paraStyle name="terp_default_2" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>167 <paraStyle name="terp_default_2" fontName="Helvetica" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>
270 <paraStyle name="terp_default_Bold_7_Right" fontName="Helvetica-Bold" fontSize="7.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>168 <paraStyle name="terp_default_Bold_9_Right" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/>
271 <paraStyle name="Heading 3" fontName="Helvetica-Bold" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>169 <paraStyle name="Heading 3" fontName="Helvetica-Bold" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/>
272 <images/>170 <images/>
273 </stylesheet>171 </stylesheet>
274 <story>172 <story>
275 <pto>173 <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para>
276 <pto_header>
277 <blockTable colWidths="45.0,35.0,30.0,90.0,65.0,55.0,100.0,70.0,65.0,65.0,75.0,75.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
278 <tr>
279 <td>
280 <para style="terp_tblheader_Details">Date</para>
281 </td>
282 <td>
283 <para style="terp_tblheader_Details">Period</para>
284 </td>
285 <td>
286 <para style="terp_tblheader_Details">JRNL</para>
287 </td>
288 <td>
289 <para style="terp_tblheader_Details">Partner</para>
290 </td>
291 <td>
292 <para style="terp_tblheader_Details">Ref</para>
293 </td>
294 <td>
295 <para style="terp_tblheader_Details">Move</para>
296 </td>
297 <td>
298 <para style="terp_tblheader_Details">Entry Label</para>
299 </td>
300 <td>
301 <para style="terp_tblheader_Details">Counterpart</para>
302 </td>
303 <td>
304 <para style="terp_tblheader_Details_Right">Debit</para>
305 </td>
306 <td>
307 <para style="terp_tblheader_Details_Right">Credit</para>
308 </td>
309 <td>
310 <para style="terp_tblheader_Details_Right">Balance</para>
311 </td>
312 <td>
313 <para style="terp_tblheader_Details_Right">Currency</para>
314 </td>
315 </tr>
316 </blockTable>
317 <blockTable colWidths="45.0,35.0,30.0,105.0,80.0,55.0,130.0,95.0,65.0,65.0,75.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
318 <tr>
319 <td>
320 <para style="terp_tblheader_Details">Date</para>
321 </td>
322 <td>
323 <para style="terp_tblheader_Details">Period</para>
324 </td>
325 <td>
326 <para style="terp_tblheader_Details">JRNL</para>
327 </td>
328 <td>
329 <para style="terp_tblheader_Details">Partner</para>
330 </td>
331 <td>
332 <para style="terp_tblheader_Details">Ref</para>
333 </td>
334 <td>
335 <para style="terp_tblheader_Details">Move</para>
336 </td>
337 <td>
338 <para style="terp_tblheader_Details">Entry Label</para>
339 </td>
340 <td>
341 <para style="terp_tblheader_Details">Counterpart</para>
342 </td>
343 <td>
344 <para style="terp_tblheader_Details_Right">Debit</para>
345 </td>
346 <td>
347 <para style="terp_tblheader_Details_Right">Credit</para>
348 </td>
349 <td>
350 <para style="terp_tblheader_Details_Right">Balance</para>
351 </td>
352 </tr>
353 </blockTable>
354 </pto_header>
355 <para style="terp_default_7">[[ repeatIn(objects, 'a') ]]</para>
356 <para style="terp_header_Centre">General Ledger</para>174 <para style="terp_header_Centre">General Ledger</para>
357 <para style="terp_default_7">175 <para style="terp_default_8">
358 <font color="white"> </font>176 <font color="white"> </font>
359 </para>177 </para>
360 <blockTable colWidths="110.0,110.0,110.0,110.0,128.0,93.0,110.0" style="Table1">178 <blockTable colWidths="112.0,112.0,112.0,112.0,130.0,94.0,112.0" style="Table1">
361 <tr>179 <tr>
362 <td>180 <td>
363 <para style="terp_tblheader_General_Centre">[[ data['model']=='account.account' and 'Company' or removeParentNode('para') ]]</para>181 <para style="terp_tblheader_General_Centre">[[ data['model']=='account.account' and 'Company' or removeParentNode('para') ]]</para>
@@ -383,99 +201,59 @@
383 </td>201 </td>
384 </tr>202 </tr>
385 </blockTable>203 </blockTable>
386 <blockTable colWidths="110.0,110.0,110.0,110.0,128.0,93.0,110.0" style="Table2">204 <blockTable colWidths="112.0,112.0,112.0,112.0,130.0,94.0,112.0" style="Table2">
387 <tr>205 <tr>
388 <td>206 <td>
389 <para style="terp_default_Centre_7">[[ get_account(data) or removeParentNode('para') ]]</para>207 <para style="terp_default_Centre_8">[[ get_account(data) or removeParentNode('para') ]]</para>
390 </td>208 </td>
391 <td>209 <td>
392 <para style="terp_default_Centre_7">[[ get_fiscalyear(data) or '' ]]</para>210 <para style="terp_default_Centre_8">[[ get_fiscalyear(data) or '' ]]</para>
393 </td>211 </td>
394 <td>212 <td>
395 <para style="terp_default_Centre_7">[[', '.join([ lt or '' for lt in get_journal(data) ]) ]]</para>213 <para style="terp_default_Centre_8">[[', '.join([ lt or '' for lt in get_journal(data) ]) ]]</para>
396 </td>214 </td>
397 <td>215 <td>
398 <para style="terp_default_Centre_7">[[ (data['form']['display_account']=='bal_all' and 'All') or (data['form']['display_account']=='bal_movement' and 'With movements') or 'With balance is not equal to 0']]</para>216 <para style="terp_default_Centre_8">[[ (data['form']['display_account']=='bal_all' and 'All') or (data['form']['display_account']=='bal_movement' and 'With movements') or 'With balance is not equal to 0']]</para>
399 </td>217 </td>
400 <td>218 <td>
401 <para style="terp_default_Centre_7">[[ get_filter(data)=='No Filter' and get_filter(data) or removeParentNode('para') ]]</para>219 <para style="terp_default_Centre_8">[[ get_filter_info(data) ]]</para>
402 <blockTable colWidths="58.0,58.0" style="Table3">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]]220 <para style="terp_default_Centre_8">
403 <tr>221 <font color="white"> </font>
404 <td>222 </para>
405 <para style="terp_tblheader_General_Centre">Start Date</para>223 </td>
406 </td>224 <td>
407 <td>225 <para style="terp_default_Centre_8">[[ get_sortby(data) ]]</para>
408 <para style="terp_tblheader_General_Centre">End Date</para>226 </td>
409 </td>227 <td>
410 </tr>228 <para style="terp_default_Centre_8">[[ get_target_move(data) ]]</para>
411 </blockTable>
412 <blockTable colWidths="58.0,58.0" style="Table4">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]]
413 <tr>
414 <td>
415 <para style="terp_default_Centre_7">[[ formatLang(get_start_date(data),date=True) ]]</para>
416 </td>
417 <td>
418 <para style="terp_default_Centre_7">[[ formatLang(get_end_date(data),date=True) ]]</para>
419 </td>
420 </tr>
421 </blockTable>
422 <blockTable colWidths="58.0,58.0" style="Table5">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]]
423 <tr>
424 <td>
425 <para style="terp_tblheader_General_Centre">Start Period</para>
426 </td>
427 <td>
428 <para style="terp_tblheader_General_Centre">End Period</para>
429 </td>
430 </tr>
431 </blockTable>
432 <blockTable colWidths="58.0,58.0" style="Table6">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]]
433 <tr>
434 <td>
435 <para style="terp_default_Centre_7">[[ get_start_period(data) or removeParentNode('para') ]]</para>
436 </td>
437 <td>
438 <para style="terp_default_Centre_7">[[ get_end_period(data) or removeParentNode('para') ]]</para>
439 </td>
440 </tr>
441 </blockTable>
442 </td>
443 <td>
444 <para style="terp_default_Centre_7">[[ get_sortby(data) ]]</para>
445 </td>
446 <td>
447 <para style="terp_default_Centre_7">[[ get_target_move(data) ]]</para>
448 </td>229 </td>
449 </tr>230 </tr>
450 </blockTable>231 </blockTable>
451 <para style="terp_default_7">232 <para style="terp_default_8">
452 <font color="white"> </font>233 <font color="white"> </font>
453 </para>234 </para>
454 <blockTable colWidths="45.0,35.0,30.0,90.0,65.0,55.0,100.0,70.0,65.0,65.0,75.0,75.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]235 <blockTable colWidths="37.0,54.0,99.0,71.0,71.0,99.0,57.0,71.0,71.0,71.0,85.0" style="Table7">
455 <tr>236 <tr>
456 <td>237 <td>
457 <para style="terp_tblheader_Details">Date</para>238 <para style="terp_tblheader_Details">Date</para>
458 </td>239 </td>
459 <td>240 <td>
460 <para style="terp_tblheader_Details">Period</para>241 <para style="terp_tblheader_Details">JNRL</para>
461 </td>
462 <td>
463 <para style="terp_tblheader_Details">JRNL</para>
464 </td>242 </td>
465 <td>243 <td>
466 <para style="terp_tblheader_Details">Partner</para>244 <para style="terp_tblheader_Details">Partner</para>
467 </td>245 </td>
468 <td>246 <td>
469 <para style="terp_tblheader_Details">Ref</para>247 <para style="terp_tblheader_Details_Centre">Ref</para>
470 </td>248 </td>
471 <td>249 <td>
472 <para style="terp_tblheader_Details">Move</para>250 <para style="terp_tblheader_Details_Centre">Move</para>
473 </td>251 </td>
474 <td>252 <td>
475 <para style="terp_tblheader_Details">Entry Label</para>253 <para style="terp_tblheader_Details">Entry Label</para>
476 </td>254 </td>
477 <td>255 <td>
478 <para style="terp_tblheader_Details">Counterpart</para>256 <para style="terp_tblheader_Details_Centre">Counterpart</para>
479 </td>257 </td>
480 <td>258 <td>
481 <para style="terp_tblheader_Details_Right">Debit</para>259 <para style="terp_tblheader_Details_Right">Debit</para>
@@ -492,95 +270,89 @@
492 </tr>270 </tr>
493 </blockTable>271 </blockTable>
494 <section>272 <section>
495 <para style="terp_default_7">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>273 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>
496 <blockTable rowHeights="0.55cm" colWidths="490.0,65.0,65.0,75.0,75.0" style="Table8">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]274 <blockTable colWidths="488.0,71.0,71.0,71.0,85.0" style="Table8">
497 <tr>275 <tr>
498 <td>276 <td>
499 <para style="terp_default_Bold_7"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para>277 <para style="terp_default_Bold_9">[[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para>
500 </td>278 </td>
501 <td>279 <td>
502 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>280 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>
503 </td>281 </td>
504 <td>282 <td>
505 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>283 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>
506 </td>284 </td>
507 <td>285 <td>
508 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>286 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]]</para>
509 </td>287 </td>
510 <td>288 <td>
511 <para style="terp_default_Bold_7_Right">[[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account')) + o.currency_id.symbol or '' ]]</para>289 <para style="P1">[[ get_output_currency_code(data) ]]</para>
512 </td>290 </td>
513 </tr>291 </tr>
514 </blockTable>292 </blockTable>
515 <section>293 <section>
516 <para style="terp_default_7">[[ repeatIn(lines(o), 'line') ]]</para>294 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>
517 <blockTable rowHeights="0.55cm" colWidths="45.0,35.0,30.0,90.0,65.0,55.0,100.0,70.0,65.0,65.0,75.0,75.0" style="Table9">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]295 <blockTable colWidths="57.0,33.0,99.0,71.0,71.0,71.0,99.0,57.0,71.0,71.0,85.0" style="Table9">
518 <tr>296 <tr>
519 <td>297 <td>
520 <para style="terp_default_7">[[ formatLang(line['ldate'],date=True) ]]</para>298 <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para>
521 </td>299 </td>
522 <td>300 <td>
523 <para style="terp_default_7">[[ line['period_code'] ]]</para>301 <para style="terp_default_8">[[ line['lcode'] ]]</para>
524 </td>302 </td>
525 <td>303 <td>
526 <para style="terp_default_7">[[ line['lcode'] ]]</para>304 <para style="terp_default_8">[[ line['partner_name'] ]]</para>
527 </td>305 </td>
528 <td>306 <td>
529 <para style="terp_default_7">[[ strip_name(line['partner_name'],20) ]]</para>307 <para style="terp_default_8">[[ strip_name(line['lref'],15) ]]</para>
530 </td>308 </td>
531 <td>309 <td>
532 <para style="terp_default_7">[[ strip_name(line['lref'],17) ]]</para>310 <para style="terp_default_Centre_8">[[ strip_name(line['move'],15) ]]</para>
533 </td>311 </td>
534 <td>312 <td>
535 <para style="terp_default_7">[[ line['move'] ]]</para>313 <para style="terp_default_8">[[ line['lname'] ]]</para>
536 </td>314 </td>
537 <td>315 <td>
538 <para style="terp_default_7">[[ strip_name(line['lname'],22) ]]</para>316 <para style="terp_default_Centre_8">[[ strip_name(line['line_corresp'].replace(', ',','),25) ]]</para>
539 </td>317 </td>
540 <td>318 <td>
541 <para style="terp_default_7">[[ strip_name(line['line_corresp'],18) ]]</para>319 <para style="terp_default_Right_8">[[ formatLang(get_line_debit(line), digits=get_digits(dp='Account')) ]]</para>
542 </td>320 </td>
543 <td>321 <td>
544 <para style="terp_default_Right_7">[[ formatLang(line['debit'], digits=get_digits(dp='Account')) ]]</para>322 <para style="terp_default_Right_8">[[ formatLang(get_line_credit(line), digits=get_digits(dp='Account')) ]]</para>
545 </td>323 </td>
546 <td>324 <td>
547 <para style="terp_default_Right_7">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>325 <para style="terp_default_Right_8">[[ formatLang(get_line_balance(line), digits=get_digits(dp='Account')) ]] </para>
548 </td>326 </td>
549 <td>327 <td>
550 <para style="terp_default_Right_7">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>328 <para style="P2">[[ get_output_currency_code(data) ]]</para>
551 </td>
552 <td>
553 <para style="terp_default_Right_7">[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]</para>
554 </td>329 </td>
555 </tr>330 </tr>
556 </blockTable>331 </blockTable>
557 </section>332 </section>
558 </section>333 </section>
559 <blockTable colWidths="45.0,35.0,30.0,105.0,80.0,55.0,130.0,95.0,65.0,65.0,75.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]334 <blockTable colWidths="37.0,54.0,113.0,71.0,71.0,142.0,71.0,71.0,71.0,85.0" style="Table10">
560 <tr>335 <tr>
561 <td>336 <td>
562 <para style="terp_tblheader_Details">Date</para>337 <para style="terp_tblheader_Details">[[ removeParentNode('blockTable') ]]</para>
563 </td>338 </td>
564 <td>339 <td>
565 <para style="terp_tblheader_Details">Period</para>340 <para style="terp_tblheader_Details">JNRL</para>
566 </td>
567 <td>
568 <para style="terp_tblheader_Details">JRNL</para>
569 </td>341 </td>
570 <td>342 <td>
571 <para style="terp_tblheader_Details">Partner</para>343 <para style="terp_tblheader_Details">Partner</para>
572 </td>344 </td>
573 <td>345 <td>
574 <para style="terp_tblheader_Details">Ref</para>346 <para style="terp_tblheader_Details_Centre">Ref</para>
575 </td>347 </td>
576 <td>348 <td>
577 <para style="terp_tblheader_Details">Move</para>349 <para style="terp_tblheader_Details_Centre">Move</para>
578 </td>350 </td>
579 <td>351 <td>
580 <para style="terp_tblheader_Details">Entry Label</para>352 <para style="terp_tblheader_Details">Entry Label</para>
581 </td>353 </td>
582 <td>354 <td>
583 <para style="terp_tblheader_Details">Counterpart</para>355 <para style="terp_tblheader_Details_Centre">Counterpart</para>
584 </td>356 </td>
585 <td>357 <td>
586 <para style="terp_tblheader_Details_Right">Debit</para>358 <para style="terp_tblheader_Details_Right">Debit</para>
@@ -594,64 +366,64 @@
594 </tr>366 </tr>
595 </blockTable>367 </blockTable>
596 <section>368 <section>
597 <para style="Standard">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>369 <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para>
598 <blockTable rowHeights="0.55cm" colWidths="575.0,65.0,65.0,75.0" style="Table11">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]370 <blockTable colWidths="558.0,71.0,71.0,85.0" style="Table11">
599 <tr>371 <tr>
600 <td>372 <td>
601 <para style="terp_default_Bold_7"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para>373 <para style="terp_default_Bold_9">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para>
602 </td>374 </td>
603 <td>375 <td>
604 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>376 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para>
605 </td>377 </td>
606 <td>378 <td>
607 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>379 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para>
608 </td>380 </td>
609 <td>381 <td>
610 <para style="terp_default_Bold_7_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>382 <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] <font face="Helvetica" size="8.0">[[ get_output_currency_code(data) ]]</font></para>
611 </td>383 </td>
612 </tr>384 </tr>
613 </blockTable>385 </blockTable>
614 <section>386 <section>
615 <para style="Standard">[[ repeatIn(lines(o), 'line') ]]</para>387 <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para>
616 <blockTable rowHeights="0.55cm" colWidths="45.0,35.0,30.0,105.0,80.0,55.0,130.0,95.0,65.0,65.0,75.0" style="Table12">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]388 <blockTable colWidths="37.0,54.0,113.0,71.0,71.0,142.0,71.0,71.0,71.0,85.0" style="Table12">
617 <tr>389 <tr>
618 <td>390 <td>
619 <para style="terp_default_7">[[ formatLang(line['ldate'],date=True) ]]</para>391 <para style="terp_default_8">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ formatLang(line['ldate'],date=True) ]]</para>
620 </td>392 </td>
621 <td>393 <td>
622 <para style="terp_default_7">[[ line['period_code'] ]]</para>394 <para style="terp_default_8">[[ line['lcode'] ]]</para>
623 </td>395 </td>
624 <td>396 <td>
625 <para style="terp_default_7">[[ line['lcode'] ]]</para>397 <para style="terp_default_8">[[ line['partner_name'] ]]</para>
626 </td>398 </td>
627 <td>399 <td>
628 <para style="terp_default_7">[[ strip_name(line['partner_name'],24) ]]</para>400 <para style="terp_default_8">[[ line['lref'] ]]</para>
629 </td>401 </td>
630 <td>402 <td>
631 <para style="terp_default_7">[[ strip_name(line['lref'],21) ]]</para>403 <para style="terp_default_8">[[ line['move'] ]]</para>
632 </td>404 </td>
633 <td>405 <td>
634 <para style="terp_default_7">[[ line['move'] ]]</para>406 <para style="terp_default_8">[[ line['lname'] ]]</para>
635 </td>407 </td>
636 <td>408 <td>
637 <para style="terp_default_7">[[ strip_name(line['lname'],28) ]]</para>409 <para style="terp_default_Centre_8">[[ strip_name(line['line_corresp'].replace(', ',','),25) ]]</para>
638 </td>410 </td>
639 <td>411 <td>
640 <para style="terp_default_7">[[ strip_name(line['line_corresp'],23) ]]</para>412 <para style="terp_default_Right_8">[[ formatLang(line['debit'], digits=get_digits(dp='Account')) ]]</para>
641 </td>413 </td>
642 <td>414 <td>
643 <para style="terp_default_Right_7">[[ formatLang(line['debit'], digits=get_digits(dp='Account')) ]]</para>415 <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>
644 </td>416 </td>
645 <td>417 <td>
646 <para style="terp_default_Right_7">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para>418 <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] <font face="Helvetica" size="8.0">[[ company.currency_id.namel ]]</font></para>
647 </td>
648 <td>
649 <para style="terp_default_Right_7">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para>
650 </td>419 </td>
651 </tr>420 </tr>
652 </blockTable>421 </blockTable>
422 <para style="terp_default_2">
423 <font color="white"> </font>
424 </para>
653 </section>425 </section>
654 </section>426 </section>
655 </pto>
656 </story>427 </story>
657</document>428</document>
429
658430
=== modified file 'account/report/account_general_ledger_landscape.sxw'
659Binary files account/report/account_general_ledger_landscape.sxw 2011-01-14 00:11:01 +0000 and account/report/account_general_ledger_landscape.sxw 2013-12-20 09:30:16 +0000 differ431Binary files account/report/account_general_ledger_landscape.sxw 2011-01-14 00:11:01 +0000 and account/report/account_general_ledger_landscape.sxw 2013-12-20 09:30:16 +0000 differ
=== added file 'account/report/account_general_ledger_xls.mako'
--- account/report/account_general_ledger_xls.mako 1970-01-01 00:00:00 +0000
+++ account/report/account_general_ledger_xls.mako 2013-12-20 09:30:16 +0000
@@ -0,0 +1,279 @@
1<?xml version="1.0"?>
2<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
3xmlns:o="urn:schemas-microsoft-com:office:office"
4xmlns:x="urn:schemas-microsoft-com:office:excel"
5xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
6xmlns:html="http://www.w3.org/TR/REC-html40">
7<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
8<Title>General Ledger</Title>
9</DocumentProperties>
10<Styles>
11<Style ss:ID="ssCell">
12<Alignment ss:Vertical="Top" ss:WrapText="1"/>
13</Style>
14<Style ss:ID="ssH">
15<Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/>
16<Font ss:Bold="1" />
17<Borders>
18 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
19 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
20 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
21 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
22</Borders>
23</Style>
24<Style ss:ID="ssBorder">
25<Alignment ss:Vertical="Center" ss:WrapText="1"/>
26<Borders>
27 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
28 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
29 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
30 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
31</Borders>
32</Style>
33<Style ss:ID="ssBorderDate">
34<Alignment ss:Vertical="Center" ss:WrapText="1"/>
35<Borders>
36 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
37 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
38 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
39 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
40</Borders>
41<NumberFormat ss:Format="Short Date" />
42</Style>
43<Style ss:ID="ssNumber">
44<Borders>
45 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
46 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
47 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
48 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
49</Borders>
50<Alignment ss:Horizontal="Right" ss:Vertical="Center" ss:WrapText="1"/>
51<NumberFormat ss:Format="#,##0.00"/>
52</Style>
53<Style ss:ID="ssHeader">
54<Alignment ss:Vertical="Top" ss:WrapText="1"/>
55<Borders>
56 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
57 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
58 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
59 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
60</Borders>
61</Style>
62<Style ss:ID="ssAccountLine">
63<Alignment ss:Bottom="Top" ss:WrapText="1"/>
64<Font ss:Size="8" ss:Italic="1"/>
65<Borders>
66 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
67 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
68 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
69 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
70</Borders>
71</Style>
72<Style ss:ID="ssAccountLine2">
73<Alignment ss:Bottom="Top" ss:WrapText="1"/>
74<Font ss:Size="8"/>
75<Borders>
76 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
77 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
78 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
79 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
80</Borders>
81</Style>
82<Style ss:ID="ssAccountLineNumber">
83<Alignment ss:Horizontal="Right" ss:Vertical="Bottom" ss:WrapText="1"/>
84<Font ss:Size="8"/>
85<Borders>
86 <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" />
87 <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" />
88 <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" />
89 <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" />
90</Borders>
91<NumberFormat ss:Format="#,##0.00"/>
92</Style>
93</Styles>
94<Worksheet ss:Name="Sheet">
95<%
96 max = 11
97 if data['model'] == 'account.account':
98 header_company_or_chart_of_account = 'Company'
99 else:
100 header_company_or_chart_of_account = 'Chart of Account'
101 if 'all_journals' in data['form']:
102 journals = 'All Journals'
103 else:
104 journals = ', '.join([lt or '' for lt in get_journal(data)])
105 display_account = (data['form']['display_account']=='bal_all' and 'All') or (data['form']['display_account']=='bal_movement' and 'With movements') or 'With balance is not equal to 0'
106 prop_instances_list = get_prop_instances(data)
107 if prop_instances_list:
108 prop_instances = ', '.join([lt or '' for lt in get_prop_instances(data)])
109 else:
110 prop_instances = 'All Instances'
111%>
112<Table x:FullColumns="1" x:FullRows="1">
113<Column ss:AutoFitWidth="1" ss:Width="64" />
114<Column ss:AutoFitWidth="1" ss:Width="50" />
115<Column ss:AutoFitWidth="1" ss:Width="50" />
116<Column ss:AutoFitWidth="1" ss:Width="50" />
117<Column ss:AutoFitWidth="1" ss:Width="50" />
118<Column ss:AutoFitWidth="1" ss:Width="50" />
119<Column ss:AutoFitWidth="1" ss:Width="50" />
120<Column ss:AutoFitWidth="1" ss:Width="64" />
121<Column ss:AutoFitWidth="1" ss:Width="64" />
122<Column ss:AutoFitWidth="1" ss:Width="64" />
123<Column ss:AutoFitWidth="1" ss:Width="50" />
124<Row>
125<Cell ss:StyleID="ssH"><Data ss:Type="String">${header_company_or_chart_of_account}</Data></Cell>
126<Cell ss:StyleID="ssH"><Data ss:Type="String">Fiscal Year</Data></Cell>
127<Cell ss:StyleID="ssH"><Data ss:Type="String">Journals</Data></Cell>
128<Cell ss:StyleID="ssH"><Data ss:Type="String">Display Account</Data></Cell>
129<Cell ss:StyleID="ssH"><Data ss:Type="String">Filter By ${(get_filter(data) or '')|x}</Data></Cell>
130<Cell ss:StyleID="ssH"><Data ss:Type="String">Entries Sorted By</Data></Cell>
131<Cell ss:StyleID="ssH"><Data ss:Type="String">Target Moves</Data></Cell>
132<Cell ss:StyleID="ssH"><Data ss:Type="String">Proprietary Instances</Data></Cell>
133<Cell ss:StyleID="ssCell"></Cell>
134<Cell ss:StyleID="ssCell"></Cell>
135<Cell ss:StyleID="ssCell"></Cell>
136</Row>
137% for a in objects:
138<Row>
139<Cell ss:StyleID="ssHeader">
140 <Data ss:Type="String">${(get_account(data) or '')|x}</Data>
141</Cell>
142<Cell ss:StyleID="ssHeader">
143 <Data ss:Type="String">${(get_fiscalyear(data) or '')|x}</Data>
144</Cell>
145<Cell ss:StyleID="ssHeader">
146 <Data ss:Type="String">${(journals or '')|x}</Data>
147</Cell>
148<Cell ss:StyleID="ssHeader">
149 <Data ss:Type="String">${(display_account or '')|x}</Data>
150</Cell>
151<Cell ss:StyleID="ssHeader">
152 <Data ss:Type="String">${(get_filter_info(data) or '')|x}</Data>
153</Cell>
154<Cell ss:StyleID="ssHeader">
155 <Data ss:Type="String">${(get_sortby(data) or '')|x}</Data>
156</Cell>
157<Cell ss:StyleID="ssHeader">
158 <Data ss:Type="String">${(get_target_move(data) or '')|x}</Data>
159</Cell>
160<Cell ss:StyleID="ssHeader">
161 <Data ss:Type="String">${(prop_instances or '')|x}</Data>
162</Cell>
163<Cell ss:StyleID="ssCell"></Cell>
164<Cell ss:StyleID="ssCell"></Cell>
165<Cell ss:StyleID="ssCell"></Cell>
166</Row>
167<Row>
168<Cell></Cell>
169<Cell></Cell>
170<Cell></Cell>
171<Cell></Cell>
172<Cell></Cell>
173<Cell></Cell>
174<Cell></Cell>
175<Cell></Cell>
176<Cell></Cell>
177<Cell></Cell>
178<Cell></Cell>
179</Row>
180<Row>
181<Cell ss:StyleID="ssH"><Data ss:Type="String">Date</Data></Cell>
182<Cell ss:StyleID="ssH"><Data ss:Type="String">JRNL</Data></Cell>
183<Cell ss:StyleID="ssH"><Data ss:Type="String">Partner</Data></Cell>
184<Cell ss:StyleID="ssH"><Data ss:Type="String">Ref</Data></Cell>
185<Cell ss:StyleID="ssH"><Data ss:Type="String">Move</Data></Cell>
186<Cell ss:StyleID="ssH"><Data ss:Type="String">Entry Label</Data></Cell>
187<Cell ss:StyleID="ssH"><Data ss:Type="String">Counter part</Data></Cell>
188<Cell ss:StyleID="ssH"><Data ss:Type="String">Debit</Data></Cell>
189<Cell ss:StyleID="ssH"><Data ss:Type="String">Credit</Data></Cell>
190<Cell ss:StyleID="ssH"><Data ss:Type="String">Balance</Data></Cell>
191<Cell ss:StyleID="ssH"><Data ss:Type="String">Currency</Data></Cell>
192</Row>
193% for o in get_children_accounts(a):
194<Row>
195<Cell ss:StyleID="ssBorder">
196</Cell>
197<Cell ss:StyleID="ssBorder">
198 <Data ss:Type="String">${(o.code or '')|x}</Data>
199</Cell>
200<Cell ss:StyleID="ssBorder" ss:MergeAcross="4">
201 <Data ss:Type="String">${(o.name or '')|x}</Data>
202</Cell>
203<Cell ss:StyleID="ssNumber">
204 <Data ss:Type="Number">${sum_debit_account(o)}</Data>
205</Cell>
206<Cell ss:StyleID="ssNumber">
207 <Data ss:Type="Number">${sum_credit_account(o)}</Data>
208</Cell>
209<Cell ss:StyleID="ssNumber">
210 <Data ss:Type="Number">${sum_balance_account(o)}</Data>
211</Cell>
212<Cell ss:StyleID="ssBorder">
213 <Data ss:Type="String">${get_output_currency_code(data)}</Data>
214</Cell>
215</Row>
216% for line in lines(o):
217<Row>
218<Cell ss:StyleID="ssAccountLine">
219 <Data ss:Type="String">${(formatLang(line['ldate'],date=True)) or ''}</Data>
220</Cell>
221<Cell ss:StyleID="ssAccountLine">
222 <Data ss:Type="String">${(line['lcode'] or '')|x}</Data>
223</Cell>
224<Cell ss:StyleID="ssAccountLine">
225 <Data ss:Type="String">${(line['partner_name'] or '')|x}</Data>
226</Cell>
227<Cell ss:StyleID="ssAccountLine">
228 <Data ss:Type="String">${(line['lref'] or '')|x}</Data>
229</Cell>
230<Cell ss:StyleID="ssAccountLine">
231 <Data ss:Type="String">${(line['move'] or '')|x}</Data>
232</Cell>
233<Cell ss:StyleID="ssAccountLine">
234 <Data ss:Type="String">${(line['lname'] or '')|x}</Data>
235</Cell>
236<Cell ss:StyleID="ssAccountLineNumber">
237 <Data ss:Type="Number">${((strip_name(line['line_corresp'].replace(', ',''),25)) or '')|x}</Data>
238</Cell>
239<Cell ss:StyleID="ssAccountLineNumber">
240 <Data ss:Type="Number">${get_line_debit(line)}</Data>
241</Cell>
242<Cell ss:StyleID="ssAccountLineNumber">
243 <Data ss:Type="Number">${get_line_credit(line)}</Data>
244</Cell>
245<Cell ss:StyleID="ssAccountLineNumber">
246 <Data ss:Type="Number">${get_line_balance(line)}</Data>
247</Cell>
248<Cell ss:StyleID="ssAccountLine2">
249 <Data ss:Type="String">${get_output_currency_code(data)}</Data>
250</Cell>
251</Row>
252% endfor
253% endfor
254% endfor
255</Table>
256<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
257 <PageSetup>
258 <Layout x:Orientation="Landscape"/>
259 <Header x:Data="&amp;C&amp;&quot;Arial,Bold&quot;&amp;14General Ledger"/>
260 <Footer x:Data="Page &amp;P of &amp;N"/>
261 </PageSetup>
262 <Print>
263 <ValidPrinterInfo/>
264 <PaperSizeIndex>9</PaperSizeIndex>
265 <HorizontalResolution>600</HorizontalResolution>
266 <VerticalResolution>600</VerticalResolution>
267 </Print>
268 <Selected/>
269 <Panes>
270 <Pane>
271 <Number>3</Number>
272 <ActiveRow>17</ActiveRow>
273 </Pane>
274 </Panes>
275 <ProtectObjects>False</ProtectObjects>
276 <ProtectScenarios>False</ProtectScenarios>
277</WorksheetOptions>
278</Worksheet>
279</Workbook>
0280
=== modified file 'account/wizard/account_report_general_ledger.py'
--- account/wizard/account_report_general_ledger.py 2011-01-14 00:11:01 +0000
+++ account/wizard/account_report_general_ledger.py 2013-12-20 09:30:16 +0000
@@ -32,31 +32,79 @@
32 help='It adds initial balance row on report which display previous sum amount of debit/credit/balance'),32 help='It adds initial balance row on report which display previous sum amount of debit/credit/balance'),
33 'amount_currency': fields.boolean("With Currency", help="It adds the currency column if the currency is different then the company currency"),33 'amount_currency': fields.boolean("With Currency", help="It adds the currency column if the currency is different then the company currency"),
34 'sortby': fields.selection([('sort_date', 'Date'), ('sort_journal_partner', 'Journal & Partner')], 'Sort By', required=True),34 'sortby': fields.selection([('sort_date', 'Date'), ('sort_journal_partner', 'Journal & Partner')], 'Sort By', required=True),
35 'output_currency': fields.many2one('res.currency', 'Output Currency', required=True),
36 'instance_ids': fields.many2many('msf.instance', 'account_report_general_ledger_instance_rel', 'instance_id', 'argl_id', 'Proprietary Instances'),
37 #'export_format': fields.selection([('xls', 'Excel'), ('csv', 'CSV'), ('pdf', 'PDF')], string="Export format", required=True),
38 'export_format': fields.selection([('xls', 'Excel'), ('pdf', 'PDF')], string="Export format", required=True),
35 }39 }
40
41 def _get_journals(self, cr, uid, context=None):
42 """exclude extra-accounting journals from this report (IKD, ODX)."""
43 domain = [('type', 'not in', ['inkind', 'extra'])]
44 return self.pool.get('account.journal').search(cr, uid, domain, context=context)
45
36 _defaults = {46 _defaults = {
37 'landscape': True,47 'landscape': True,
38 'amount_currency': True,48 'amount_currency': True,
39 'sortby': 'sort_date',49 'sortby': 'sort_date',
40 'initial_balance': False,50 'initial_balance': False,
51 'amount_currency': True,
52 'export_format': 'pdf',
53 'journal_ids': _get_journals, # exclude extra-accounting journals from this report (IKD, ODX)
41 }54 }
55
56 def default_get(self, cr, uid, fields, context=None):
57 res = super(account_report_general_ledger, self).default_get(cr, uid, fields, context=context)
58 # get company default currency
59 user = self.pool.get('res.users').browse(cr, uid, [uid], context=context)
60 if user and user[0] and user[0].company_id:
61 res['output_currency'] = user[0].company_id.currency_id.id
62 return res
4263
43 def onchange_fiscalyear(self, cr, uid, ids, fiscalyear=False, context=None):64 def onchange_fiscalyear(self, cr, uid, ids, fiscalyear=False, context=None):
44 res = {}65 res = {}
45 if not fiscalyear:66 if not fiscalyear:
46 res['value'] = {'initial_balance': False}67 res['value'] = {'initial_balance': False}
47 return res68 return res
69
70 def remove_journals(self, cr, uid, ids, context=None):
71 if ids:
72 self.write(cr, uid, ids, { 'journal_ids': [(6, 0, [])] },
73 context=context)
74 return {}
4875
49 def _print_report(self, cr, uid, ids, data, context=None):76 def _print_report(self, cr, uid, ids, data, context=None):
50 if context is None:77 if context is None:
51 context = {}78 context = {}
52 data = self.pre_print_report(cr, uid, ids, data, context=context)79 data = self.pre_print_report(cr, uid, ids, data, context=context)
53 data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby'])[0])80 data['form'].update(self.read(cr, uid, ids, ['landscape', 'initial_balance', 'amount_currency', 'sortby', 'output_currency', 'instance_ids', 'export_format'])[0])
54 if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record81 if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record
55 data['form'].update({'initial_balance': False})82 data['form'].update({'initial_balance': False})
83 if data['form']['journal_ids']:
84 default_journals = self._get_journals(cr, uid, context=context)
85 if default_journals:
86 if len(default_journals) == len(data['form']['journal_ids']):
87 data['form']['all_journals'] = True
88 if data['form']['export_format'] \
89 and data['form']['export_format'] == 'xls':
90 return {
91 'type': 'ir.actions.report.xml',
92 'report_name': 'account.general.ledger_xls',
93 'datas': data,
94 }
56 if data['form']['landscape']:95 if data['form']['landscape']:
57 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data}96 return {
58 return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data}97 'type': 'ir.actions.report.xml',
5998 'report_name': 'account.general.ledger_landscape',
99 'datas': data,
100 }
101 return {
102 'type': 'ir.actions.report.xml',
103 'report_name': 'account.general.ledger',
104 'datas': data,
105 }
106
107
60account_report_general_ledger()108account_report_general_ledger()
61109
62# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:110# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
63111
=== modified file 'account/wizard/account_report_general_ledger_view.xml'
--- account/wizard/account_report_general_ledger_view.xml 2011-01-14 00:11:01 +0000
+++ account/wizard/account_report_general_ledger_view.xml 2013-12-20 09:30:16 +0000
@@ -16,11 +16,38 @@
16 <xpath expr="//field[@name='target_move']" position="after">16 <xpath expr="//field[@name='target_move']" position="after">
17 <field name="display_account"/>17 <field name="display_account"/>
18 <field name="sortby"/>18 <field name="sortby"/>
19 <field name="landscape"/>
20 <field name="initial_balance" attrs="{'readonly':[('fiscalyear_id','=', False)]}"/>19 <field name="initial_balance" attrs="{'readonly':[('fiscalyear_id','=', False)]}"/>
21 <field name="amount_currency"/>20 <newline/>
22 <newline/>21 <field name="export_format"/>
23 </xpath>22 <field name="landscape" attrs="{'invisible': [('export_format', '=', 'xls')]}"/>
23 <newline/>
24 <field name="output_currency" invisible="1" />
25 <field name="amount_currency" invisible="1" />
26 <newline/>
27 <field name="instance_ids">
28 <tree noteditable="1" editable="top" string="Proprietary Instances">
29 <field name="code" />
30 <field name="name" />
31 </tree>
32 </field>
33 <newline/>
34 </xpath>
35
36 <xpath expr="//field[@name='journal_ids']" position="replace">
37 <group col="4" colspan="4">
38 <button name="remove_journals" string="Remove all journals" type="object" colspan="1" />
39 <label string="" colspan="3" />
40 <field name="journal_ids" colspan="4" nolabel="1" noteditable="1">
41 <tree noteditable="1" editable="top" string="Account Journal">
42 <field name="instance_id" />
43 <field name="code" />
44 <field name="name" />
45 <field name="type" />
46 </tree>
47 </field>
48 </group>
49 </xpath>
50
24 </data>51 </data>
25 </field>52 </field>
26 </record>53 </record>

Subscribers

People subscribed via source and target branches

to all changes: