By using this website, you agree to our Terms of Use (click here)
I'm looking for a way to update the precision of quantities on certain screens. For example the sales qty on a sales order while leaving the company setting for precision higher.
For some fields on the SO Screen replacing the field attribute works fine:
[PXDBDecimal(6)]
[PXDefault(TypeCode.Decimal, "0.0")]
To
[PXDBDecimal(2)]
[PXDefault(TypeCode.Decimal, "0.0")]
However we can not figure out a way to make it work for many fields such as order qty:
[PXDBQuantity(typeof(SOLine.uOM), typeof(SOLine.baseOrderQty), InventoryUnitType.SalesUnit)]
[PXDefault(TypeCode.Decimal, "0.0")]
[PXUIField(DisplayName = "Quantity")]
//[PXFormula(null, typeof(SumCalc<SOOrder.orderQty>))]
[PXUnboundFormula(typeof(Switch<Case<Where<SOLine.operation, Equal<Parent<SOOrder.defaultOperation>>,
And<SOLine.lineType, NotEqual<SOLineType.miscCharge>>>,
SOLine.orderQty>,
decimal0>),
typeof(SumCalc<SOOrder.orderQty>))]
Any thoughts on how to make this work or other work arounds to mask the number to 2 or 3 decimal places?
Hi @redrum,
I recommend posting this in the new official Acumatica Community Forums:
https://community.acumatica.com
For the foreseeable future, the Forums here will focus on the Reporting Tools in Acumatica (Dashboards, Generic Inquiries, Report Designer, ARM Financial Report Writer, Velixo, Excel, Power BI, etc.) and also discussions that are too “transparent” to be allowed in the new official Acumatica Community Forums. For more info about how AUGForums.com compares to the new official Acumatica Community Forums, checkout this post:
https://www.augforums.com/augforums-com-vs-the-official-acumatica-community