Commit c73cbda5 authored by Julien Muchembled's avatar Julien Muchembled

Make 'A Business Process can not erase amounts' exception less cryptic

parent 9e61fa60
...@@ -710,7 +710,10 @@ class BusinessProcess(Path, XMLObject): ...@@ -710,7 +710,10 @@ class BusinessProcess(Path, XMLObject):
# result can not be empty # result can not be empty
if not result: if not result:
raise ValueError("A Business Process can not erase amounts") raise ValueError("A Business Process can not erase amounts:"
" no Trade Model Path found for %r"
" (rule=%s, trade_phase=%r)"
% (amount, explanation.getSpecialise(), trade_phase))
# Sort movement list and make sure the total is equal to total_quantity # Sort movement list and make sure the total is equal to total_quantity
total_quantity = amount.getQuantity() total_quantity = amount.getQuantity()
......
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