Commit 7b347960 authored by Fabien Morin's avatar Fabien Morin

- remove some unused variable

- if slices are used, display the slice title in the printed payslip

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04e75aa7
......@@ -57,9 +57,6 @@
this script get all paysheet lines in the int_index order with all the amounts\n
displayed in the lisbox\n
\'\'\'\n
import pprint\n
precision = context.getPriceCurrencyValue().getQuantityPrecision()\n
\n
line_list = context.PaySheetTransaction_getMovementList(sort_on=[(\'int_index\',\n
\'ascending\')])\n
def addProperties(line, line_dict, property_list):\n
......@@ -132,10 +129,8 @@ return line_dict_list\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>pprint</string>
<string>_getattr_</string>
<string>context</string>
<string>precision</string>
<string>line_list</string>
<string>addProperties</string>
<string>line_dict_list</string>
......
......@@ -54,11 +54,6 @@
<item>
<key> <string>_body</string> </key>
<value> <string>translateString = context.Base_translateString\n
request = context.REQUEST\n
\n
# display only title line instead of description\n
use_line_title = request.get(\'use_line_title\', 0)\n
\n
model = context.getSpecialiseValue().getEffectiveModel(\\\n
start_date=context.getStartDate(), stop_date=context.getStopDate())\n
\n
......@@ -415,8 +410,6 @@ return unicodeDict(data_dict)\n
<string>_getattr_</string>
<string>context</string>
<string>translateString</string>
<string>request</string>
<string>use_line_title</string>
<string>model</string>
<string>getFieldAsLineList</string>
<string>getFieldAsString</string>
......
......@@ -477,9 +477,8 @@ AAA=</string> </value>
right_style_name python:\'Table_20_Contents_20_Right\'">\n
\n
<table:table-cell table:style-name=\'Tableau1.A3\' office:value-type=\'string\'>\n
<text:p text:style-name=\'Table_20_Contents\' tal:content=\'python:line_dict["title"]\' tal:attributes=\'text:style-name left_style_name\'>1</text:p>\n
<text:p text:style-name=\'Table_20_Contents\' tal:content=\'python:line_dict["slice"] is not None and "%s (%s)" %(line_dict["title"], line_dict["slice"]) or line_dict["title"]\' tal:attributes=\'text:style-name left_style_name\'>1</text:p>\n
</table:table-cell>\n
\n
<table:table-cell table:style-name=\'Tableau1.A3\'\n
office:value-type=\'float\'\n
tal:condition="python: line_dict[\'base\'] != None"\n
......
479
\ No newline at end of file
480
\ 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