Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
167597a2
Commit
167597a2
authored
Jun 08, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: make a macro for P&L report header
(Just moving code arround to prepare next commit)
parent
d0d0341c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
34 deletions
+38
-34
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_viewProfitAndLossReport.oot
...erp5_accounting/AccountModule_viewProfitAndLossReport.oot
+38
-34
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_viewProfitAndLossReport.oot
View file @
167597a2
...
...
@@ -127,6 +127,43 @@
<style:text-properties
fo:font-size=
'12pt'
/>
</style:style>
</office:automatic-styles>
<!-- }}} -->
<tal:block
metal:define-macro=
"report_header"
>
<!-- Title {{{ -->
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:number-rows-spanned=
'2'
table:number-columns-spanned=
'1'
office:value-type=
'string'
table:style-name=
'report-title'
>
<text:p
tal:content=
'python: context.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()'
/>
</table:table-cell>
<table:table-cell
table:number-rows-spanned=
'1'
table:number-columns-spanned=
'4'
office:value-type=
'string'
table:style-name=
'report-title'
>
<text:p
i18n:translate=
""
i18n:domain=
"ui"
>
Profit and Loss
</text:p>
</table:table-cell>
<table:covered-table-cell
table:number-columns-repeated=
'2'
/>
<table:covered-table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'1'
/>
</table:table-row>
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:style-name=
'ce1'
><text:p/></table:table-cell>
<table:table-cell
table:style-name=
'report-title-date'
table:number-rows-spanned=
'1'
table:number-columns-spanned=
'4'
>
<text:p
tal:content=
"python:date_formatter(at_date)"
>
Date
</text:p>
</table:table-cell>
<table:covered-table-cell
table:number-columns-repeated=
'2'
/>
<table:covered-table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'1'
/>
</table:table-row>
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:style-name=
'ce1'
/>
<table:table-cell
table:style-name=
'ce8'
/>
<table:table-cell/>
<table:table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'2'
/>
</table:table-row>
<!-- }}} -->
</tal:block>
<office:body>
<office:spreadsheet>
...
...
@@ -150,40 +187,7 @@
global level1_title python:'';
"
>
<!-- Title {{{ -->
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:number-rows-spanned=
'2'
table:number-columns-spanned=
'1'
office:value-type=
'string'
table:style-name=
'report-title'
>
<text:p
tal:content=
'python: context.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()'
/>
</table:table-cell>
<table:table-cell
table:number-rows-spanned=
'1'
table:number-columns-spanned=
'4'
office:value-type=
'string'
table:style-name=
'report-title'
>
<text:p
i18n:translate=
""
i18n:domain=
"ui"
>
Profit and Loss
</text:p>
</table:table-cell>
<table:covered-table-cell
table:number-columns-repeated=
'2'
/>
<table:covered-table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'1'
/>
</table:table-row>
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:style-name=
'ce1'
><text:p/></table:table-cell>
<table:table-cell
table:style-name=
'report-title-date'
table:number-rows-spanned=
'1'
table:number-columns-spanned=
'4'
>
<text:p
tal:content=
"python:date_formatter(at_date)"
>
Date
</text:p>
</table:table-cell>
<table:covered-table-cell
table:number-columns-repeated=
'2'
/>
<table:covered-table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'1'
/>
</table:table-row>
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:style-name=
'ce1'
/>
<table:table-cell
table:style-name=
'ce8'
/>
<table:table-cell/>
<table:table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'2'
/>
</table:table-row>
<!-- }}} -->
<tal:block
metal:use-macro=
"template/macros/report_header"
/>
<!-- Header {{{ -->
<table:table-header-rows>
<table:table-row
table:style-name=
'ro3'
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment