Merge lp:~unifield-team/unifield-addons/uf-1714 into lp:unifield-addons
- uf-1714
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Dev Team | Pending | ||
Review via email: mp+195731@code.launchpad.net |
Commit message
Description of the change
- 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
1 | === modified file 'account/account_report.xml' | |||
2 | --- account/account_report.xml 2013-11-28 20:42:44 +0000 | |||
3 | +++ account/account_report.xml 2013-12-20 09:30:16 +0000 | |||
4 | @@ -48,6 +48,16 @@ | |||
5 | 48 | rml="account/report/account_balance_landscape.rml" | 48 | rml="account/report/account_balance_landscape.rml" |
6 | 49 | auto="False" | 49 | auto="False" |
7 | 50 | menu="False"/> | 50 | menu="False"/> |
9 | 51 | 51 | ||
10 | 52 | <!-- UF-1714 --> | ||
11 | 53 | <report id="account_general_ledger_xls" | ||
12 | 54 | auto="False" | ||
13 | 55 | menu="False" | ||
14 | 56 | header="False" | ||
15 | 57 | model="account.account" | ||
16 | 58 | name="account.general.ledger_xls" | ||
17 | 59 | file="account/report/account_general_ledger_xls.mako" | ||
18 | 60 | report_type="webkit" | ||
19 | 61 | string="General Ledger"/> | ||
20 | 52 | </data> | 62 | </data> |
21 | 53 | </openerp> | 63 | </openerp> |
22 | 54 | 64 | ||
23 | === modified file 'account/report/account_general_ledger.py' | |||
24 | --- account/report/account_general_ledger.py 2011-01-14 00:11:01 +0000 | |||
25 | +++ account/report/account_general_ledger.py 2013-12-20 09:30:16 +0000 | |||
26 | @@ -30,6 +30,8 @@ | |||
27 | 30 | import time | 30 | import time |
28 | 31 | from report import report_sxw | 31 | from report import report_sxw |
29 | 32 | from common_report_header import common_report_header | 32 | from common_report_header import common_report_header |
30 | 33 | from report_webkit.webkit_report import WebKitParser | ||
31 | 34 | from spreadsheet_xml.spreadsheet_xml_write import SpreadsheetReport | ||
32 | 33 | 35 | ||
33 | 34 | class general_ledger(report_sxw.rml_parse, common_report_header): | 36 | class general_ledger(report_sxw.rml_parse, common_report_header): |
34 | 35 | _name = 'report.account.general.ledger' | 37 | _name = 'report.account.general.ledger' |
35 | @@ -37,6 +39,7 @@ | |||
36 | 37 | def set_context(self, objects, data, ids, report_type=None): | 39 | def set_context(self, objects, data, ids, report_type=None): |
37 | 38 | new_ids = ids | 40 | new_ids = ids |
38 | 39 | obj_move = self.pool.get('account.move.line') | 41 | obj_move = self.pool.get('account.move.line') |
39 | 42 | |||
40 | 40 | self.sortby = data['form'].get('sortby', 'sort_date') | 43 | self.sortby = data['form'].get('sortby', 'sort_date') |
41 | 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 | 42 | ctx2 = data['form'].get('used_context',{}).copy() | 45 | ctx2 = data['form'].get('used_context',{}).copy() |
43 | @@ -53,11 +56,60 @@ | |||
44 | 53 | ctx['date_from'] = data['form']['date_from'] | 56 | ctx['date_from'] = data['form']['date_from'] |
45 | 54 | ctx['date_to'] = data['form']['date_to'] | 57 | ctx['date_to'] = data['form']['date_to'] |
46 | 55 | ctx['state'] = data['form']['target_move'] | 58 | ctx['state'] = data['form']['target_move'] |
47 | 59 | if 'instance_ids' in data['form']: | ||
48 | 60 | ctx['instance_ids'] = data['form']['instance_ids'] | ||
49 | 56 | self.context.update(ctx) | 61 | self.context.update(ctx) |
50 | 57 | if (data['model'] == 'ir.ui.menu'): | 62 | if (data['model'] == 'ir.ui.menu'): |
51 | 58 | new_ids = [data['form']['chart_account_id']] | 63 | new_ids = [data['form']['chart_account_id']] |
54 | 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) |
55 | 60 | return super(general_ledger, self).set_context(objects, data, new_ids, report_type=report_type) | 65 | |
56 | 66 | # output currency | ||
57 | 67 | self.output_currency_id = data['form']['output_currency'] | ||
58 | 68 | self.output_currency_code = '' | ||
59 | 69 | if self.output_currency_id: | ||
60 | 70 | ouput_cur_r = self.pool.get('res.currency').read(self.cr, | ||
61 | 71 | self.uid, | ||
62 | 72 | [self.output_currency_id], | ||
63 | 73 | ['name']) | ||
64 | 74 | if ouput_cur_r and ouput_cur_r[0] and ouput_cur_r[0]['name']: | ||
65 | 75 | self.output_currency_code = ouput_cur_r[0]['name'] | ||
66 | 76 | |||
67 | 77 | # proprietary instances filter | ||
68 | 78 | self.instance_ids = data['form']['instance_ids'] | ||
69 | 79 | if self.instance_ids: | ||
70 | 80 | # we add instance filter in clauses 'self.query/self.init_query' | ||
71 | 81 | instance_ids_in = "l.instance_id in(%s)" % (",".join(map(str, self.instance_ids))) | ||
72 | 82 | if not self.query: | ||
73 | 83 | self.query = instance_ids_in | ||
74 | 84 | else: | ||
75 | 85 | self.query += ' AND ' + instance_ids_in | ||
76 | 86 | if not self.init_query: | ||
77 | 87 | self.init_query = instance_ids_in | ||
78 | 88 | else: | ||
79 | 89 | self.init_query += ' AND ' + instance_ids_in | ||
80 | 90 | |||
81 | 91 | res = super(general_ledger, self).set_context(objects, data, new_ids, report_type=report_type) | ||
82 | 92 | |||
83 | 93 | # UF-1714 | ||
84 | 94 | # accounts 8*, 9* are not displayed: | ||
85 | 95 | # we have to deduce debit/credit/balance amounts of MSF account view (root account) | ||
86 | 96 | self._deduce_accounts = { | ||
87 | 97 | '8': {'debit': 0., 'credit': 0., 'balance': 0. }, | ||
88 | 98 | '9': {'debit': 0., 'credit': 0., 'balance': 0. }, | ||
89 | 99 | } | ||
90 | 100 | a_obj = self.pool.get('account.account') | ||
91 | 101 | for a_code in self._deduce_accounts: | ||
92 | 102 | a_ids = a_obj.search(self.cr, self.uid, [('code', '=', a_code)]) | ||
93 | 103 | if a_ids: | ||
94 | 104 | if isinstance(a_ids, (int, long)): | ||
95 | 105 | a_ids = [a_ids] | ||
96 | 106 | account = a_obj.browse(self.cr, self.uid, a_ids, context=self.context)[0] | ||
97 | 107 | if account: | ||
98 | 108 | self._deduce_accounts[a_code]['debit'] = self._sum_debit_account(account) | ||
99 | 109 | self._deduce_accounts[a_code]['credit'] = self._sum_credit_account(account) | ||
100 | 110 | self._deduce_accounts[a_code]['balance'] = self._sum_balance_account(account) | ||
101 | 111 | |||
102 | 112 | return res | ||
103 | 61 | 113 | ||
104 | 62 | def __init__(self, cr, uid, name, context=None): | 114 | def __init__(self, cr, uid, name, context=None): |
105 | 63 | if context is None: | 115 | if context is None: |
106 | @@ -68,7 +120,7 @@ | |||
107 | 68 | self.period_sql = "" | 120 | self.period_sql = "" |
108 | 69 | self.sold_accounts = {} | 121 | self.sold_accounts = {} |
109 | 70 | self.sortby = 'sort_date' | 122 | self.sortby = 'sort_date' |
111 | 71 | self.localcontext.update( { | 123 | self.localcontext.update({ |
112 | 72 | 'time': time, | 124 | 'time': time, |
113 | 73 | 'lines': self.lines, | 125 | 'lines': self.lines, |
114 | 74 | 'sum_debit_account': self._sum_debit_account, | 126 | 'sum_debit_account': self._sum_debit_account, |
115 | @@ -86,7 +138,27 @@ | |||
116 | 86 | 'get_start_date':self._get_start_date, | 138 | 'get_start_date':self._get_start_date, |
117 | 87 | 'get_end_date':self._get_end_date, | 139 | 'get_end_date':self._get_end_date, |
118 | 88 | 'get_target_move': self._get_target_move, | 140 | 'get_target_move': self._get_target_move, |
119 | 141 | 'get_output_currency_code': self._get_output_currency_code, | ||
120 | 142 | 'get_filter_info': self._get_filter_info, | ||
121 | 143 | 'get_line_debit': self._get_line_debit, | ||
122 | 144 | 'get_line_credit': self._get_line_credit, | ||
123 | 145 | 'get_line_balance': self._get_line_balance, | ||
124 | 146 | 'currency_conv': self._currency_conv, | ||
125 | 147 | 'get_prop_instances': self._get_prop_instances, | ||
126 | 89 | }) | 148 | }) |
127 | 149 | |||
128 | 150 | # company currency | ||
129 | 151 | self.uid = uid | ||
130 | 152 | self.currency_id = False | ||
131 | 153 | self.instance_id = False | ||
132 | 154 | user = self.pool.get('res.users').browse(cr, uid, [uid], context=context) | ||
133 | 155 | if user and user[0] and user[0].company_id: | ||
134 | 156 | self.currency_id = user[0].company_id.currency_id.id | ||
135 | 157 | if user[0].company_id.instance_id: | ||
136 | 158 | self.instance_id = user[0].company_id.instance_id.id | ||
137 | 159 | if not self.currency_id: | ||
138 | 160 | raise osv.except_osv(_('Error !'), _('Company has no default currency')) | ||
139 | 161 | |||
140 | 90 | self.context = context | 162 | self.context = context |
141 | 91 | 163 | ||
142 | 92 | def _sum_currency_amount_account(self, account): | 164 | def _sum_currency_amount_account(self, account): |
143 | @@ -104,9 +176,13 @@ | |||
144 | 104 | def get_children_accounts(self, account): | 176 | def get_children_accounts(self, account): |
145 | 105 | res = [] | 177 | res = [] |
146 | 106 | currency_obj = self.pool.get('res.currency') | 178 | currency_obj = self.pool.get('res.currency') |
147 | 179 | |||
148 | 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) |
149 | 108 | currency = account.currency_id and account.currency_id or account.company_id.currency_id | 181 | currency = account.currency_id and account.currency_id or account.company_id.currency_id |
150 | 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): |
151 | 183 | if child_account.code.startswith('8') or child_account.code.startswith('9'): | ||
152 | 184 | # UF-1714: exclude accounts '8*'/'9*' | ||
153 | 185 | continue | ||
154 | 110 | sql = """ | 186 | sql = """ |
155 | 111 | SELECT count(id) | 187 | SELECT count(id) |
156 | 112 | FROM account_move_line AS l | 188 | FROM account_move_line AS l |
157 | @@ -128,7 +204,6 @@ | |||
158 | 128 | if not res: | 204 | if not res: |
159 | 129 | return [account] | 205 | return [account] |
160 | 130 | return res | 206 | return res |
161 | 131 | |||
162 | 132 | def lines(self, account): | 207 | def lines(self, account): |
163 | 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 """ |
164 | 134 | move_state = ['draft','posted'] | 209 | move_state = ['draft','posted'] |
165 | @@ -161,7 +236,7 @@ | |||
166 | 161 | else: | 236 | else: |
167 | 162 | sql_sort='l.date, l.move_id' | 237 | sql_sort='l.date, l.move_id' |
168 | 163 | sql = """ | 238 | sql = """ |
170 | 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, |
171 | 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, |
172 | 166 | c.symbol AS currency_code, | 241 | c.symbol AS currency_code, |
173 | 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, |
174 | @@ -181,7 +256,7 @@ | |||
175 | 181 | if res_lines and self.init_balance: | 256 | if res_lines and self.init_balance: |
176 | 182 | #FIXME: replace the label of lname with a string translatable | 257 | #FIXME: replace the label of lname with a string translatable |
177 | 183 | sql = """ | 258 | sql = """ |
179 | 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, |
180 | 185 | '' AS move_name, '' AS mmove_id, '' AS period_code, | 260 | '' AS move_name, '' AS mmove_id, '' AS period_code, |
181 | 186 | '' AS currency_code, | 261 | '' AS currency_code, |
182 | 187 | NULL AS currency_id, | 262 | NULL AS currency_id, |
183 | @@ -215,7 +290,14 @@ | |||
184 | 215 | 290 | ||
185 | 216 | def _sum_debit_account(self, account): | 291 | def _sum_debit_account(self, account): |
186 | 217 | if account.type == 'view': | 292 | if account.type == 'view': |
188 | 218 | return account.debit | 293 | amount = account.debit |
189 | 294 | if not account.parent_id: | ||
190 | 295 | # UF-1714 | ||
191 | 296 | # accounts 8*, 9* are not displayed: | ||
192 | 297 | # we have to deduce debit/credit/balance amounts of MSF account view (root account) | ||
193 | 298 | for a_code in self._deduce_accounts: | ||
194 | 299 | amount -= self._deduce_accounts[a_code]['debit'] | ||
195 | 300 | return self._currency_conv(amount) | ||
196 | 219 | move_state = ['draft','posted'] | 301 | move_state = ['draft','posted'] |
197 | 220 | if self.target_move == 'posted': | 302 | if self.target_move == 'posted': |
198 | 221 | move_state = ['posted',''] | 303 | move_state = ['posted',''] |
199 | @@ -226,6 +308,16 @@ | |||
200 | 226 | AND (am.state IN %s) \ | 308 | AND (am.state IN %s) \ |
201 | 227 | AND '+ self.query +' ' | 309 | AND '+ self.query +' ' |
202 | 228 | ,(account.id, tuple(move_state))) | 310 | ,(account.id, tuple(move_state))) |
203 | 311 | #~ self.cr.execute("SELECT sum(debit)" \ | ||
204 | 312 | #~ " FROM account_move_line l" \ | ||
205 | 313 | #~ " JOIN account_move am ON (am.id = l.move_id)" \ | ||
206 | 314 | #~ " JOIN account_account a ON (a.id = l.account_id)" \ | ||
207 | 315 | #~ " WHERE (l.account_id = %s)" \ | ||
208 | 316 | #~ " AND (am.state IN %s)" \ | ||
209 | 317 | #~ " AND (a.code not like '8%%')" \ | ||
210 | 318 | #~ " AND (a.code not like '9%%')" \ | ||
211 | 319 | #~ " AND "+ self.query + " " | ||
212 | 320 | #~ ,(account.id, tuple(move_state))) | ||
213 | 229 | sum_debit = self.cr.fetchone()[0] or 0.0 | 321 | sum_debit = self.cr.fetchone()[0] or 0.0 |
214 | 230 | if self.init_balance: | 322 | if self.init_balance: |
215 | 231 | self.cr.execute('SELECT sum(debit) \ | 323 | self.cr.execute('SELECT sum(debit) \ |
216 | @@ -235,13 +327,31 @@ | |||
217 | 235 | AND (am.state IN %s) \ | 327 | AND (am.state IN %s) \ |
218 | 236 | AND '+ self.init_query +' ' | 328 | AND '+ self.init_query +' ' |
219 | 237 | ,(account.id, tuple(move_state))) | 329 | ,(account.id, tuple(move_state))) |
220 | 330 | #~ self.cr.execute("SELECT sum(debit)" \ | ||
221 | 331 | #~ "FROM account_move_line l" \ | ||
222 | 332 | #~ " JOIN account_move am ON (am.id = l.move_id)" \ | ||
223 | 333 | #~ " JOIN account_account a ON (a.id = l.account_id)" \ | ||
224 | 334 | #~ " WHERE (l.account_id = %s)" \ | ||
225 | 335 | #~ " AND (am.state IN %s)" \ | ||
226 | 336 | #~ " AND (a.code not like '8%%')" \ | ||
227 | 337 | #~ " AND (a.code not like '9%%')" \ | ||
228 | 338 | #~ " AND " + self.init_query + " " | ||
229 | 339 | #~ ,(account.id, tuple(move_state))) | ||
230 | 238 | # Add initial balance to the result | 340 | # Add initial balance to the result |
231 | 239 | sum_debit += self.cr.fetchone()[0] or 0.0 | 341 | sum_debit += self.cr.fetchone()[0] or 0.0 |
232 | 342 | sum_debit = self._currency_conv(sum_debit) | ||
233 | 240 | return sum_debit | 343 | return sum_debit |
234 | 241 | 344 | ||
235 | 242 | def _sum_credit_account(self, account): | 345 | def _sum_credit_account(self, account): |
236 | 243 | if account.type == 'view': | 346 | if account.type == 'view': |
238 | 244 | return account.credit | 347 | amount = account.credit |
239 | 348 | if not account.parent_id: | ||
240 | 349 | # UF-1714 | ||
241 | 350 | # accounts 8*, 9* are not displayed: | ||
242 | 351 | # we have to deduce debit/credit/balance amounts of MSF account view (root account) | ||
243 | 352 | for a_code in self._deduce_accounts: | ||
244 | 353 | amount -= self._deduce_accounts[a_code]['credit'] | ||
245 | 354 | return self._currency_conv(amount) | ||
246 | 245 | move_state = ['draft','posted'] | 355 | move_state = ['draft','posted'] |
247 | 246 | if self.target_move == 'posted': | 356 | if self.target_move == 'posted': |
248 | 247 | move_state = ['posted',''] | 357 | move_state = ['posted',''] |
249 | @@ -263,11 +373,19 @@ | |||
250 | 263 | ,(account.id, tuple(move_state))) | 373 | ,(account.id, tuple(move_state))) |
251 | 264 | # Add initial balance to the result | 374 | # Add initial balance to the result |
252 | 265 | sum_credit += self.cr.fetchone()[0] or 0.0 | 375 | sum_credit += self.cr.fetchone()[0] or 0.0 |
253 | 376 | sum_credit = self._currency_conv(sum_credit) | ||
254 | 266 | return sum_credit | 377 | return sum_credit |
255 | 267 | 378 | ||
256 | 268 | def _sum_balance_account(self, account): | 379 | def _sum_balance_account(self, account): |
257 | 269 | if account.type == 'view': | 380 | if account.type == 'view': |
259 | 270 | return account.balance | 381 | amount = account.balance |
260 | 382 | if not account.parent_id: | ||
261 | 383 | # UF-1714 | ||
262 | 384 | # accounts 8*, 9* are not displayed: | ||
263 | 385 | # we have to deduce debit/credit/balance amounts of MSF account view (root account) | ||
264 | 386 | for a_code in self._deduce_accounts: | ||
265 | 387 | amount -= self._deduce_accounts[a_code]['balance'] | ||
266 | 388 | return self._currency_conv(amount) | ||
267 | 271 | move_state = ['draft','posted'] | 389 | move_state = ['draft','posted'] |
268 | 272 | if self.target_move == 'posted': | 390 | if self.target_move == 'posted': |
269 | 273 | move_state = ['posted',''] | 391 | move_state = ['posted',''] |
270 | @@ -289,11 +407,12 @@ | |||
271 | 289 | ,(account.id, tuple(move_state))) | 407 | ,(account.id, tuple(move_state))) |
272 | 290 | # Add initial balance to the result | 408 | # Add initial balance to the result |
273 | 291 | sum_balance += self.cr.fetchone()[0] or 0.0 | 409 | sum_balance += self.cr.fetchone()[0] or 0.0 |
274 | 410 | sum_balance = self._currency_conv(sum_balance) | ||
275 | 292 | return sum_balance | 411 | return sum_balance |
276 | 293 | 412 | ||
277 | 294 | def _get_account(self, data): | 413 | def _get_account(self, data): |
278 | 295 | if data['model'] == 'account.account': | 414 | if data['model'] == 'account.account': |
280 | 296 | return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id']).company_id.name | 415 | return self.pool.get('account.account').browse(self.cr, self.uid, data['form']['id'], context=self.context).company_id.name |
281 | 297 | return super(general_ledger ,self)._get_account(data) | 416 | return super(general_ledger ,self)._get_account(data) |
282 | 298 | 417 | ||
283 | 299 | def _get_sortby(self, data): | 418 | def _get_sortby(self, data): |
284 | @@ -302,8 +421,81 @@ | |||
285 | 302 | elif self.sortby == 'sort_journal_partner': | 421 | elif self.sortby == 'sort_journal_partner': |
286 | 303 | return 'Journal & Partner' | 422 | return 'Journal & Partner' |
287 | 304 | return 'Date' | 423 | return 'Date' |
288 | 424 | |||
289 | 425 | def _get_output_currency_code(self, data): | ||
290 | 426 | if not self.output_currency_code: | ||
291 | 427 | return '' | ||
292 | 428 | return self.output_currency_code | ||
293 | 429 | |||
294 | 430 | def _get_filter_info(self, data): | ||
295 | 431 | """ get filter info | ||
296 | 432 | _get_filter, _get_start_date, _get_end_date, | ||
297 | 433 | get_start_period, get_end_period | ||
298 | 434 | are from common_report_header | ||
299 | 435 | """ | ||
300 | 436 | res = '' | ||
301 | 437 | f = self._get_filter(data) | ||
302 | 438 | if not f: | ||
303 | 439 | return res | ||
304 | 305 | 440 | ||
305 | 441 | if f == 'No Filter': | ||
306 | 442 | res = f | ||
307 | 443 | elif f == 'Date': | ||
308 | 444 | res = self.formatLang(self._get_start_date(data), date=True) + ' - ' + self.formatLang(self._get_end_date(data), date=True) | ||
309 | 445 | elif f == 'Periods': | ||
310 | 446 | res = self.get_start_period(data) + ' - ' + self.get_end_period(data) | ||
311 | 447 | return res | ||
312 | 448 | |||
313 | 449 | def _get_line_debit(self, line): | ||
314 | 450 | return self._currency_conv(line['debit']) | ||
315 | 451 | |||
316 | 452 | def _get_line_credit(self, line): | ||
317 | 453 | return self._currency_conv(line['credit']) | ||
318 | 454 | |||
319 | 455 | def _get_line_balance(self, line): | ||
320 | 456 | return self._currency_conv(line['debit'] - line['credit']) | ||
321 | 457 | |||
322 | 458 | def _is_company_currency(self): | ||
323 | 459 | if not self.output_currency_id or not self.currency_id \ | ||
324 | 460 | or self.output_currency_id == self.currency_id: | ||
325 | 461 | # ouput currency == company currency | ||
326 | 462 | return True | ||
327 | 463 | else: | ||
328 | 464 | # is other currency | ||
329 | 465 | return False | ||
330 | 466 | |||
331 | 467 | def _currency_conv(self, amount): | ||
332 | 468 | if not amount or amount == 0.: | ||
333 | 469 | return amount | ||
334 | 470 | if self._is_company_currency(): | ||
335 | 471 | return amount | ||
336 | 472 | amount = self.pool.get('res.currency').compute(self.cr, self.uid, | ||
337 | 473 | self.currency_id, | ||
338 | 474 | self.output_currency_id, | ||
339 | 475 | amount) | ||
340 | 476 | if not amount: | ||
341 | 477 | amount = 0. | ||
342 | 478 | return amount | ||
343 | 479 | |||
344 | 480 | def _get_prop_instances(self, data): | ||
345 | 481 | instances = [] | ||
346 | 482 | if data.get('form', False) and data['form'].get('instance_ids', False): | ||
347 | 483 | self.cr.execute('select code from msf_instance where id IN %s',(tuple(data['form']['instance_ids']),)) | ||
348 | 484 | instances = [x for x, in self.cr.fetchall()] | ||
349 | 485 | return instances | ||
350 | 486 | |||
351 | 306 | report_sxw.report_sxw('report.account.general.ledger', 'account.account', 'addons/account/report/account_general_ledger.rml', parser=general_ledger, header='internal') | 487 | report_sxw.report_sxw('report.account.general.ledger', 'account.account', 'addons/account/report/account_general_ledger.rml', parser=general_ledger, header='internal') |
352 | 307 | report_sxw.report_sxw('report.account.general.ledger_landscape', 'account.account', 'addons/account/report/account_general_ledger_landscape.rml', parser=general_ledger, header='internal landscape') | 488 | report_sxw.report_sxw('report.account.general.ledger_landscape', 'account.account', 'addons/account/report/account_general_ledger_landscape.rml', parser=general_ledger, header='internal landscape') |
353 | 308 | 489 | ||
354 | 490 | |||
355 | 491 | class general_ledger_xls(SpreadsheetReport): | ||
356 | 492 | def __init__(self, name, table, rml=False, parser=report_sxw.rml_parse, header='external', store=False): | ||
357 | 493 | super(general_ledger_xls, self).__init__(name, table, rml=rml, parser=parser, header=header, store=store) | ||
358 | 494 | |||
359 | 495 | def create(self, cr, uid, ids, data, context=None): | ||
360 | 496 | #ids = getIds(self, cr, uid, ids, context) | ||
361 | 497 | a = super(general_ledger_xls, self).create(cr, uid, ids, data, context) | ||
362 | 498 | return (a[0], 'xls') | ||
363 | 499 | general_ledger_xls('report.account.general.ledger_xls', 'account.account', 'addons/account/report/account_general_ledger_xls.mako', parser=general_ledger, header='internal') | ||
364 | 500 | |||
365 | 309 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 501 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
366 | 310 | 502 | ||
367 | === modified file 'account/report/account_general_ledger.rml' | |||
368 | --- account/report/account_general_ledger.rml 2011-01-14 00:11:01 +0000 | |||
369 | +++ account/report/account_general_ledger.rml 2013-12-20 09:30:16 +0000 | |||
370 | @@ -1,6 +1,6 @@ | |||
371 | 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
374 | 2 | <document filename="General Ledger.pdf"> | 2 | <document filename="test.pdf"> |
375 | 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"> |
376 | 4 | <pageTemplate id="first"> | 4 | <pageTemplate id="first"> |
377 | 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"/> |
378 | 6 | </pageTemplate> | 6 | </pageTemplate> |
379 | @@ -26,12 +26,9 @@ | |||
380 | 26 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> | 26 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> |
381 | 27 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | 27 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> |
382 | 28 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | 28 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> |
383 | 29 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
384 | 29 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> | 30 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> |
385 | 30 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | 31 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> |
386 | 31 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
387 | 32 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
388 | 33 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/> | ||
389 | 34 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
390 | 35 | </blockTableStyle> | 32 | </blockTableStyle> |
391 | 36 | <blockTableStyle id="Table1"> | 33 | <blockTableStyle id="Table1"> |
392 | 37 | <blockAlignment value="LEFT"/> | 34 | <blockAlignment value="LEFT"/> |
393 | @@ -49,112 +46,9 @@ | |||
394 | 49 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> | 46 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> |
395 | 50 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | 47 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> |
396 | 51 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | 48 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> |
397 | 49 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
398 | 52 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> | 50 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> |
399 | 53 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | 51 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> |
400 | 54 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
401 | 55 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
402 | 56 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/> | ||
403 | 57 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
404 | 58 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="6,0" stop="6,-1"/> | ||
405 | 59 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/> | ||
406 | 60 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/> | ||
407 | 61 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="7,0" stop="7,-1"/> | ||
408 | 62 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="7,0" stop="7,-1"/> | ||
409 | 63 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="7,0" stop="7,0"/> | ||
410 | 64 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | ||
411 | 65 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="8,0" stop="8,-1"/> | ||
412 | 66 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="8,0" stop="8,0"/> | ||
413 | 67 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | ||
414 | 68 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="9,0" stop="9,-1"/> | ||
415 | 69 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="9,0" stop="9,-1"/> | ||
416 | 70 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="9,0" stop="9,0"/> | ||
417 | 71 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | ||
418 | 72 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="10,0" stop="10,-1"/> | ||
419 | 73 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="10,0" stop="10,0"/> | ||
420 | 74 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> | ||
421 | 75 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="11,0" stop="11,-1"/> | ||
422 | 76 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="11,0" stop="11,-1"/> | ||
423 | 77 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/> | ||
424 | 78 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/> | ||
425 | 79 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/> | ||
426 | 80 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/> | ||
427 | 81 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/> | ||
428 | 82 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="13,0" stop="13,-1"/> | ||
429 | 83 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="13,0" stop="13,-1"/> | ||
430 | 84 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="13,0" stop="13,0"/> | ||
431 | 85 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="13,-1" stop="13,-1"/> | ||
432 | 86 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/> | ||
433 | 87 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/> | ||
434 | 88 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
435 | 89 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/> | ||
436 | 90 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,1" stop="1,-1"/> | ||
437 | 91 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,1" stop="1,1"/> | ||
438 | 92 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
439 | 93 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,2" stop="0,-1"/> | ||
440 | 94 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,2" stop="0,2"/> | ||
441 | 95 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
442 | 96 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,2" stop="1,-1"/> | ||
443 | 97 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,2" stop="1,-1"/> | ||
444 | 98 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,2" stop="1,2"/> | ||
445 | 99 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
446 | 100 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,3" stop="0,-1"/> | ||
447 | 101 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,3" stop="0,3"/> | ||
448 | 102 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
449 | 103 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,3" stop="1,-1"/> | ||
450 | 104 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,3" stop="1,-1"/> | ||
451 | 105 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,3" stop="1,3"/> | ||
452 | 106 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
453 | 107 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,4" stop="0,-1"/> | ||
454 | 108 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,4" stop="0,4"/> | ||
455 | 109 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
456 | 110 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,4" stop="1,-1"/> | ||
457 | 111 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,4" stop="1,-1"/> | ||
458 | 112 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,4" stop="1,4"/> | ||
459 | 113 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
460 | 114 | </blockTableStyle> | ||
461 | 115 | <blockTableStyle id="Table2"> | ||
462 | 116 | <blockAlignment value="LEFT"/> | ||
463 | 117 | <blockValign value="TOP"/> | ||
464 | 118 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
465 | 119 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
466 | 120 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
467 | 121 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
468 | 122 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
469 | 123 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
470 | 124 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
471 | 125 | </blockTableStyle> | ||
472 | 126 | <blockTableStyle id="Table3"> | ||
473 | 127 | <blockAlignment value="LEFT"/> | ||
474 | 128 | <blockValign value="TOP"/> | ||
475 | 129 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
476 | 130 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
477 | 131 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
478 | 132 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
479 | 133 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
480 | 134 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
481 | 135 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
482 | 136 | </blockTableStyle> | ||
483 | 137 | <blockTableStyle id="Table4"> | ||
484 | 138 | <blockAlignment value="LEFT"/> | ||
485 | 139 | <blockValign value="TOP"/> | ||
486 | 140 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
487 | 141 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
488 | 142 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
489 | 143 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
490 | 144 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
491 | 145 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
492 | 146 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
493 | 147 | </blockTableStyle> | ||
494 | 148 | <blockTableStyle id="Table5"> | ||
495 | 149 | <blockAlignment value="LEFT"/> | ||
496 | 150 | <blockValign value="TOP"/> | ||
497 | 151 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
498 | 152 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
499 | 153 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
500 | 154 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
501 | 155 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
502 | 156 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
503 | 157 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
504 | 158 | </blockTableStyle> | 52 | </blockTableStyle> |
505 | 159 | <blockTableStyle id="Table7"> | 53 | <blockTableStyle id="Table7"> |
506 | 160 | <blockAlignment value="LEFT"/> | 54 | <blockAlignment value="LEFT"/> |
507 | @@ -227,6 +121,7 @@ | |||
508 | 227 | <initialize> | 121 | <initialize> |
509 | 228 | <paraStyle name="all" alignment="justify"/> | 122 | <paraStyle name="all" alignment="justify"/> |
510 | 229 | </initialize> | 123 | </initialize> |
511 | 124 | <paraStyle name="P1" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
512 | 230 | <paraStyle name="Standard" fontName="Helvetica"/> | 125 | <paraStyle name="Standard" fontName="Helvetica"/> |
513 | 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"/> |
514 | 232 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | 127 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> |
515 | @@ -262,86 +157,12 @@ | |||
516 | 262 | <images/> | 157 | <images/> |
517 | 263 | </stylesheet> | 158 | </stylesheet> |
518 | 264 | <story> | 159 | <story> |
519 | 265 | <pto> | ||
520 | 266 | <pto_header> | ||
521 | 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') ]] | ||
522 | 268 | <tr> | ||
523 | 269 | <td> | ||
524 | 270 | <para style="terp_tblheader_Details">Date</para> | ||
525 | 271 | </td> | ||
526 | 272 | <td> | ||
527 | 273 | <para style="terp_tblheader_Details">JNRL</para> | ||
528 | 274 | </td> | ||
529 | 275 | <td> | ||
530 | 276 | <para style="terp_tblheader_Details">Partner</para> | ||
531 | 277 | </td> | ||
532 | 278 | <td> | ||
533 | 279 | <para style="terp_tblheader_Details_Centre">Ref</para> | ||
534 | 280 | </td> | ||
535 | 281 | <td> | ||
536 | 282 | <para style="terp_tblheader_Details_Centre">Move</para> | ||
537 | 283 | </td> | ||
538 | 284 | <td> | ||
539 | 285 | <para style="terp_tblheader_Details">Entry Label</para> | ||
540 | 286 | </td> | ||
541 | 287 | <td> | ||
542 | 288 | <para style="terp_tblheader_Details_Centre">Counterpart</para> | ||
543 | 289 | </td> | ||
544 | 290 | <td> | ||
545 | 291 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
546 | 292 | </td> | ||
547 | 293 | <td> | ||
548 | 294 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
549 | 295 | </td> | ||
550 | 296 | <td> | ||
551 | 297 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
552 | 298 | </td> | ||
553 | 299 | </tr> | ||
554 | 300 | </blockTable> | ||
555 | 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')]] | ||
556 | 302 | <tr> | ||
557 | 303 | <td> | ||
558 | 304 | <para style="terp_tblheader_Details">Date</para> | ||
559 | 305 | </td> | ||
560 | 306 | <td> | ||
561 | 307 | <para style="terp_tblheader_Details">JNRL</para> | ||
562 | 308 | </td> | ||
563 | 309 | <td> | ||
564 | 310 | <para style="terp_tblheader_Details">Partner</para> | ||
565 | 311 | </td> | ||
566 | 312 | <td> | ||
567 | 313 | <para style="terp_tblheader_Details_Centre">Ref</para> | ||
568 | 314 | </td> | ||
569 | 315 | <td> | ||
570 | 316 | <para style="terp_tblheader_Details_Centre">Move</para> | ||
571 | 317 | </td> | ||
572 | 318 | <td> | ||
573 | 319 | <para style="terp_tblheader_Details">Entry Label</para> | ||
574 | 320 | </td> | ||
575 | 321 | <td> | ||
576 | 322 | <para style="terp_tblheader_Details_Centre">Counterpart</para> | ||
577 | 323 | </td> | ||
578 | 324 | <td> | ||
579 | 325 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
580 | 326 | </td> | ||
581 | 327 | <td> | ||
582 | 328 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
583 | 329 | </td> | ||
584 | 330 | <td> | ||
585 | 331 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
586 | 332 | </td> | ||
587 | 333 | <td> | ||
588 | 334 | <para style="terp_tblheader_Details_Right">Currency</para> | ||
589 | 335 | </td> | ||
590 | 336 | </tr> | ||
591 | 337 | </blockTable> | ||
592 | 338 | </pto_header> | ||
593 | 339 | <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para> | 160 | <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para> |
594 | 340 | <para style="terp_header_Centre">General Ledger</para> | 161 | <para style="terp_header_Centre">General Ledger</para> |
595 | 341 | <para style="terp_default_8"> | 162 | <para style="terp_default_8"> |
596 | 342 | <font color="white"> </font> | 163 | <font color="white"> </font> |
597 | 343 | </para> | 164 | </para> |
599 | 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"> |
600 | 345 | <tr> | 166 | <tr> |
601 | 346 | <td> | 167 | <td> |
602 | 347 | <para style="terp_tblheader_General_Centre">Chart of Account</para> | 168 | <para style="terp_tblheader_General_Centre">Chart of Account</para> |
603 | @@ -360,7 +181,7 @@ | |||
604 | 360 | </td> | 181 | </td> |
605 | 361 | </tr> | 182 | </tr> |
606 | 362 | </blockTable> | 183 | </blockTable> |
608 | 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"> |
609 | 364 | <tr> | 185 | <tr> |
610 | 365 | <td> | 186 | <td> |
611 | 366 | <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para> | 187 | <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para> |
612 | @@ -372,47 +193,7 @@ | |||
613 | 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> |
614 | 373 | </td> | 194 | </td> |
615 | 374 | <td> | 195 | <td> |
657 | 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> |
617 | 376 | <blockTable colWidths="58.0,58.0" style="Table2">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]] | ||
618 | 377 | <tr> | ||
619 | 378 | <td> | ||
620 | 379 | <para style="terp_tblheader_General_Centre">Start Date</para> | ||
621 | 380 | </td> | ||
622 | 381 | <td> | ||
623 | 382 | <para style="terp_tblheader_General_Centre">End Date</para> | ||
624 | 383 | </td> | ||
625 | 384 | </tr> | ||
626 | 385 | </blockTable> | ||
627 | 386 | <blockTable colWidths="58.0,58.0" style="Table3">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]] | ||
628 | 387 | <tr> | ||
629 | 388 | <td> | ||
630 | 389 | <para style="terp_default_Centre_8">[[ formatLang(get_start_date(data),date=True) ]]</para> | ||
631 | 390 | </td> | ||
632 | 391 | <td> | ||
633 | 392 | <para style="terp_default_Centre_8">[[ formatLang(get_end_date(data),date=True) ]]</para> | ||
634 | 393 | </td> | ||
635 | 394 | </tr> | ||
636 | 395 | </blockTable> | ||
637 | 396 | <blockTable colWidths="58.0,58.0" style="Table4">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]] | ||
638 | 397 | <tr> | ||
639 | 398 | <td> | ||
640 | 399 | <para style="terp_tblheader_General_Centre">Start Period</para> | ||
641 | 400 | </td> | ||
642 | 401 | <td> | ||
643 | 402 | <para style="terp_tblheader_General_Centre">End Period</para> | ||
644 | 403 | </td> | ||
645 | 404 | </tr> | ||
646 | 405 | </blockTable> | ||
647 | 406 | <blockTable colWidths="58.0,58.0" style="Table5">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]] | ||
648 | 407 | <tr> | ||
649 | 408 | <td> | ||
650 | 409 | <para style="terp_default_Centre_8">[[ get_start_period(data) or removeParentNode('para') ]]</para> | ||
651 | 410 | </td> | ||
652 | 411 | <td> | ||
653 | 412 | <para style="terp_default_Centre_8">[[ get_end_period(data) or removeParentNode('para') ]]</para> | ||
654 | 413 | </td> | ||
655 | 414 | </tr> | ||
656 | 415 | </blockTable> | ||
658 | 416 | <para style="terp_default_8"> | 197 | <para style="terp_default_8"> |
659 | 417 | <font color="white"> </font> | 198 | <font color="white"> </font> |
660 | 418 | </para> | 199 | </para> |
661 | @@ -425,7 +206,7 @@ | |||
662 | 425 | <para style="terp_default_8"> | 206 | <para style="terp_default_8"> |
663 | 426 | <font color="white"> </font> | 207 | <font color="white"> </font> |
664 | 427 | </para> | 208 | </para> |
666 | 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"> |
667 | 429 | <tr> | 210 | <tr> |
668 | 430 | <td> | 211 | <td> |
669 | 431 | <para style="terp_tblheader_Details">Date</para> | 212 | <para style="terp_tblheader_Details">Date</para> |
670 | @@ -464,10 +245,10 @@ | |||
671 | 464 | </blockTable> | 245 | </blockTable> |
672 | 465 | <section> | 246 | <section> |
673 | 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> |
675 | 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"> |
676 | 468 | <tr> | 249 | <tr> |
677 | 469 | <td> | 250 | <td> |
679 | 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> |
680 | 471 | </td> | 252 | </td> |
681 | 472 | <td> | 253 | <td> |
682 | 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> |
683 | @@ -476,16 +257,16 @@ | |||
684 | 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> |
685 | 477 | </td> | 258 | </td> |
686 | 478 | <td> | 259 | <td> |
688 | 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> |
689 | 480 | </td> | 261 | </td> |
690 | 481 | <td> | 262 | <td> |
692 | 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> |
693 | 483 | </td> | 264 | </td> |
694 | 484 | </tr> | 265 | </tr> |
695 | 485 | </blockTable> | 266 | </blockTable> |
696 | 486 | <section> | 267 | <section> |
697 | 487 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> | 268 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
699 | 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"> |
700 | 489 | <tr> | 270 | <tr> |
701 | 490 | <td> | 271 | <td> |
702 | 491 | <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para> | 272 | <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para> |
703 | @@ -497,10 +278,10 @@ | |||
704 | 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> |
705 | 498 | </td> | 279 | </td> |
706 | 499 | <td> | 280 | <td> |
708 | 500 | <para style="terp_default_8">[[ strip_name(line['lref'],9) ]]</para> | 281 | <para style="terp_default_8">[[ strip_name(line['lref'],8) ]]</para> |
709 | 501 | </td> | 282 | </td> |
710 | 502 | <td> | 283 | <td> |
712 | 503 | <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para> | 284 | <para style="terp_default_8">[[ strip_name(line['move'],8) ]]</para> |
713 | 504 | </td> | 285 | </td> |
714 | 505 | <td> | 286 | <td> |
715 | 506 | <para style="terp_default_8">[[ strip_name(line['lname'],10) ]]</para> | 287 | <para style="terp_default_8">[[ strip_name(line['lname'],10) ]]</para> |
716 | @@ -509,25 +290,25 @@ | |||
717 | 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> |
718 | 510 | </td> | 291 | </td> |
719 | 511 | <td> | 292 | <td> |
730 | 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> |
731 | 513 | </td> | 294 | </td> |
732 | 514 | <td> | 295 | <td> |
733 | 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> |
734 | 516 | </td> | 297 | </td> |
735 | 517 | <td> | 298 | <td> |
736 | 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> |
737 | 519 | </td> | 300 | </td> |
738 | 520 | <td> | 301 | <td> |
739 | 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> |
740 | 522 | </td> | 303 | </td> |
741 | 523 | </tr> | 304 | </tr> |
742 | 524 | </blockTable> | 305 | </blockTable> |
743 | 525 | </section> | 306 | </section> |
744 | 526 | </section> | 307 | </section> |
746 | 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"> |
747 | 528 | <tr> | 309 | <tr> |
748 | 529 | <td> | 310 | <td> |
750 | 530 | <para style="terp_tblheader_Details">Date</para> | 311 | <para style="terp_tblheader_Details">[[ removeParentNode('blockTable') ]]</para> |
751 | 531 | </td> | 312 | </td> |
752 | 532 | <td> | 313 | <td> |
753 | 533 | <para style="terp_tblheader_Details">JNRL</para> | 314 | <para style="terp_tblheader_Details">JNRL</para> |
754 | @@ -560,10 +341,10 @@ | |||
755 | 560 | </blockTable> | 341 | </blockTable> |
756 | 561 | <section> | 342 | <section> |
757 | 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> |
759 | 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"> |
760 | 564 | <tr> | 345 | <tr> |
761 | 565 | <td> | 346 | <td> |
763 | 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> |
764 | 567 | </td> | 348 | </td> |
765 | 568 | <td> | 349 | <td> |
766 | 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> |
767 | @@ -572,16 +353,16 @@ | |||
768 | 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> |
769 | 573 | </td> | 354 | </td> |
770 | 574 | <td> | 355 | <td> |
772 | 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> |
773 | 576 | </td> | 357 | </td> |
774 | 577 | </tr> | 358 | </tr> |
775 | 578 | </blockTable> | 359 | </blockTable> |
776 | 579 | <section> | 360 | <section> |
777 | 580 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> | 361 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
779 | 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"> |
780 | 582 | <tr> | 363 | <tr> |
781 | 583 | <td> | 364 | <td> |
783 | 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> |
784 | 585 | </td> | 366 | </td> |
785 | 586 | <td> | 367 | <td> |
786 | 587 | <para style="terp_default_8">[[ line['lcode'] ]]</para> | 368 | <para style="terp_default_8">[[ line['lcode'] ]]</para> |
787 | @@ -608,12 +389,24 @@ | |||
788 | 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> |
789 | 609 | </td> | 390 | </td> |
790 | 610 | <td> | 391 | <td> |
792 | 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> |
793 | 612 | </td> | 393 | </td> |
794 | 613 | </tr> | 394 | </tr> |
795 | 614 | </blockTable> | 395 | </blockTable> |
796 | 396 | <para style="terp_default_2"> | ||
797 | 397 | <font color="white"> </font> | ||
798 | 398 | </para> | ||
799 | 615 | </section> | 399 | </section> |
800 | 616 | </section> | 400 | </section> |
802 | 617 | </pto> | 401 | <para style="terp_default_8"> |
803 | 402 | <font color="white"> </font> | ||
804 | 403 | </para> | ||
805 | 404 | <para style="terp_default_8"> | ||
806 | 405 | <font color="white"> </font> | ||
807 | 406 | </para> | ||
808 | 407 | <para style="terp_default_8"> | ||
809 | 408 | <font color="white"> </font> | ||
810 | 409 | </para> | ||
811 | 618 | </story> | 410 | </story> |
812 | 619 | </document> | 411 | </document> |
813 | 412 | |||
814 | 620 | 413 | ||
815 | === modified file 'account/report/account_general_ledger.sxw' | |||
816 | 621 | Binary 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 | 414 | Binary 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 |
817 | === modified file 'account/report/account_general_ledger_landscape.rml' | |||
818 | --- account/report/account_general_ledger_landscape.rml 2011-01-14 00:11:01 +0000 | |||
819 | +++ account/report/account_general_ledger_landscape.rml 2013-12-20 09:30:16 +0000 | |||
820 | @@ -1,6 +1,6 @@ | |||
821 | 1 | <?xml version="1.0"?> | 1 | <?xml version="1.0"?> |
824 | 2 | <document filename="General Ledger.pdf"> | 2 | <document filename="test.pdf"> |
825 | 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"> |
826 | 4 | <pageTemplate id="first"> | 4 | <pageTemplate id="first"> |
827 | 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"/> |
828 | 6 | </pageTemplate> | 6 | </pageTemplate> |
829 | @@ -61,106 +61,6 @@ | |||
830 | 61 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="6,0" stop="6,-1"/> | 61 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="6,0" stop="6,-1"/> |
831 | 62 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/> | 62 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="6,0" stop="6,0"/> |
832 | 63 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/> | 63 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="6,-1" stop="6,-1"/> |
833 | 64 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="7,0" stop="7,-1"/> | ||
834 | 65 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="7,0" stop="7,0"/> | ||
835 | 66 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | ||
836 | 67 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="8,0" stop="8,-1"/> | ||
837 | 68 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="8,0" stop="8,-1"/> | ||
838 | 69 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="8,0" stop="8,0"/> | ||
839 | 70 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | ||
840 | 71 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="9,0" stop="9,-1"/> | ||
841 | 72 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="9,0" stop="9,0"/> | ||
842 | 73 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | ||
843 | 74 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="10,0" stop="10,-1"/> | ||
844 | 75 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="10,0" stop="10,-1"/> | ||
845 | 76 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="10,0" stop="10,0"/> | ||
846 | 77 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> | ||
847 | 78 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="11,0" stop="11,-1"/> | ||
848 | 79 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/> | ||
849 | 80 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/> | ||
850 | 81 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/> | ||
851 | 82 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="12,0" stop="12,-1"/> | ||
852 | 83 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/> | ||
853 | 84 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/> | ||
854 | 85 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="13,0" stop="13,-1"/> | ||
855 | 86 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="13,0" stop="13,0"/> | ||
856 | 87 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="13,-1" stop="13,-1"/> | ||
857 | 88 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="14,0" stop="14,-1"/> | ||
858 | 89 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="14,0" stop="14,-1"/> | ||
859 | 90 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="14,0" stop="14,0"/> | ||
860 | 91 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="14,-1" stop="14,-1"/> | ||
861 | 92 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/> | ||
862 | 93 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/> | ||
863 | 94 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
864 | 95 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,1" stop="1,-1"/> | ||
865 | 96 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,1" stop="1,-1"/> | ||
866 | 97 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,1" stop="1,1"/> | ||
867 | 98 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
868 | 99 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,2" stop="0,-1"/> | ||
869 | 100 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,2" stop="0,2"/> | ||
870 | 101 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
871 | 102 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,2" stop="1,-1"/> | ||
872 | 103 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,2" stop="1,-1"/> | ||
873 | 104 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,2" stop="1,2"/> | ||
874 | 105 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
875 | 106 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,3" stop="0,-1"/> | ||
876 | 107 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,3" stop="0,3"/> | ||
877 | 108 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
878 | 109 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,3" stop="1,-1"/> | ||
879 | 110 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,3" stop="1,-1"/> | ||
880 | 111 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,3" stop="1,3"/> | ||
881 | 112 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
882 | 113 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,4" stop="0,-1"/> | ||
883 | 114 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,4" stop="0,4"/> | ||
884 | 115 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
885 | 116 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,4" stop="1,-1"/> | ||
886 | 117 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,4" stop="1,-1"/> | ||
887 | 118 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,4" stop="1,4"/> | ||
888 | 119 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
889 | 120 | </blockTableStyle> | ||
890 | 121 | <blockTableStyle id="Table3"> | ||
891 | 122 | <blockAlignment value="LEFT"/> | ||
892 | 123 | <blockValign value="TOP"/> | ||
893 | 124 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
894 | 125 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
895 | 126 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
896 | 127 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
897 | 128 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
898 | 129 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
899 | 130 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
900 | 131 | </blockTableStyle> | ||
901 | 132 | <blockTableStyle id="Table4"> | ||
902 | 133 | <blockAlignment value="LEFT"/> | ||
903 | 134 | <blockValign value="TOP"/> | ||
904 | 135 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
905 | 136 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
906 | 137 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
907 | 138 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
908 | 139 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
909 | 140 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
910 | 141 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
911 | 142 | </blockTableStyle> | ||
912 | 143 | <blockTableStyle id="Table5"> | ||
913 | 144 | <blockAlignment value="LEFT"/> | ||
914 | 145 | <blockValign value="TOP"/> | ||
915 | 146 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
916 | 147 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
917 | 148 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
918 | 149 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
919 | 150 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
920 | 151 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
921 | 152 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
922 | 153 | </blockTableStyle> | ||
923 | 154 | <blockTableStyle id="Table6"> | ||
924 | 155 | <blockAlignment value="LEFT"/> | ||
925 | 156 | <blockValign value="TOP"/> | ||
926 | 157 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,0" stop="0,-1"/> | ||
927 | 158 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,0" stop="0,0"/> | ||
928 | 159 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | ||
929 | 160 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
930 | 161 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="1,0" stop="1,-1"/> | ||
931 | 162 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="1,0" stop="1,0"/> | ||
932 | 163 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="1,-1" stop="1,-1"/> | ||
933 | 164 | </blockTableStyle> | 64 | </blockTableStyle> |
934 | 165 | <blockTableStyle id="Table7"> | 65 | <blockTableStyle id="Table7"> |
935 | 166 | <blockAlignment value="LEFT"/> | 66 | <blockAlignment value="LEFT"/> |
936 | @@ -176,7 +76,6 @@ | |||
937 | 176 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> | 76 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> |
938 | 177 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> | 77 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> |
939 | 178 | <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/> | 78 | <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/> |
940 | 179 | <lineStyle kind="LINEBELOW" colorName="#000000" start="11,-1" stop="11,-1"/> | ||
941 | 180 | </blockTableStyle> | 79 | </blockTableStyle> |
942 | 181 | <blockTableStyle id="Table8"> | 80 | <blockTableStyle id="Table8"> |
943 | 182 | <blockAlignment value="LEFT"/> | 81 | <blockAlignment value="LEFT"/> |
944 | @@ -197,7 +96,6 @@ | |||
945 | 197 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | 96 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> |
946 | 198 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | 97 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> |
947 | 199 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> | 98 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> |
948 | 200 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/> | ||
949 | 201 | </blockTableStyle> | 99 | </blockTableStyle> |
950 | 202 | <blockTableStyle id="Table10"> | 100 | <blockTableStyle id="Table10"> |
951 | 203 | <blockAlignment value="LEFT"/> | 101 | <blockAlignment value="LEFT"/> |
952 | @@ -212,7 +110,6 @@ | |||
953 | 212 | <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/> | 110 | <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/> |
954 | 213 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> | 111 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> |
955 | 214 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> | 112 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> |
956 | 215 | <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/> | ||
957 | 216 | </blockTableStyle> | 113 | </blockTableStyle> |
958 | 217 | <blockTableStyle id="Table11"> | 114 | <blockTableStyle id="Table11"> |
959 | 218 | <blockAlignment value="LEFT"/> | 115 | <blockAlignment value="LEFT"/> |
960 | @@ -232,11 +129,12 @@ | |||
961 | 232 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | 129 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> |
962 | 233 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | 130 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> |
963 | 234 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | 131 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> |
964 | 235 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> | ||
965 | 236 | </blockTableStyle> | 132 | </blockTableStyle> |
966 | 237 | <initialize> | 133 | <initialize> |
967 | 238 | <paraStyle name="all" alignment="justify"/> | 134 | <paraStyle name="all" alignment="justify"/> |
968 | 239 | </initialize> | 135 | </initialize> |
969 | 136 | <paraStyle name="P1" fontName="Helvetica-Bold" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
970 | 137 | <paraStyle name="P2" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
971 | 240 | <paraStyle name="Standard" fontName="Helvetica"/> | 138 | <paraStyle name="Standard" fontName="Helvetica"/> |
972 | 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"/> |
973 | 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"/> |
974 | @@ -251,113 +149,33 @@ | |||
975 | 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"/> |
976 | 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"/> |
977 | 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"/> |
980 | 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"/> |
981 | 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"/> |
982 | 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"/> |
983 | 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"/> |
984 | 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"/> |
985 | 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"/> |
988 | 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"/> |
989 | 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"/> |
990 | 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"/> |
991 | 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"/> |
992 | 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"/> |
995 | 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"/> |
996 | 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"/> |
997 | 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"/> |
999 | 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"/> |
1000 | 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"/> |
1002 | 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"/> |
1003 | 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"/> |
1004 | 272 | <images/> | 170 | <images/> |
1005 | 273 | </stylesheet> | 171 | </stylesheet> |
1006 | 274 | <story> | 172 | <story> |
1088 | 275 | <pto> | 173 | <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para> |
1008 | 276 | <pto_header> | ||
1009 | 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')]] | ||
1010 | 278 | <tr> | ||
1011 | 279 | <td> | ||
1012 | 280 | <para style="terp_tblheader_Details">Date</para> | ||
1013 | 281 | </td> | ||
1014 | 282 | <td> | ||
1015 | 283 | <para style="terp_tblheader_Details">Period</para> | ||
1016 | 284 | </td> | ||
1017 | 285 | <td> | ||
1018 | 286 | <para style="terp_tblheader_Details">JRNL</para> | ||
1019 | 287 | </td> | ||
1020 | 288 | <td> | ||
1021 | 289 | <para style="terp_tblheader_Details">Partner</para> | ||
1022 | 290 | </td> | ||
1023 | 291 | <td> | ||
1024 | 292 | <para style="terp_tblheader_Details">Ref</para> | ||
1025 | 293 | </td> | ||
1026 | 294 | <td> | ||
1027 | 295 | <para style="terp_tblheader_Details">Move</para> | ||
1028 | 296 | </td> | ||
1029 | 297 | <td> | ||
1030 | 298 | <para style="terp_tblheader_Details">Entry Label</para> | ||
1031 | 299 | </td> | ||
1032 | 300 | <td> | ||
1033 | 301 | <para style="terp_tblheader_Details">Counterpart</para> | ||
1034 | 302 | </td> | ||
1035 | 303 | <td> | ||
1036 | 304 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
1037 | 305 | </td> | ||
1038 | 306 | <td> | ||
1039 | 307 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
1040 | 308 | </td> | ||
1041 | 309 | <td> | ||
1042 | 310 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
1043 | 311 | </td> | ||
1044 | 312 | <td> | ||
1045 | 313 | <para style="terp_tblheader_Details_Right">Currency</para> | ||
1046 | 314 | </td> | ||
1047 | 315 | </tr> | ||
1048 | 316 | </blockTable> | ||
1049 | 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') ]] | ||
1050 | 318 | <tr> | ||
1051 | 319 | <td> | ||
1052 | 320 | <para style="terp_tblheader_Details">Date</para> | ||
1053 | 321 | </td> | ||
1054 | 322 | <td> | ||
1055 | 323 | <para style="terp_tblheader_Details">Period</para> | ||
1056 | 324 | </td> | ||
1057 | 325 | <td> | ||
1058 | 326 | <para style="terp_tblheader_Details">JRNL</para> | ||
1059 | 327 | </td> | ||
1060 | 328 | <td> | ||
1061 | 329 | <para style="terp_tblheader_Details">Partner</para> | ||
1062 | 330 | </td> | ||
1063 | 331 | <td> | ||
1064 | 332 | <para style="terp_tblheader_Details">Ref</para> | ||
1065 | 333 | </td> | ||
1066 | 334 | <td> | ||
1067 | 335 | <para style="terp_tblheader_Details">Move</para> | ||
1068 | 336 | </td> | ||
1069 | 337 | <td> | ||
1070 | 338 | <para style="terp_tblheader_Details">Entry Label</para> | ||
1071 | 339 | </td> | ||
1072 | 340 | <td> | ||
1073 | 341 | <para style="terp_tblheader_Details">Counterpart</para> | ||
1074 | 342 | </td> | ||
1075 | 343 | <td> | ||
1076 | 344 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
1077 | 345 | </td> | ||
1078 | 346 | <td> | ||
1079 | 347 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
1080 | 348 | </td> | ||
1081 | 349 | <td> | ||
1082 | 350 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
1083 | 351 | </td> | ||
1084 | 352 | </tr> | ||
1085 | 353 | </blockTable> | ||
1086 | 354 | </pto_header> | ||
1087 | 355 | <para style="terp_default_7">[[ repeatIn(objects, 'a') ]]</para> | ||
1089 | 356 | <para style="terp_header_Centre">General Ledger</para> | 174 | <para style="terp_header_Centre">General Ledger</para> |
1091 | 357 | <para style="terp_default_7"> | 175 | <para style="terp_default_8"> |
1092 | 358 | <font color="white"> </font> | 176 | <font color="white"> </font> |
1093 | 359 | </para> | 177 | </para> |
1095 | 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"> |
1096 | 361 | <tr> | 179 | <tr> |
1097 | 362 | <td> | 180 | <td> |
1098 | 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> |
1099 | @@ -383,99 +201,59 @@ | |||
1100 | 383 | </td> | 201 | </td> |
1101 | 384 | </tr> | 202 | </tr> |
1102 | 385 | </blockTable> | 203 | </blockTable> |
1104 | 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"> |
1105 | 387 | <tr> | 205 | <tr> |
1106 | 388 | <td> | 206 | <td> |
1166 | 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> |
1167 | 390 | </td> | 208 | </td> |
1168 | 391 | <td> | 209 | <td> |
1169 | 392 | <para style="terp_default_Centre_7">[[ get_fiscalyear(data) or '' ]]</para> | 210 | <para style="terp_default_Centre_8">[[ get_fiscalyear(data) or '' ]]</para> |
1170 | 393 | </td> | 211 | </td> |
1171 | 394 | <td> | 212 | <td> |
1172 | 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> |
1173 | 396 | </td> | 214 | </td> |
1174 | 397 | <td> | 215 | <td> |
1175 | 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> |
1176 | 399 | </td> | 217 | </td> |
1177 | 400 | <td> | 218 | <td> |
1178 | 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> |
1179 | 402 | <blockTable colWidths="58.0,58.0" style="Table3">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]] | 220 | <para style="terp_default_Centre_8"> |
1180 | 403 | <tr> | 221 | <font color="white"> </font> |
1181 | 404 | <td> | 222 | </para> |
1182 | 405 | <para style="terp_tblheader_General_Centre">Start Date</para> | 223 | </td> |
1183 | 406 | </td> | 224 | <td> |
1184 | 407 | <td> | 225 | <para style="terp_default_Centre_8">[[ get_sortby(data) ]]</para> |
1185 | 408 | <para style="terp_tblheader_General_Centre">End Date</para> | 226 | </td> |
1186 | 409 | </td> | 227 | <td> |
1187 | 410 | </tr> | 228 | <para style="terp_default_Centre_8">[[ get_target_move(data) ]]</para> |
1129 | 411 | </blockTable> | ||
1130 | 412 | <blockTable colWidths="58.0,58.0" style="Table4">[[ get_filter(data)=='Date' or removeParentNode('blockTable') ]] | ||
1131 | 413 | <tr> | ||
1132 | 414 | <td> | ||
1133 | 415 | <para style="terp_default_Centre_7">[[ formatLang(get_start_date(data),date=True) ]]</para> | ||
1134 | 416 | </td> | ||
1135 | 417 | <td> | ||
1136 | 418 | <para style="terp_default_Centre_7">[[ formatLang(get_end_date(data),date=True) ]]</para> | ||
1137 | 419 | </td> | ||
1138 | 420 | </tr> | ||
1139 | 421 | </blockTable> | ||
1140 | 422 | <blockTable colWidths="58.0,58.0" style="Table5">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]] | ||
1141 | 423 | <tr> | ||
1142 | 424 | <td> | ||
1143 | 425 | <para style="terp_tblheader_General_Centre">Start Period</para> | ||
1144 | 426 | </td> | ||
1145 | 427 | <td> | ||
1146 | 428 | <para style="terp_tblheader_General_Centre">End Period</para> | ||
1147 | 429 | </td> | ||
1148 | 430 | </tr> | ||
1149 | 431 | </blockTable> | ||
1150 | 432 | <blockTable colWidths="58.0,58.0" style="Table6">[[ get_filter(data)=='Periods' or removeParentNode('blockTable') ]] | ||
1151 | 433 | <tr> | ||
1152 | 434 | <td> | ||
1153 | 435 | <para style="terp_default_Centre_7">[[ get_start_period(data) or removeParentNode('para') ]]</para> | ||
1154 | 436 | </td> | ||
1155 | 437 | <td> | ||
1156 | 438 | <para style="terp_default_Centre_7">[[ get_end_period(data) or removeParentNode('para') ]]</para> | ||
1157 | 439 | </td> | ||
1158 | 440 | </tr> | ||
1159 | 441 | </blockTable> | ||
1160 | 442 | </td> | ||
1161 | 443 | <td> | ||
1162 | 444 | <para style="terp_default_Centre_7">[[ get_sortby(data) ]]</para> | ||
1163 | 445 | </td> | ||
1164 | 446 | <td> | ||
1165 | 447 | <para style="terp_default_Centre_7">[[ get_target_move(data) ]]</para> | ||
1188 | 448 | </td> | 229 | </td> |
1189 | 449 | </tr> | 230 | </tr> |
1190 | 450 | </blockTable> | 231 | </blockTable> |
1193 | 451 | <para style="terp_default_7"> | 232 | <para style="terp_default_8"> |
1194 | 452 | <font color="white"> </font> | 233 | <font color="white"> </font> |
1195 | 453 | </para> | 234 | </para> |
1197 | 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"> |
1198 | 455 | <tr> | 236 | <tr> |
1199 | 456 | <td> | 237 | <td> |
1200 | 457 | <para style="terp_tblheader_Details">Date</para> | 238 | <para style="terp_tblheader_Details">Date</para> |
1201 | 458 | </td> | 239 | </td> |
1202 | 459 | <td> | 240 | <td> |
1207 | 460 | <para style="terp_tblheader_Details">Period</para> | 241 | <para style="terp_tblheader_Details">JNRL</para> |
1204 | 461 | </td> | ||
1205 | 462 | <td> | ||
1206 | 463 | <para style="terp_tblheader_Details">JRNL</para> | ||
1208 | 464 | </td> | 242 | </td> |
1209 | 465 | <td> | 243 | <td> |
1210 | 466 | <para style="terp_tblheader_Details">Partner</para> | 244 | <para style="terp_tblheader_Details">Partner</para> |
1211 | 467 | </td> | 245 | </td> |
1212 | 468 | <td> | 246 | <td> |
1214 | 469 | <para style="terp_tblheader_Details">Ref</para> | 247 | <para style="terp_tblheader_Details_Centre">Ref</para> |
1215 | 470 | </td> | 248 | </td> |
1216 | 471 | <td> | 249 | <td> |
1218 | 472 | <para style="terp_tblheader_Details">Move</para> | 250 | <para style="terp_tblheader_Details_Centre">Move</para> |
1219 | 473 | </td> | 251 | </td> |
1220 | 474 | <td> | 252 | <td> |
1221 | 475 | <para style="terp_tblheader_Details">Entry Label</para> | 253 | <para style="terp_tblheader_Details">Entry Label</para> |
1222 | 476 | </td> | 254 | </td> |
1223 | 477 | <td> | 255 | <td> |
1225 | 478 | <para style="terp_tblheader_Details">Counterpart</para> | 256 | <para style="terp_tblheader_Details_Centre">Counterpart</para> |
1226 | 479 | </td> | 257 | </td> |
1227 | 480 | <td> | 258 | <td> |
1228 | 481 | <para style="terp_tblheader_Details_Right">Debit</para> | 259 | <para style="terp_tblheader_Details_Right">Debit</para> |
1229 | @@ -492,95 +270,89 @@ | |||
1230 | 492 | </tr> | 270 | </tr> |
1231 | 493 | </blockTable> | 271 | </blockTable> |
1232 | 494 | <section> | 272 | <section> |
1235 | 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> |
1236 | 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"> |
1237 | 497 | <tr> | 275 | <tr> |
1238 | 498 | <td> | 276 | <td> |
1252 | 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> |
1253 | 500 | </td> | 278 | </td> |
1254 | 501 | <td> | 279 | <td> |
1255 | 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> |
1256 | 503 | </td> | 281 | </td> |
1257 | 504 | <td> | 282 | <td> |
1258 | 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> |
1259 | 506 | </td> | 284 | </td> |
1260 | 507 | <td> | 285 | <td> |
1261 | 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> |
1262 | 509 | </td> | 287 | </td> |
1263 | 510 | <td> | 288 | <td> |
1264 | 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> |
1265 | 512 | </td> | 290 | </td> |
1266 | 513 | </tr> | 291 | </tr> |
1267 | 514 | </blockTable> | 292 | </blockTable> |
1268 | 515 | <section> | 293 | <section> |
1271 | 516 | <para style="terp_default_7">[[ repeatIn(lines(o), 'line') ]]</para> | 294 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
1272 | 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"> |
1273 | 518 | <tr> | 296 | <tr> |
1274 | 519 | <td> | 297 | <td> |
1309 | 520 | <para style="terp_default_7">[[ formatLang(line['ldate'],date=True) ]]</para> | 298 | <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para> |
1310 | 521 | </td> | 299 | </td> |
1311 | 522 | <td> | 300 | <td> |
1312 | 523 | <para style="terp_default_7">[[ line['period_code'] ]]</para> | 301 | <para style="terp_default_8">[[ line['lcode'] ]]</para> |
1313 | 524 | </td> | 302 | </td> |
1314 | 525 | <td> | 303 | <td> |
1315 | 526 | <para style="terp_default_7">[[ line['lcode'] ]]</para> | 304 | <para style="terp_default_8">[[ line['partner_name'] ]]</para> |
1316 | 527 | </td> | 305 | </td> |
1317 | 528 | <td> | 306 | <td> |
1318 | 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> |
1319 | 530 | </td> | 308 | </td> |
1320 | 531 | <td> | 309 | <td> |
1321 | 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> |
1322 | 533 | </td> | 311 | </td> |
1323 | 534 | <td> | 312 | <td> |
1324 | 535 | <para style="terp_default_7">[[ line['move'] ]]</para> | 313 | <para style="terp_default_8">[[ line['lname'] ]]</para> |
1325 | 536 | </td> | 314 | </td> |
1326 | 537 | <td> | 315 | <td> |
1327 | 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> |
1328 | 539 | </td> | 317 | </td> |
1329 | 540 | <td> | 318 | <td> |
1330 | 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> |
1331 | 542 | </td> | 320 | </td> |
1332 | 543 | <td> | 321 | <td> |
1333 | 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> |
1334 | 545 | </td> | 323 | </td> |
1335 | 546 | <td> | 324 | <td> |
1336 | 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> |
1337 | 548 | </td> | 326 | </td> |
1338 | 549 | <td> | 327 | <td> |
1339 | 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> |
1306 | 551 | </td> | ||
1307 | 552 | <td> | ||
1308 | 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> | ||
1340 | 554 | </td> | 329 | </td> |
1341 | 555 | </tr> | 330 | </tr> |
1342 | 556 | </blockTable> | 331 | </blockTable> |
1343 | 557 | </section> | 332 | </section> |
1344 | 558 | </section> | 333 | </section> |
1346 | 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"> |
1347 | 560 | <tr> | 335 | <tr> |
1348 | 561 | <td> | 336 | <td> |
1356 | 562 | <para style="terp_tblheader_Details">Date</para> | 337 | <para style="terp_tblheader_Details">[[ removeParentNode('blockTable') ]]</para> |
1357 | 563 | </td> | 338 | </td> |
1358 | 564 | <td> | 339 | <td> |
1359 | 565 | <para style="terp_tblheader_Details">Period</para> | 340 | <para style="terp_tblheader_Details">JNRL</para> |
1353 | 566 | </td> | ||
1354 | 567 | <td> | ||
1355 | 568 | <para style="terp_tblheader_Details">JRNL</para> | ||
1360 | 569 | </td> | 341 | </td> |
1361 | 570 | <td> | 342 | <td> |
1362 | 571 | <para style="terp_tblheader_Details">Partner</para> | 343 | <para style="terp_tblheader_Details">Partner</para> |
1363 | 572 | </td> | 344 | </td> |
1364 | 573 | <td> | 345 | <td> |
1366 | 574 | <para style="terp_tblheader_Details">Ref</para> | 346 | <para style="terp_tblheader_Details_Centre">Ref</para> |
1367 | 575 | </td> | 347 | </td> |
1368 | 576 | <td> | 348 | <td> |
1370 | 577 | <para style="terp_tblheader_Details">Move</para> | 349 | <para style="terp_tblheader_Details_Centre">Move</para> |
1371 | 578 | </td> | 350 | </td> |
1372 | 579 | <td> | 351 | <td> |
1373 | 580 | <para style="terp_tblheader_Details">Entry Label</para> | 352 | <para style="terp_tblheader_Details">Entry Label</para> |
1374 | 581 | </td> | 353 | </td> |
1375 | 582 | <td> | 354 | <td> |
1377 | 583 | <para style="terp_tblheader_Details">Counterpart</para> | 355 | <para style="terp_tblheader_Details_Centre">Counterpart</para> |
1378 | 584 | </td> | 356 | </td> |
1379 | 585 | <td> | 357 | <td> |
1380 | 586 | <para style="terp_tblheader_Details_Right">Debit</para> | 358 | <para style="terp_tblheader_Details_Right">Debit</para> |
1381 | @@ -594,64 +366,64 @@ | |||
1382 | 594 | </tr> | 366 | </tr> |
1383 | 595 | </blockTable> | 367 | </blockTable> |
1384 | 596 | <section> | 368 | <section> |
1387 | 597 | <para style="Standard">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> | 369 | <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> |
1388 | 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"> |
1389 | 599 | <tr> | 371 | <tr> |
1390 | 600 | <td> | 372 | <td> |
1401 | 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> |
1402 | 602 | </td> | 374 | </td> |
1403 | 603 | <td> | 375 | <td> |
1404 | 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> |
1405 | 605 | </td> | 377 | </td> |
1406 | 606 | <td> | 378 | <td> |
1407 | 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> |
1408 | 608 | </td> | 380 | </td> |
1409 | 609 | <td> | 381 | <td> |
1410 | 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> |
1411 | 611 | </td> | 383 | </td> |
1412 | 612 | </tr> | 384 | </tr> |
1413 | 613 | </blockTable> | 385 | </blockTable> |
1414 | 614 | <section> | 386 | <section> |
1417 | 615 | <para style="Standard">[[ repeatIn(lines(o), 'line') ]]</para> | 387 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
1418 | 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"> |
1419 | 617 | <tr> | 389 | <tr> |
1420 | 618 | <td> | 390 | <td> |
1452 | 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> |
1453 | 620 | </td> | 392 | </td> |
1454 | 621 | <td> | 393 | <td> |
1455 | 622 | <para style="terp_default_7">[[ line['period_code'] ]]</para> | 394 | <para style="terp_default_8">[[ line['lcode'] ]]</para> |
1456 | 623 | </td> | 395 | </td> |
1457 | 624 | <td> | 396 | <td> |
1458 | 625 | <para style="terp_default_7">[[ line['lcode'] ]]</para> | 397 | <para style="terp_default_8">[[ line['partner_name'] ]]</para> |
1459 | 626 | </td> | 398 | </td> |
1460 | 627 | <td> | 399 | <td> |
1461 | 628 | <para style="terp_default_7">[[ strip_name(line['partner_name'],24) ]]</para> | 400 | <para style="terp_default_8">[[ line['lref'] ]]</para> |
1462 | 629 | </td> | 401 | </td> |
1463 | 630 | <td> | 402 | <td> |
1464 | 631 | <para style="terp_default_7">[[ strip_name(line['lref'],21) ]]</para> | 403 | <para style="terp_default_8">[[ line['move'] ]]</para> |
1465 | 632 | </td> | 404 | </td> |
1466 | 633 | <td> | 405 | <td> |
1467 | 634 | <para style="terp_default_7">[[ line['move'] ]]</para> | 406 | <para style="terp_default_8">[[ line['lname'] ]]</para> |
1468 | 635 | </td> | 407 | </td> |
1469 | 636 | <td> | 408 | <td> |
1470 | 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> |
1471 | 638 | </td> | 410 | </td> |
1472 | 639 | <td> | 411 | <td> |
1473 | 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> |
1474 | 641 | </td> | 413 | </td> |
1475 | 642 | <td> | 414 | <td> |
1476 | 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> |
1477 | 644 | </td> | 416 | </td> |
1478 | 645 | <td> | 417 | <td> |
1479 | 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> |
1449 | 647 | </td> | ||
1450 | 648 | <td> | ||
1451 | 649 | <para style="terp_default_Right_7">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para> | ||
1480 | 650 | </td> | 419 | </td> |
1481 | 651 | </tr> | 420 | </tr> |
1482 | 652 | </blockTable> | 421 | </blockTable> |
1483 | 422 | <para style="terp_default_2"> | ||
1484 | 423 | <font color="white"> </font> | ||
1485 | 424 | </para> | ||
1486 | 653 | </section> | 425 | </section> |
1487 | 654 | </section> | 426 | </section> |
1488 | 655 | </pto> | ||
1489 | 656 | </story> | 427 | </story> |
1490 | 657 | </document> | 428 | </document> |
1491 | 429 | |||
1492 | 658 | 430 | ||
1493 | === modified file 'account/report/account_general_ledger_landscape.sxw' | |||
1494 | 659 | Binary 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 | 431 | Binary 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 |
1495 | === added file 'account/report/account_general_ledger_xls.mako' | |||
1496 | --- account/report/account_general_ledger_xls.mako 1970-01-01 00:00:00 +0000 | |||
1497 | +++ account/report/account_general_ledger_xls.mako 2013-12-20 09:30:16 +0000 | |||
1498 | @@ -0,0 +1,279 @@ | |||
1499 | 1 | <?xml version="1.0"?> | ||
1500 | 2 | <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" | ||
1501 | 3 | xmlns:o="urn:schemas-microsoft-com:office:office" | ||
1502 | 4 | xmlns:x="urn:schemas-microsoft-com:office:excel" | ||
1503 | 5 | xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" | ||
1504 | 6 | xmlns:html="http://www.w3.org/TR/REC-html40"> | ||
1505 | 7 | <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> | ||
1506 | 8 | <Title>General Ledger</Title> | ||
1507 | 9 | </DocumentProperties> | ||
1508 | 10 | <Styles> | ||
1509 | 11 | <Style ss:ID="ssCell"> | ||
1510 | 12 | <Alignment ss:Vertical="Top" ss:WrapText="1"/> | ||
1511 | 13 | </Style> | ||
1512 | 14 | <Style ss:ID="ssH"> | ||
1513 | 15 | <Alignment ss:Horizontal="Center" ss:Vertical="Center" ss:WrapText="1"/> | ||
1514 | 16 | <Font ss:Bold="1" /> | ||
1515 | 17 | <Borders> | ||
1516 | 18 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1517 | 19 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1518 | 20 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1519 | 21 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1520 | 22 | </Borders> | ||
1521 | 23 | </Style> | ||
1522 | 24 | <Style ss:ID="ssBorder"> | ||
1523 | 25 | <Alignment ss:Vertical="Center" ss:WrapText="1"/> | ||
1524 | 26 | <Borders> | ||
1525 | 27 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1526 | 28 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1527 | 29 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1528 | 30 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1529 | 31 | </Borders> | ||
1530 | 32 | </Style> | ||
1531 | 33 | <Style ss:ID="ssBorderDate"> | ||
1532 | 34 | <Alignment ss:Vertical="Center" ss:WrapText="1"/> | ||
1533 | 35 | <Borders> | ||
1534 | 36 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1535 | 37 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1536 | 38 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1537 | 39 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1538 | 40 | </Borders> | ||
1539 | 41 | <NumberFormat ss:Format="Short Date" /> | ||
1540 | 42 | </Style> | ||
1541 | 43 | <Style ss:ID="ssNumber"> | ||
1542 | 44 | <Borders> | ||
1543 | 45 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1544 | 46 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1545 | 47 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1546 | 48 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1547 | 49 | </Borders> | ||
1548 | 50 | <Alignment ss:Horizontal="Right" ss:Vertical="Center" ss:WrapText="1"/> | ||
1549 | 51 | <NumberFormat ss:Format="#,##0.00"/> | ||
1550 | 52 | </Style> | ||
1551 | 53 | <Style ss:ID="ssHeader"> | ||
1552 | 54 | <Alignment ss:Vertical="Top" ss:WrapText="1"/> | ||
1553 | 55 | <Borders> | ||
1554 | 56 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1555 | 57 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1556 | 58 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1557 | 59 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1558 | 60 | </Borders> | ||
1559 | 61 | </Style> | ||
1560 | 62 | <Style ss:ID="ssAccountLine"> | ||
1561 | 63 | <Alignment ss:Bottom="Top" ss:WrapText="1"/> | ||
1562 | 64 | <Font ss:Size="8" ss:Italic="1"/> | ||
1563 | 65 | <Borders> | ||
1564 | 66 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1565 | 67 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1566 | 68 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1567 | 69 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1568 | 70 | </Borders> | ||
1569 | 71 | </Style> | ||
1570 | 72 | <Style ss:ID="ssAccountLine2"> | ||
1571 | 73 | <Alignment ss:Bottom="Top" ss:WrapText="1"/> | ||
1572 | 74 | <Font ss:Size="8"/> | ||
1573 | 75 | <Borders> | ||
1574 | 76 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1575 | 77 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1576 | 78 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1577 | 79 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1578 | 80 | </Borders> | ||
1579 | 81 | </Style> | ||
1580 | 82 | <Style ss:ID="ssAccountLineNumber"> | ||
1581 | 83 | <Alignment ss:Horizontal="Right" ss:Vertical="Bottom" ss:WrapText="1"/> | ||
1582 | 84 | <Font ss:Size="8"/> | ||
1583 | 85 | <Borders> | ||
1584 | 86 | <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1585 | 87 | <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1586 | 88 | <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1587 | 89 | <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1" /> | ||
1588 | 90 | </Borders> | ||
1589 | 91 | <NumberFormat ss:Format="#,##0.00"/> | ||
1590 | 92 | </Style> | ||
1591 | 93 | </Styles> | ||
1592 | 94 | <Worksheet ss:Name="Sheet"> | ||
1593 | 95 | <% | ||
1594 | 96 | max = 11 | ||
1595 | 97 | if data['model'] == 'account.account': | ||
1596 | 98 | header_company_or_chart_of_account = 'Company' | ||
1597 | 99 | else: | ||
1598 | 100 | header_company_or_chart_of_account = 'Chart of Account' | ||
1599 | 101 | if 'all_journals' in data['form']: | ||
1600 | 102 | journals = 'All Journals' | ||
1601 | 103 | else: | ||
1602 | 104 | journals = ', '.join([lt or '' for lt in get_journal(data)]) | ||
1603 | 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' | ||
1604 | 106 | prop_instances_list = get_prop_instances(data) | ||
1605 | 107 | if prop_instances_list: | ||
1606 | 108 | prop_instances = ', '.join([lt or '' for lt in get_prop_instances(data)]) | ||
1607 | 109 | else: | ||
1608 | 110 | prop_instances = 'All Instances' | ||
1609 | 111 | %> | ||
1610 | 112 | <Table x:FullColumns="1" x:FullRows="1"> | ||
1611 | 113 | <Column ss:AutoFitWidth="1" ss:Width="64" /> | ||
1612 | 114 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1613 | 115 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1614 | 116 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1615 | 117 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1616 | 118 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1617 | 119 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1618 | 120 | <Column ss:AutoFitWidth="1" ss:Width="64" /> | ||
1619 | 121 | <Column ss:AutoFitWidth="1" ss:Width="64" /> | ||
1620 | 122 | <Column ss:AutoFitWidth="1" ss:Width="64" /> | ||
1621 | 123 | <Column ss:AutoFitWidth="1" ss:Width="50" /> | ||
1622 | 124 | <Row> | ||
1623 | 125 | <Cell ss:StyleID="ssH"><Data ss:Type="String">${header_company_or_chart_of_account}</Data></Cell> | ||
1624 | 126 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Fiscal Year</Data></Cell> | ||
1625 | 127 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Journals</Data></Cell> | ||
1626 | 128 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Display Account</Data></Cell> | ||
1627 | 129 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Filter By ${(get_filter(data) or '')|x}</Data></Cell> | ||
1628 | 130 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Entries Sorted By</Data></Cell> | ||
1629 | 131 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Target Moves</Data></Cell> | ||
1630 | 132 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Proprietary Instances</Data></Cell> | ||
1631 | 133 | <Cell ss:StyleID="ssCell"></Cell> | ||
1632 | 134 | <Cell ss:StyleID="ssCell"></Cell> | ||
1633 | 135 | <Cell ss:StyleID="ssCell"></Cell> | ||
1634 | 136 | </Row> | ||
1635 | 137 | % for a in objects: | ||
1636 | 138 | <Row> | ||
1637 | 139 | <Cell ss:StyleID="ssHeader"> | ||
1638 | 140 | <Data ss:Type="String">${(get_account(data) or '')|x}</Data> | ||
1639 | 141 | </Cell> | ||
1640 | 142 | <Cell ss:StyleID="ssHeader"> | ||
1641 | 143 | <Data ss:Type="String">${(get_fiscalyear(data) or '')|x}</Data> | ||
1642 | 144 | </Cell> | ||
1643 | 145 | <Cell ss:StyleID="ssHeader"> | ||
1644 | 146 | <Data ss:Type="String">${(journals or '')|x}</Data> | ||
1645 | 147 | </Cell> | ||
1646 | 148 | <Cell ss:StyleID="ssHeader"> | ||
1647 | 149 | <Data ss:Type="String">${(display_account or '')|x}</Data> | ||
1648 | 150 | </Cell> | ||
1649 | 151 | <Cell ss:StyleID="ssHeader"> | ||
1650 | 152 | <Data ss:Type="String">${(get_filter_info(data) or '')|x}</Data> | ||
1651 | 153 | </Cell> | ||
1652 | 154 | <Cell ss:StyleID="ssHeader"> | ||
1653 | 155 | <Data ss:Type="String">${(get_sortby(data) or '')|x}</Data> | ||
1654 | 156 | </Cell> | ||
1655 | 157 | <Cell ss:StyleID="ssHeader"> | ||
1656 | 158 | <Data ss:Type="String">${(get_target_move(data) or '')|x}</Data> | ||
1657 | 159 | </Cell> | ||
1658 | 160 | <Cell ss:StyleID="ssHeader"> | ||
1659 | 161 | <Data ss:Type="String">${(prop_instances or '')|x}</Data> | ||
1660 | 162 | </Cell> | ||
1661 | 163 | <Cell ss:StyleID="ssCell"></Cell> | ||
1662 | 164 | <Cell ss:StyleID="ssCell"></Cell> | ||
1663 | 165 | <Cell ss:StyleID="ssCell"></Cell> | ||
1664 | 166 | </Row> | ||
1665 | 167 | <Row> | ||
1666 | 168 | <Cell></Cell> | ||
1667 | 169 | <Cell></Cell> | ||
1668 | 170 | <Cell></Cell> | ||
1669 | 171 | <Cell></Cell> | ||
1670 | 172 | <Cell></Cell> | ||
1671 | 173 | <Cell></Cell> | ||
1672 | 174 | <Cell></Cell> | ||
1673 | 175 | <Cell></Cell> | ||
1674 | 176 | <Cell></Cell> | ||
1675 | 177 | <Cell></Cell> | ||
1676 | 178 | <Cell></Cell> | ||
1677 | 179 | </Row> | ||
1678 | 180 | <Row> | ||
1679 | 181 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Date</Data></Cell> | ||
1680 | 182 | <Cell ss:StyleID="ssH"><Data ss:Type="String">JRNL</Data></Cell> | ||
1681 | 183 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Partner</Data></Cell> | ||
1682 | 184 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Ref</Data></Cell> | ||
1683 | 185 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Move</Data></Cell> | ||
1684 | 186 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Entry Label</Data></Cell> | ||
1685 | 187 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Counter part</Data></Cell> | ||
1686 | 188 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Debit</Data></Cell> | ||
1687 | 189 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Credit</Data></Cell> | ||
1688 | 190 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Balance</Data></Cell> | ||
1689 | 191 | <Cell ss:StyleID="ssH"><Data ss:Type="String">Currency</Data></Cell> | ||
1690 | 192 | </Row> | ||
1691 | 193 | % for o in get_children_accounts(a): | ||
1692 | 194 | <Row> | ||
1693 | 195 | <Cell ss:StyleID="ssBorder"> | ||
1694 | 196 | </Cell> | ||
1695 | 197 | <Cell ss:StyleID="ssBorder"> | ||
1696 | 198 | <Data ss:Type="String">${(o.code or '')|x}</Data> | ||
1697 | 199 | </Cell> | ||
1698 | 200 | <Cell ss:StyleID="ssBorder" ss:MergeAcross="4"> | ||
1699 | 201 | <Data ss:Type="String">${(o.name or '')|x}</Data> | ||
1700 | 202 | </Cell> | ||
1701 | 203 | <Cell ss:StyleID="ssNumber"> | ||
1702 | 204 | <Data ss:Type="Number">${sum_debit_account(o)}</Data> | ||
1703 | 205 | </Cell> | ||
1704 | 206 | <Cell ss:StyleID="ssNumber"> | ||
1705 | 207 | <Data ss:Type="Number">${sum_credit_account(o)}</Data> | ||
1706 | 208 | </Cell> | ||
1707 | 209 | <Cell ss:StyleID="ssNumber"> | ||
1708 | 210 | <Data ss:Type="Number">${sum_balance_account(o)}</Data> | ||
1709 | 211 | </Cell> | ||
1710 | 212 | <Cell ss:StyleID="ssBorder"> | ||
1711 | 213 | <Data ss:Type="String">${get_output_currency_code(data)}</Data> | ||
1712 | 214 | </Cell> | ||
1713 | 215 | </Row> | ||
1714 | 216 | % for line in lines(o): | ||
1715 | 217 | <Row> | ||
1716 | 218 | <Cell ss:StyleID="ssAccountLine"> | ||
1717 | 219 | <Data ss:Type="String">${(formatLang(line['ldate'],date=True)) or ''}</Data> | ||
1718 | 220 | </Cell> | ||
1719 | 221 | <Cell ss:StyleID="ssAccountLine"> | ||
1720 | 222 | <Data ss:Type="String">${(line['lcode'] or '')|x}</Data> | ||
1721 | 223 | </Cell> | ||
1722 | 224 | <Cell ss:StyleID="ssAccountLine"> | ||
1723 | 225 | <Data ss:Type="String">${(line['partner_name'] or '')|x}</Data> | ||
1724 | 226 | </Cell> | ||
1725 | 227 | <Cell ss:StyleID="ssAccountLine"> | ||
1726 | 228 | <Data ss:Type="String">${(line['lref'] or '')|x}</Data> | ||
1727 | 229 | </Cell> | ||
1728 | 230 | <Cell ss:StyleID="ssAccountLine"> | ||
1729 | 231 | <Data ss:Type="String">${(line['move'] or '')|x}</Data> | ||
1730 | 232 | </Cell> | ||
1731 | 233 | <Cell ss:StyleID="ssAccountLine"> | ||
1732 | 234 | <Data ss:Type="String">${(line['lname'] or '')|x}</Data> | ||
1733 | 235 | </Cell> | ||
1734 | 236 | <Cell ss:StyleID="ssAccountLineNumber"> | ||
1735 | 237 | <Data ss:Type="Number">${((strip_name(line['line_corresp'].replace(', ',''),25)) or '')|x}</Data> | ||
1736 | 238 | </Cell> | ||
1737 | 239 | <Cell ss:StyleID="ssAccountLineNumber"> | ||
1738 | 240 | <Data ss:Type="Number">${get_line_debit(line)}</Data> | ||
1739 | 241 | </Cell> | ||
1740 | 242 | <Cell ss:StyleID="ssAccountLineNumber"> | ||
1741 | 243 | <Data ss:Type="Number">${get_line_credit(line)}</Data> | ||
1742 | 244 | </Cell> | ||
1743 | 245 | <Cell ss:StyleID="ssAccountLineNumber"> | ||
1744 | 246 | <Data ss:Type="Number">${get_line_balance(line)}</Data> | ||
1745 | 247 | </Cell> | ||
1746 | 248 | <Cell ss:StyleID="ssAccountLine2"> | ||
1747 | 249 | <Data ss:Type="String">${get_output_currency_code(data)}</Data> | ||
1748 | 250 | </Cell> | ||
1749 | 251 | </Row> | ||
1750 | 252 | % endfor | ||
1751 | 253 | % endfor | ||
1752 | 254 | % endfor | ||
1753 | 255 | </Table> | ||
1754 | 256 | <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> | ||
1755 | 257 | <PageSetup> | ||
1756 | 258 | <Layout x:Orientation="Landscape"/> | ||
1757 | 259 | <Header x:Data="&C&"Arial,Bold"&14General Ledger"/> | ||
1758 | 260 | <Footer x:Data="Page &P of &N"/> | ||
1759 | 261 | </PageSetup> | ||
1760 | 262 | <Print> | ||
1761 | 263 | <ValidPrinterInfo/> | ||
1762 | 264 | <PaperSizeIndex>9</PaperSizeIndex> | ||
1763 | 265 | <HorizontalResolution>600</HorizontalResolution> | ||
1764 | 266 | <VerticalResolution>600</VerticalResolution> | ||
1765 | 267 | </Print> | ||
1766 | 268 | <Selected/> | ||
1767 | 269 | <Panes> | ||
1768 | 270 | <Pane> | ||
1769 | 271 | <Number>3</Number> | ||
1770 | 272 | <ActiveRow>17</ActiveRow> | ||
1771 | 273 | </Pane> | ||
1772 | 274 | </Panes> | ||
1773 | 275 | <ProtectObjects>False</ProtectObjects> | ||
1774 | 276 | <ProtectScenarios>False</ProtectScenarios> | ||
1775 | 277 | </WorksheetOptions> | ||
1776 | 278 | </Worksheet> | ||
1777 | 279 | </Workbook> | ||
1778 | 0 | 280 | ||
1779 | === modified file 'account/wizard/account_report_general_ledger.py' | |||
1780 | --- account/wizard/account_report_general_ledger.py 2011-01-14 00:11:01 +0000 | |||
1781 | +++ account/wizard/account_report_general_ledger.py 2013-12-20 09:30:16 +0000 | |||
1782 | @@ -32,31 +32,79 @@ | |||
1783 | 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'), |
1784 | 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"), |
1785 | 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), |
1786 | 35 | 'output_currency': fields.many2one('res.currency', 'Output Currency', required=True), | ||
1787 | 36 | 'instance_ids': fields.many2many('msf.instance', 'account_report_general_ledger_instance_rel', 'instance_id', 'argl_id', 'Proprietary Instances'), | ||
1788 | 37 | #'export_format': fields.selection([('xls', 'Excel'), ('csv', 'CSV'), ('pdf', 'PDF')], string="Export format", required=True), | ||
1789 | 38 | 'export_format': fields.selection([('xls', 'Excel'), ('pdf', 'PDF')], string="Export format", required=True), | ||
1790 | 35 | } | 39 | } |
1791 | 40 | |||
1792 | 41 | def _get_journals(self, cr, uid, context=None): | ||
1793 | 42 | """exclude extra-accounting journals from this report (IKD, ODX).""" | ||
1794 | 43 | domain = [('type', 'not in', ['inkind', 'extra'])] | ||
1795 | 44 | return self.pool.get('account.journal').search(cr, uid, domain, context=context) | ||
1796 | 45 | |||
1797 | 36 | _defaults = { | 46 | _defaults = { |
1798 | 37 | 'landscape': True, | 47 | 'landscape': True, |
1799 | 38 | 'amount_currency': True, | 48 | 'amount_currency': True, |
1800 | 39 | 'sortby': 'sort_date', | 49 | 'sortby': 'sort_date', |
1801 | 40 | 'initial_balance': False, | 50 | 'initial_balance': False, |
1802 | 51 | 'amount_currency': True, | ||
1803 | 52 | 'export_format': 'pdf', | ||
1804 | 53 | 'journal_ids': _get_journals, # exclude extra-accounting journals from this report (IKD, ODX) | ||
1805 | 41 | } | 54 | } |
1806 | 55 | |||
1807 | 56 | def default_get(self, cr, uid, fields, context=None): | ||
1808 | 57 | res = super(account_report_general_ledger, self).default_get(cr, uid, fields, context=context) | ||
1809 | 58 | # get company default currency | ||
1810 | 59 | user = self.pool.get('res.users').browse(cr, uid, [uid], context=context) | ||
1811 | 60 | if user and user[0] and user[0].company_id: | ||
1812 | 61 | res['output_currency'] = user[0].company_id.currency_id.id | ||
1813 | 62 | return res | ||
1814 | 42 | 63 | ||
1815 | 43 | def onchange_fiscalyear(self, cr, uid, ids, fiscalyear=False, context=None): | 64 | def onchange_fiscalyear(self, cr, uid, ids, fiscalyear=False, context=None): |
1816 | 44 | res = {} | 65 | res = {} |
1817 | 45 | if not fiscalyear: | 66 | if not fiscalyear: |
1818 | 46 | res['value'] = {'initial_balance': False} | 67 | res['value'] = {'initial_balance': False} |
1819 | 47 | return res | 68 | return res |
1820 | 69 | |||
1821 | 70 | def remove_journals(self, cr, uid, ids, context=None): | ||
1822 | 71 | if ids: | ||
1823 | 72 | self.write(cr, uid, ids, { 'journal_ids': [(6, 0, [])] }, | ||
1824 | 73 | context=context) | ||
1825 | 74 | return {} | ||
1826 | 48 | 75 | ||
1827 | 49 | def _print_report(self, cr, uid, ids, data, context=None): | 76 | def _print_report(self, cr, uid, ids, data, context=None): |
1828 | 50 | if context is None: | 77 | if context is None: |
1829 | 51 | context = {} | 78 | context = {} |
1830 | 52 | data = self.pre_print_report(cr, uid, ids, data, context=context) | 79 | data = self.pre_print_report(cr, uid, ids, data, context=context) |
1832 | 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]) |
1833 | 54 | if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record | 81 | if not data['form']['fiscalyear_id']:# GTK client problem onchange does not consider in save record |
1834 | 55 | data['form'].update({'initial_balance': False}) | 82 | data['form'].update({'initial_balance': False}) |
1835 | 83 | if data['form']['journal_ids']: | ||
1836 | 84 | default_journals = self._get_journals(cr, uid, context=context) | ||
1837 | 85 | if default_journals: | ||
1838 | 86 | if len(default_journals) == len(data['form']['journal_ids']): | ||
1839 | 87 | data['form']['all_journals'] = True | ||
1840 | 88 | if data['form']['export_format'] \ | ||
1841 | 89 | and data['form']['export_format'] == 'xls': | ||
1842 | 90 | return { | ||
1843 | 91 | 'type': 'ir.actions.report.xml', | ||
1844 | 92 | 'report_name': 'account.general.ledger_xls', | ||
1845 | 93 | 'datas': data, | ||
1846 | 94 | } | ||
1847 | 56 | if data['form']['landscape']: | 95 | if data['form']['landscape']: |
1851 | 57 | return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger_landscape', 'datas': data} | 96 | return { |
1852 | 58 | return { 'type': 'ir.actions.report.xml', 'report_name': 'account.general.ledger', 'datas': data} | 97 | 'type': 'ir.actions.report.xml', |
1853 | 59 | 98 | 'report_name': 'account.general.ledger_landscape', | |
1854 | 99 | 'datas': data, | ||
1855 | 100 | } | ||
1856 | 101 | return { | ||
1857 | 102 | 'type': 'ir.actions.report.xml', | ||
1858 | 103 | 'report_name': 'account.general.ledger', | ||
1859 | 104 | 'datas': data, | ||
1860 | 105 | } | ||
1861 | 106 | |||
1862 | 107 | |||
1863 | 60 | account_report_general_ledger() | 108 | account_report_general_ledger() |
1864 | 61 | 109 | ||
1865 | 62 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 110 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
1866 | 63 | 111 | ||
1867 | === modified file 'account/wizard/account_report_general_ledger_view.xml' | |||
1868 | --- account/wizard/account_report_general_ledger_view.xml 2011-01-14 00:11:01 +0000 | |||
1869 | +++ account/wizard/account_report_general_ledger_view.xml 2013-12-20 09:30:16 +0000 | |||
1870 | @@ -16,11 +16,38 @@ | |||
1871 | 16 | <xpath expr="//field[@name='target_move']" position="after"> | 16 | <xpath expr="//field[@name='target_move']" position="after"> |
1872 | 17 | <field name="display_account"/> | 17 | <field name="display_account"/> |
1873 | 18 | <field name="sortby"/> | 18 | <field name="sortby"/> |
1874 | 19 | <field name="landscape"/> | ||
1875 | 20 | <field name="initial_balance" attrs="{'readonly':[('fiscalyear_id','=', False)]}"/> | 19 | <field name="initial_balance" attrs="{'readonly':[('fiscalyear_id','=', False)]}"/> |
1879 | 21 | <field name="amount_currency"/> | 20 | <newline/> |
1880 | 22 | <newline/> | 21 | <field name="export_format"/> |
1881 | 23 | </xpath> | 22 | <field name="landscape" attrs="{'invisible': [('export_format', '=', 'xls')]}"/> |
1882 | 23 | <newline/> | ||
1883 | 24 | <field name="output_currency" invisible="1" /> | ||
1884 | 25 | <field name="amount_currency" invisible="1" /> | ||
1885 | 26 | <newline/> | ||
1886 | 27 | <field name="instance_ids"> | ||
1887 | 28 | <tree noteditable="1" editable="top" string="Proprietary Instances"> | ||
1888 | 29 | <field name="code" /> | ||
1889 | 30 | <field name="name" /> | ||
1890 | 31 | </tree> | ||
1891 | 32 | </field> | ||
1892 | 33 | <newline/> | ||
1893 | 34 | </xpath> | ||
1894 | 35 | |||
1895 | 36 | <xpath expr="//field[@name='journal_ids']" position="replace"> | ||
1896 | 37 | <group col="4" colspan="4"> | ||
1897 | 38 | <button name="remove_journals" string="Remove all journals" type="object" colspan="1" /> | ||
1898 | 39 | <label string="" colspan="3" /> | ||
1899 | 40 | <field name="journal_ids" colspan="4" nolabel="1" noteditable="1"> | ||
1900 | 41 | <tree noteditable="1" editable="top" string="Account Journal"> | ||
1901 | 42 | <field name="instance_id" /> | ||
1902 | 43 | <field name="code" /> | ||
1903 | 44 | <field name="name" /> | ||
1904 | 45 | <field name="type" /> | ||
1905 | 46 | </tree> | ||
1906 | 47 | </field> | ||
1907 | 48 | </group> | ||
1908 | 49 | </xpath> | ||
1909 | 50 | |||
1910 | 24 | </data> | 51 | </data> |
1911 | 25 | </field> | 52 | </field> |
1912 | 26 | </record> | 53 | </record> |