Commit a88570e6 authored by Fabien Morin's avatar Fabien Morin

add a condition to not create the Pay Sheet Lines if the checkbox is unchecked


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25165 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34d04e97
......@@ -493,7 +493,7 @@ class PaySheetTransaction(Invoice):
new_val = round((old_val + quantity*price), precision)
base_amount_dict[base_contribution][share] = new_val
if cell_list:
if cell_list and model_line.isCreatePaysheetLine():
# create the PaySheetLine
pay_sheet_line = paysheet.createPaySheetLine(
title=title,
......
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