Commit 4489e046 authored by Fabien Morin's avatar Fabien Morin

typo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17685 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f82b4729
...@@ -190,11 +190,12 @@ class PaySheetTransaction(Invoice): ...@@ -190,11 +190,12 @@ class PaySheetTransaction(Invoice):
# perhaps here it will be necesary to raise an error ? # perhaps here it will be necesary to raise an error ?
if not paysheet_items.has_key(service_id): if not paysheet_items.has_key(service_id):
paysheet_items[service_id] = { 'title' : model_line.getTitleOrId() paysheet_items[service_id] = {
, 'id' : model_line.getId() 'title' : model_line.getTitleOrId(),
, 'desc' : [] 'id' : model_line.getId(),
, 'res' : service.getRelativeUrl() 'desc' : [],
, 'cell_list' : [] 'res' : service.getRelativeUrl(),
'cell_list': []
} }
# create cells if a value has been entered by accountable # create cells if a value has been entered by accountable
...@@ -226,12 +227,11 @@ class PaySheetTransaction(Invoice): ...@@ -226,12 +227,11 @@ class PaySheetTransaction(Invoice):
else: else:
desc = None desc = None
paysheet.createPaySheetLine( paysheet.createPaySheetLine(
title = item['title'] title = item['title'],
, id = item['id'] id = item['id'],
, res = item['res'] res = item['res'],
, desc = desc desc = desc,
, cell_list = item['cell_list'] cell_list = item['cell_list'],)
)
security.declareProtected(Permissions.ModifyPortalContent, security.declareProtected(Permissions.ModifyPortalContent,
...@@ -481,11 +481,11 @@ class PaySheetTransaction(Invoice): ...@@ -481,11 +481,11 @@ class PaySheetTransaction(Invoice):
if cell_list: if cell_list:
# create the PaySheetLine # create the PaySheetLine
pay_sheet_line = self.createPaySheetLine( pay_sheet_line = self.createPaySheetLine(
title = title title = title,
, id = id id = id,
, res = res res = res,
, desc = desc desc = desc,
, cell_list = cell_list cell_list = cell_list,
) )
pay_sheet_line_list.append(pay_sheet_line) pay_sheet_line_list.append(pay_sheet_line)
......
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