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

also export *_total_price in PaySheetTransaction_getLineListAsDict

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19736 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 687a0bd9
......@@ -80,7 +80,8 @@ def addProperties(line, line_dict, property_list):\n
\n
#XXX this is a hack wich should be removed when the OOoTemplate will be\n
# rewireted\n
if line_dict[property] is not None and property.endswith(\'_price\'):\n
if line_dict[property] is not None and property in (\'employee_share_price\',\n
\'employer_share_price\'):\n
line_dict[property] = \'%s %%\' % (float(line_dict[property])*100)\n
return line_dict\n
\n
......@@ -92,8 +93,10 @@ property_list = [ \'slice\',\n
\'base\',\n
\'employer_share_price\',\n
\'employer_share_quantity\',\n
\'employer_share_total_price\',\n
\'employee_share_price\',\n
\'employee_share_quantity\',\n
\'employee_share_total_price\',\n
\'causality\',\n
]\n
for line in line_list: \n
......
218
\ No newline at end of file
219
\ 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