githubbob42 / mingle2github2

0 stars 1 forks source link

Report displays raw number for the Items synced from console instead of rounded values #3420

Open githubbob42 opened 8 years ago

githubbob42 commented 8 years ago

Mingle Card: 3732 This is a defect in ticket builder and not in mobile

Analysis

The real culprit is ticket item builder issue. Mobile and salesforce views correctly round the value based on the field’s configured scale before storing it. ticket item builder stores the raw value typed in by the user without rounding it.  This value is then sycned down to mobile and so we display a value that doesn’t adhere to field’s scale on the report.  

Apply fix for this card: http://emorypeak:8080/projects/back\_office/cards/470.

Steps to reproduce

| | |
|-|-|
|**Version #**|
|Prod|
|**OS**|
| |
|**Browser**|
| |
|**Username**|
|ajf@t3.com|
|**Password**|
|computer47|
  1. Create a ticket in console and add an item and edit the item price to 52.126
  2. Sync and open the same ticket and add the same item to the ticket and edit its price also to 52.126
  3. Click to add the report and select ‘Standard Ticket Report’

Expected result

Both items should display rounded values (scale of 2)

Actual Result

Item synced from console still displays 52.126 instead of 52.13

Related Cards

Test Plan

Checklist for Merging

githubbob42 commented 8 years ago

Related Story: #3368 Print helper aggregate methods don't round correctly (Mingle)