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
Labels
Merge Requests
142
Merge Requests
142
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Show 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,29 +127,8 @@
<style:text-properties
fo:font-size=
'12pt'
/>
</style:style>
</office:automatic-styles>
<!-- }}} -->
<office:body>
<office:spreadsheet>
<table:table
table:style-name=
'ta1'
table:print=
'false'
table:name=
'Expense'
tal:attributes=
"table:name portal/portal_categories/financial_section/expense/getTranslatedTitle"
>
<office:forms
form:apply-design-mode=
'false'
form:automatic-focus=
'false'
/>
<table:table-column
table:style-name=
'co1'
table:default-cell-style-name=
'report-title'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce7'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce1'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce1'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'report-column-title'
/>
<!-- Expense -->
<tal:block
tal:define=
"global total_current_period python: 0;
global total_previous_period python: 0;
global grand_total_current_period python: 0;
global grand_total_previous_period python: 0;
global level1_counter python: 0;
global level2_title python:'';
global level1_title python:'';
"
>
<tal:block
metal:define-macro=
"report_header"
>
<!-- Title {{{ -->
<table:table-row
table:style-name=
'ro2'
>
<table:table-cell
table:number-rows-spanned=
'2'
...
...
@@ -183,7 +162,32 @@
<table:table-cell
table:style-name=
'ce1'
table:number-columns-repeated=
'2'
/>
</table:table-row>
<!-- }}} -->
</tal:block>
<office:body>
<office:spreadsheet>
<table:table
table:style-name=
'ta1'
table:print=
'false'
table:name=
'Expense'
tal:attributes=
"table:name portal/portal_categories/financial_section/expense/getTranslatedTitle"
>
<office:forms
form:apply-design-mode=
'false'
form:automatic-focus=
'false'
/>
<table:table-column
table:style-name=
'co1'
table:default-cell-style-name=
'report-title'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce7'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce1'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'ce1'
/>
<table:table-column
table:style-name=
'co2'
table:default-cell-style-name=
'report-column-title'
/>
<!-- Expense -->
<tal:block
tal:define=
"global total_current_period python: 0;
global total_previous_period python: 0;
global grand_total_current_period python: 0;
global grand_total_previous_period python: 0;
global level1_counter python: 0;
global level2_title python:'';
global level1_title python:'';
"
>
<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