Commit a5ecf179 authored by Jérome Perrin's avatar Jérome Perrin

for profit and loss line, take expense and income from the current period only.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16582 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba6b2aac
......@@ -604,7 +604,7 @@ dQEAAAAA</string> </value>
-->\n
<tal:block tal:condition=\'python: cat_level_2.getId() == "net_profit"\'>\n
<table:table-cell\n
tal:define=\'value python: -getInventory(node_category=[node_category, "financial_section/income", "financial_section/expense"]);\n
tal:define=\'value python: -getInventory(node_category=[node_category]) - getInventoryIncomeAccount(node_category=["financial_section/income", "financial_section/expense"]);\n
global total_current_period python: total_current_period + value;\'\n
tal:attributes=\'office:value value;\n
office:value-type python:value and "float" or "text";\'\n
......@@ -656,7 +656,7 @@ dQEAAAAA</string> </value>
-->\n
<tal:block tal:condition=\'python: cat_level_3.getId() == "net_profit"\'>\n
<table:table-cell\n
tal:define=\'value python: -getInventory(node_category=[node_category, "financial_section/income", "financial_section/expense"]);\n
tal:define=\'value python: -getInventory(node_category=[node_category]) - getInventoryIncomeAccount(node_category=["financial_section/income", "financial_section/expense"]);\n
global total_current_period python: total_current_period + value;\'\n
tal:attributes=\'office:value value;\n
office:value-type python:value and "float" or "text";\'\n
......
419
\ No newline at end of file
420
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment