Print price in classic report

Reinhard
Member Posts: 249
Hello,
I want to print the "Unit Price" on a 2012 classic report. And I want it to look like a price. So if the unit price is 12.56 then the report should print out:
$12.56
I have read all the threads on mibuso on this
](*,) ](*,)
Even the ones marked as solved did not work.
Anyone have any suggestions?
- Reinhard
I want to print the "Unit Price" on a 2012 classic report. And I want it to look like a price. So if the unit price is 12.56 then the report should print out:
$12.56
I have read all the threads on mibuso on this

Even the ones marked as solved did not work.
Anyone have any suggestions?
- Reinhard
0
Answers
-
May I know what did you try and what did not work?
You need $ infront of amount,right?0 -
Reinhard wrote:Hello,
I want to print the "Unit Price" on a 2012 classic report. And I want it to look like a price. So if the unit price is 12.56 then the report should print out:
$12.56
In the report, look at the Properties for the Unit Price field, and change it to
format(round("Unit Price"),0,'$<Integer Thousand><Decimals>')
That's probably not exactly what you need, but it should get you started in the right direction.David Singleton0 -
Hi David,
Thank you that is a good tip. I was having problems getting the dollar sign in there.
There is one problem though which is that this is cutting off unnecessary decimals.
So a $4,000.00 bike in Cronus prints out as $4,000.
Further attempts + results:
: FORMAT(ROUND("Unit Price",0.01),0,'$<Integer Thousand><Decimals>')
=> decimals are still omitted
: FORMAT(ROUND("Unit Price",0.01),0,'$<Integer Thousand><Decimals,2>')
=> decimals are still omitted
: FORMAT(ROUND("Unit Price",0.01),0,'$<Integer Thousand><Decimals,3>')
=> success! \:D/ \:D/
OK for a small bit of wrap-up or follow up... why does putting inDecimals,30 -
I put the ROUND in there because I assumed you wanted unit price down to the nearest penny. You could drop the round completely and just use
FORMAT("Unit Price",0,'$<Integer Thousand><Decimals>')
Which might be what you want. But it depends what accuracy you want on the report.David Singleton0 -
David:
It is a price sticker I'm printing out.
The round works fine. It is necessary otherwise it will have problems if a long decimal price is getting printed.
I just noticed that Decimals,2 ended up printing 1 decimal, and Decimals,3 ended printing 2 decimals places. (?)
Thank you for your help on this!
- Reinhard0 -
The 3 includes the "."David Singleton0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions