Round Divided Value
So I'm trying to get the pallet quantity by dividing the quantity ordered by 40 and rounding up to the nearest whole number but I'm getting NaN. Any ideas?
0
-
You need to group each handlebar expression in parenthesis when nesting multiple helpers.
{{ceil (divide record.x 40)}}
1 -
Try putting parentheses around your divide field, so that the handlebar template knows to apply "ceil" to the result of the entire divide expression:
{{ceil (divide record.LineInformation.0.OrderedQuantity 40)}}
0 -
Sorry, David Gollom. I should have refreshed the page before posting.
1 -
No problem Ezriah. I've done that before too!
0
Please sign in to leave a comment.
Comments
4 comments