Commit b7d5bffd authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: do not check reversal transaction to display state

it is impossible to understand
parent dee31e90
......@@ -14,15 +14,6 @@ else:
if paid:
result = "Paid"
reversal = portal.portal_catalog.getResultValue(
portal_type="Sale Invoice Transaction",
simulation_state="stopped",
default_causality_uid=context.getUid()
)
if reversal is not None and (context.getTotalPrice() + reversal.getTotalPrice()) == 0:
result = "Cancelled"
elif context.getTotalPrice() == 0:
result = "Free!"
else:
......
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