Reduction in number of decimals in OE invoice form

Hello,

Which change do we need to do to the unit price formula in the OE invoice form to go from 6 decimals to 4? This is the formula in our Crystal form:

IF {OEINPR3.LINETYPE} = 1 THEN
IF {OEINPR3.PRPRICEBY} = 1 AND
{OEINPR3.INVDISC} = 0 THEN
// Price by Quantity and No Detail Discount
// Print the Unit Price
TOTEXT({OEINPR3.UNITPRICE}, {OEINPR3.UNITPRCDEC})
ELSE
IF {OEINPR3.QTYSHIPPED} <> 0 THEN
ToText((({OEINPR3.EXTINVMISC} - {OEINPR3.INVDISC}) /
{OEINPR3.QTYSHIPPED}), {OEINPR3.UNITPRCDEC})
ELSE
""
ELSE
""

Thank you.

Parents Reply Children
No Data