Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a warning below Ratio field in payment form #10

Open
hajir opened this issue Apr 9, 2018 · 1 comment
Open

Show a warning below Ratio field in payment form #10

hajir opened this issue Apr 9, 2018 · 1 comment
Assignees

Comments

@hajir
Copy link

hajir commented Apr 9, 2018

On the payment for, if the condition below is met, display a warning in red below the ratio field.

Condition 1

  • Condition: ( [Amount (inToman) ] / [CAD Amount] ) > Ratio
  • Warning message:
    • EN: "Warning: The actual ratio [X] is greater than the ratio (expected)"
    • FA: "اخطار: نرخ واقعی، ایکس، از نرخ ثبت شده بیشتر است
    • where [X] = [Amount (inToman) ] / [CAD Amount] with no decimal places, like 3850

Condition 2

  • Condition: ( [Amount (inToman) ] / [CAD Amount] ) < Ratio * 0.95
  • Warning message:
    • EN: "Warning: The actual ratio [X] is much smaller than the ratio (expected)"
    • FA: "هشدار: نرخ واقعی، ایکس، از نرخ ثبت شده حداقل پنج درصد کمتر است
    • where [X] = [Amount (inToman) ] / [CAD Amount] with no decimal places, like 3850
@hajir
Copy link
Author

hajir commented Jun 1, 2018

Condition 2 is added

@hajir hajir reopened this Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants