[Bug]: Line Discount % in Job Ledger Entries does not display decimals and exports incorrectly to Excel
Describe the issue
In Job Ledger Entries, the column Line Discount % is displayed without decimals even though the underlying field is of type Decimal. This happens because the field has the property DecimalPlaces = 0 : 5, which causes the value to be rendered without decimals in the UI.
As a consequence, when the data is exported to Excel, the column shows values without decimal digits but still displays the decimal separator, leading to inconsistent and misleading formatting.
Expected behavior
The Line Discount % column should display decimal values correctly when decimals exist, both:
In the Job Ledger Entries page
In Excel exports
If the field allows decimals, the UI and Excel output should reflect them properly.
Steps to reproduce
- Open Job Ledger Entries
- Locate the Line Discount % column
- Ensure the value contains decimals (e.g. 2.50)
- Observe that the value is displayed without decimals
- Export the list to Excel
- Notice that the exported column:
- Has no decimal digits
- Still shows the decimal separator
Additional context
- Field type: Decimal
- Field property: DecimalPlaces = 0 : 5
- The issue seems related to how the DecimalPlaces property is applied during rendering and Excel export.
This results in confusing output, especially when analyzing data in Excel.
I will provide a fix for a bug
- [ ] I will provide a fix for a bug
The behavior is by design. 0 : 5 is the established convention for all percentage fields in BC. The platform trims trailing zeros intentionally. Not applicable only to Job Ledger Entries and changing only this one table creates an inconsistency. Changing all tables is a breaking change. The Excel export issue (decimal separator without digits) may be a legitimate platform bug in the Excel export layer, but it would not be fixed by changing DecimalPlaces on the table field, it needs a fix in the export logic.
If any fix is accepted, it should come from the platform team addressing the Excel export formatting, not from changing field metadata that has been stable and consistent across the entire application.
Question answered. Are we're preparing for the move to BCApps next Monday, I will close this issue. If open questions remain, please open a new issue on https://github.com/microsoft/BCApps.