SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 43627: Allocation percentage totals are not correct when allocating by amount

DetailsHotfixAboutRate It

In SAS® Enterprise GRC, when allocating by amount for an incident, the display that shows percentage Total Allocated and Total Unallocated might not be accurate due to rounding.

To resolve this problem, edit the jsp incidentAllocations.jsp file that is located in the "tiles\incidents" directory of the SAS Enterprise GRC war file. Remove the parameter maxFractionDigits= from two lines.

Line 331 before removing maxFractionDigits=

      <fmt:formatNumber type='PERCENT' value='${breakdown.totalPercentAllocated}'
        maxFractionDigits="2"/>
  

Line 331 after removing maxFractionDigits=

        <fmt:formatNumber type='PERCENT' value='${breakdown.totalPercentAllocated}'/>
  

Line 377 before removing maxFractionDigits=

 
      <fmt:formatNumber type='PERCENT' 
        value='${breakdown.totalPercentUnallocated}' maxFractionDigits="2"/>
  

Line 377 after removing maxFractionDigits=

 
      <fmt:formatNumber type='PERCENT' 
        value='${breakdown.totalPercentUnallocated}'/>
  

In the following example, you have a total of $25 to allocate, and you are allocating by dollar amount. You have 3 allocations totaling $25. One is for $9, another is for $7, and the last one is for $9. The inaccurate percentage totals show as follows:

 
      Total Allocated:  99.98% (USD 25.00)
      Total Unallocated: 0.02% (USD 0.00)
  

Click the Hot Fix tab in this note to access the hot fix for this issue.

Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise GRCMicrosoft® Windows® for x644.39.2 TS2M2
Microsoft Windows Server 2003 Datacenter Edition4.39.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition4.39.2 TS2M2
Microsoft Windows Server 2003 Standard Edition4.39.2 TS2M2
Microsoft Windows Server 2003 for x644.39.2 TS2M2
Microsoft Windows Server 20084.39.2 TS2M2
Microsoft Windows Server 2008 for x644.39.2 TS2M2
Microsoft Windows XP Professional4.39.2 TS2M2
Windows 7 Enterprise 32 bit4.39.2 TS2M2
Windows 7 Enterprise x644.39.2 TS2M2
Windows 7 Home Premium 32 bit4.39.2 TS2M2
Windows 7 Home Premium x644.39.2 TS2M2
Windows 7 Professional 32 bit4.39.2 TS2M2
Windows 7 Professional x644.39.2 TS2M2
Windows 7 Ultimate 32 bit4.39.2 TS2M2
Windows 7 Ultimate x644.39.2 TS2M2
Windows Vista4.39.2 TS2M2
Windows Vista for x644.39.2 TS2M2
64-bit Enabled AIX4.39.2 TS2M2
64-bit Enabled Solaris4.39.2 TS2M2
HP-UX IPF4.39.2 TS2M2
Linux for x644.39.2 TS2M2
Solaris for x644.39.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.