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

only change spaces


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c7e47db8
...@@ -169,17 +169,18 @@ class PaySheetTransaction(Invoice): ...@@ -169,17 +169,18 @@ class PaySheetTransaction(Invoice):
resource_value = self.getPortalObject().unrestrictedTraverse(resource) resource_value = self.getPortalObject().unrestrictedTraverse(resource)
# Add a new Pay Sheet Line # Add a new Pay Sheet Line
payline = self.newContent( payline = self.newContent(
portal_type = 'Pay Sheet Line', portal_type='Pay Sheet Line',
title = title, title=title,
description = description, description=description,
destination = self.getSourceSection(), destination=self.getSourceSection(),
source_section = resource_value.getSource(), source_section=resource_value.getSource(),
resource_value = resource_value, resource_value=resource_value,
destination_section = self.getDestinationSection(), destination_section=self.getDestinationSection(),
variation_base_category_list = ('tax_category', 'salary_range'), variation_base_category_list=('tax_category',
variation_category_list = var_cat_list, 'salary_range'),
base_amount_list = base_amount_list, variation_category_list=var_cat_list,
int_index = int_index, base_amount_list=base_amount_list,
int_index=int_index,
**kw) **kw)
# add cells categories to the Pay Sheet Line # add cells categories to the Pay Sheet Line
...@@ -187,20 +188,19 @@ class PaySheetTransaction(Invoice): ...@@ -187,20 +188,19 @@ class PaySheetTransaction(Invoice):
if categories is not None: if categories is not None:
categories_list = payline.getCategoryList() categories_list = payline.getCategoryList()
categories_list.extend(categories) categories_list.extend(categories)
payline.edit(categories = categories_list) payline.edit(categories=categories_list)
base_id = 'movement' base_id = 'movement'
a = payline.updateCellRange(base_id = base_id) a = payline.updateCellRange(base_id=base_id)
# create cell_list # create cell_list
for cell in good_cell_list: for cell in good_cell_list:
paycell = payline.newCell(base_id = base_id, *cell['category_list']) paycell = payline.newCell(base_id=base_id, *cell['category_list'])
# if the price aven't be completed, it should be set to 1 (=100%) # if the price aven't be completed, it should be set to 1 (=100%)
if not cell['price']: if not cell['price']:
cell['price'] = 1 cell['price'] = 1
paycell.edit( mapped_value_property_list = ('price', 'quantity'), paycell.edit(mapped_value_property_list=('price', 'quantity'),
force_update = 1, force_update=1,
**cell) **cell)
return payline return payline
...@@ -312,7 +312,6 @@ class PaySheetTransaction(Invoice): ...@@ -312,7 +312,6 @@ class PaySheetTransaction(Invoice):
# Get Precision # Get Precision
precision = paysheet.getPriceCurrencyValue().getQuantityPrecision() precision = paysheet.getPriceCurrencyValue().getQuantityPrecision()
# in this dictionary will be saved the current amount corresponding to # in this dictionary will be saved the current amount corresponding to
# the tuple (tax_category, base_amount) : # the tuple (tax_category, base_amount) :
# current_amount = base_amount_dict[base_amount][share] # current_amount = base_amount_dict[base_amount][share]
...@@ -490,13 +489,13 @@ class PaySheetTransaction(Invoice): ...@@ -490,13 +489,13 @@ class PaySheetTransaction(Invoice):
if cell_list: if cell_list:
# create the PaySheetLine # create the PaySheetLine
pay_sheet_line = paysheet.createPaySheetLine( pay_sheet_line = paysheet.createPaySheetLine(
title = title, title=title,
resource = resource, resource=resource,
int_index = int_index, int_index=int_index,
desc = desc, desc=desc,
base_amount_list = base_amount_list, base_amount_list=base_amount_list,
cell_list = cell_list, cell_list=cell_list,
categories= categories) categories=categories)
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