Commit a7115684 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Specify 0.0 to getPrice, because it can return None and just crash.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 05b58b69
......@@ -154,7 +154,7 @@ class InvoiceTransactionRule(Rule, PredicateMatrix):
# 'price_currency': transaction_line.getPriceCurrency(),
# calculate (quantity * price) * cell_quantity
'quantity': (context_movement.getCorrectedQuantity() *
context_movement.getPrice()) * transaction_line.getQuantity(),
context_movement.getPrice(0.0)) * transaction_line.getQuantity(),
# 'quantity_unit': transaction_line.getQuantityUnit(),
'force_update': 1,
}
......
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