ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Bug]: Line Discount % in Job Ledger Entries does not display decimals and exports incorrectly to Excel

Open MortegaITB opened this issue 8 months ago • 2 comments

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

  1. Open Job Ledger Entries
  2. Locate the Line Discount % column
  3. Ensure the value contains decimals (e.g. 2.50)
  4. Observe that the value is displayed without decimals
  5. Export the list to Excel
  6. Notice that the exported column:
  • Has no decimal digits
  • Still shows the decimal separator
Image Image

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

MortegaITB avatar Mar 04 '26 09:03 MortegaITB

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.

PredragMaricic avatar Jun 20 '26 10:06 PredragMaricic

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.

JesperSchulz avatar Jun 22 '26 09:06 JesperSchulz