Commit 5a1b1166 authored by Vincent Pelletier's avatar Vincent Pelletier

Resync messages with actual errors. Swap tests instead of messages to stay...

Resync messages with actual errors. Swap tests instead of messages to stay similar to cash_to_currency_purchase_workflow/scripts/validateVaultBalance.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16151 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 595284c5
...@@ -118,10 +118,10 @@ quantity = transaction.getQuantity()\n ...@@ -118,10 +118,10 @@ quantity = transaction.getQuantity()\n
if resource_one == 2:\n if resource_one == 2:\n
msg = Message(domain="ui", message="No Resource.")\n msg = Message(domain="ui", message="No Resource.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
elif billetage_sorti != base_price :\n elif billetage_entre != quantity :\n
msg = Message(domain="ui", message="Received amount is different from input cash.")\n msg = Message(domain="ui", message="Received amount is different from input cash.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
elif billetage_entre != quantity :\n elif billetage_sorti != base_price :\n
msg = Message(domain="ui", message="Return amount is different from output cash")\n msg = Message(domain="ui", message="Return amount is different from output cash")\n
raise ValidationFailed, (msg,) \n raise ValidationFailed, (msg,) \n
elif resource_one != 0 :\n elif resource_one != 0 :\n
......
497 498
\ No newline at end of file \ No newline at end of file
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