Commit f50553c1 authored by Aurel's avatar Aurel

do not generate paysheet transaction line when total price is zero or none

parent ae675bbf
...@@ -196,7 +196,7 @@ class PaySheetTransaction(Invoice): ...@@ -196,7 +196,7 @@ class PaySheetTransaction(Invoice):
business_process = business_process_list[0] business_process = business_process_list[0]
movement_list_trade_phase_dic = {} movement_list_trade_phase_dic = {}
for movement in movement_dict['movement_to_add_list']: for movement in movement_dict['movement_to_add_list']:
if movement.getTotalPrice() != 0: if movement.getTotalPrice() not in (0, None):
# remove movement with 0 total_price # remove movement with 0 total_price
trade_phase = movement.getTradePhase() trade_phase = movement.getTradePhase()
if not movement_list_trade_phase_dic.has_key(trade_phase): if not movement_list_trade_phase_dic.has_key(trade_phase):
......
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