jervillagarcia/EasyFX — Issue #1: Buy currency must match with Beneficiary
Author: jervillagarcia
Created: 2012-02-22 22:53:19+00:00
State: open

** was not checking the beneficary currency against the buy currency. these must match
** BUY currency must match the Beneficiary country but bear in mind that EUR belongs to many countries.
Therefore in our example, if we BUY EUR we show ONLY Greta Smith as she is in Germany and they take Euros but we must not show John Smith as he is in the UK.
If no beneficiaries match we need to give a warning “You do not have a beneficiary in the same currency – please register your beneficiary via your account through the website before trying again”.
For example if we BUY CHF and SELL GBP (as always) we have no CHF beneficiary, therefore we have to provide the warning message above.