Page 1 of 1

Conditionally format decimal places.

Posted: 20 May 2024, 11:31
by ian332isport
Hi,

On our reports, we have SOP_ITEM.QTY_ORDER formatted to show no decimals, so whole/integer numbers only. This is fine for all our products, but we also have a few things that need to show one or more decimal place. It's things like design time (1.5 hours) or other time based services etc.

Is it possible to conditionally format the number of decimals of SOP_ITEM.QTY_ORDER based on the value (string) of SOP_ITEM.STOCK_CODE?

Thanks,
Ian.

Re: Conditionally format decimal places.

Posted: 20 May 2024, 15:52
by brucedenney
Hi

Decimal places can not be set from a conditional format, however...

You can create 2 fields one with 2 decimal places and one with none, you can then set one to be suppressed from printing.

You then use conditional formatting to make the supressed on print if there is a match with the desired stock code and to make the unsuppressed one be supress if there is not a match.

Re: Conditionally format decimal places.

Posted: 21 May 2024, 07:09
by ian332isport
Hi Brian.

I don't know why I didn't think of that. I've already got similar multiple field options on other reports. :)

Thanks,
Ian.