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

Lateral String #31

Closed
in2uitions opened this issue Feb 10, 2023 · 1 comment · Fixed by #38
Closed

Lateral String #31

in2uitions opened this issue Feb 10, 2023 · 1 comment · Fixed by #38
Labels
enhancement New feature or request

Comments

@in2uitions
Copy link

Hello,

I know you have stated that lateral string does not work, but is there any turnaround for it?
I have created the below computed value and i need it to run when discount_type is "value", how can i reach this?

{{IF(EQUAL(discount_type, "value"), SUM(subtotal, discount_value), subtotal)}}

Thanks

@duydvu
Copy link
Contributor

duydvu commented Feb 11, 2023

One workaround that I can find is to encode the discount_type to integer values. For example, 0 for "value" and 1 for others.

To actually use literal strings, I think I have an idea but need some time to test it

@duydvu duydvu added the enhancement New feature or request label Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants