michaelmyers Posted April 6, 2021 Share Posted April 6, 2021 QUESTION: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. CODE: $V{UnitPriceConvNOPromoPrice}.doubleValue() >= 1.00 ? "$" + $V{UnitPriceConvNOPromoPrice}.setScale(2,RoundingMode.HALF_UP) : $V{UnitPriceConvNOPromoPrice}.multiply(new BigDecimal(100)).setScale(1,RoundingMode.HALF_UP) + "¢" IMAGES: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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now