Jump to content
We've recently updated our Privacy Statement, available here ×

Display Lb Not Oz for Unit Price


michaelmyers

Recommended Posts

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:

screen_shot_2021-04-06_at_11_42.45_am.png.6e51023686f8539a7ce8e8d5ce6e55cd.png

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Posted Images

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...