Display Lb Not Oz for Unit Price


How do I update my existing code to display pounds instead of ounces for unit price? Is it as simple as adjusting the code in red section of the label? (the $V value)  Is there more I would need to do to make this adjustment?  The change occured when I switched from "OZ" to "oz".

Any help would be greatly appreciated as I'm very very very new to this program and struggling to figure this out at the moment.



$V{UnitPriceConvNOPromoPrice}.doubleValue() >= 1.00 ? "$" + $V{UnitPriceConvNOPromoPrice}.setScale(2,RoundingMode.HALF_UP) : $V{UnitPriceConvNOPromoPrice}.multiply(new BigDecimal(100)).setScale(1,RoundingMode.HALF_UP) + "¢"



This is how the tag prints. I want the cost in the red section to display "per lb" not "per oz" as it's a diffrent number than 19.8 cents.



michaelmyers's picture
Joined: Jan 27 2021 - 8:54am
Last seen: 1 week 1 day ago

0 Answers:

No answers yet