From ccef0e1376c5f2355432fbcf58e820e12efe8e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 31 Jul 2008 17:23:07 +0000 Subject: [PATCH] no need to return the price in a string, we should use a float field to do the formatting git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22797 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_payroll/PaySheetTransaction_getLineListAsDict.xml | 6 ------ bt5/erp5_payroll/bt/revision | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getLineListAsDict.xml b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getLineListAsDict.xml index 7ed31b3fe9..d10b23c9ba 100644 --- a/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getLineListAsDict.xml +++ b/bt5/erp5_payroll/SkinTemplateItem/portal_skins/erp5_payroll/PaySheetTransaction_getLineListAsDict.xml @@ -77,12 +77,6 @@ line_list = context.PaySheetTransaction_getMovementList(sort_on=[(\'int_index\', def addProperties(line, line_dict, property_list):\n for property in property_list:\n line_dict[property] = getattr(line, property, None)\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 in (\'employee_share_price\',\n - \'employer_share_price\'):\n - line_dict[property] = \'%s %%\' % (float(line_dict[property])*100)\n return line_dict\n \n line_dict_list = []\n diff --git a/bt5/erp5_payroll/bt/revision b/bt5/erp5_payroll/bt/revision index 815f89dbff..3c7d064c14 100644 --- a/bt5/erp5_payroll/bt/revision +++ b/bt5/erp5_payroll/bt/revision @@ -1 +1 @@ -311 \ No newline at end of file +312 \ No newline at end of file -- 2.30.9