Want Payroll Schedule fields 2:2 decimals, fields are text
Mindie
Member Posts: 124
I am trying to get all the number on the Payroll Schedule report to have 2 decimal places. That sounded easy, just change the decimal property to 2:2. The problem is that the fields are all "ColumnValuesAsText". They are converted to text in the codeunit "Pay Control Sched. Management"
I've been reading through the codeunit and can't find a way to make the change.
Any ideas?
I've been reading through the codeunit and can't find a way to make the change.
Any ideas?
0
Comments
-
IF NormalFormatString = '' THEN BEGIN
GLSetup.GET;
NormalFormatString := '<Precision,' + GLSetup."Amount Decimal Places" + '><Standard Format,0>';
END;
WITH PayControlSchedColumn2 DO
IF Value <> 0 THEN BEGIN
CASE "Rounding Factor" OF
"Rounding Factor"::None :
ValueAsText := FORMAT(Value,0,NormalFormatString);
"Rounding Factor"::"1" :
ValueAsText := FORMAT(ROUND(Value,1));
"Rounding Factor"::"1000" :
ValueAsText := FORMAT(ROUND(Value/1000,0.1),0,'<Precision,1><Standard Format,0>');
"Rounding Factor"::"1000000" :
ValueAsText := FORMAT(ROUND(Value/1000000,0.1),0,'<Precision,1><Standard Format,0>');
END;
The GLSetup."Amount Decimal Places" is 2:2 so doen't the above code also say that the text will be 2:2?0 -
Yes the rounding factor is none0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions