[Erp5-report] r25165 - /erp5/trunk/products/ERP5/Document/PaySheetTransaction.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 19 11:55:04 CET 2009
Author: fabien
Date: Mon Jan 19 11:54:59 2009
New Revision: 25165
URL: http://svn.erp5.org?rev=25165&view=rev
Log:
add a condition to not create the Pay Sheet Lines if the checkbox is unchecked
Modified:
erp5/trunk/products/ERP5/Document/PaySheetTransaction.py
Modified: erp5/trunk/products/ERP5/Document/PaySheetTransaction.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/PaySheetTransaction.py?rev=25165&r1=25164&r2=25165&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/PaySheetTransaction.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/PaySheetTransaction.py [utf8] Mon Jan 19 11:54:59 2009
@@ -493,7 +493,7 @@
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,
More information about the Erp5-report
mailing list