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?
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?
You need to group each handlebar expression in parenthesis when nesting multiple helpers.
{{ceil (divide record.x 40)}}
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)}}
Sorry, @davidgollom. I should have refreshed the page before posting.
No problem @ezriah. I've done that before too!