AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Everything Else
Change qty precisio...
 
Notifications
Clear all

Questions Change qty precision on some screens using a customization project

 
Everything Else
Last Post by Tim Rodman 5 years ago
2 Posts
2 Users
1 Reactions
1,997 Views
RSS
redrum
Posts: 3
 redrum
Topic starter
April 20, 2021 10:17 pm
(@redrum)
Active Member
Joined: 5 years ago

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?  


1 Reply
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
April 20, 2021 11:05 pm
(@timrodman)
Famed Member
Joined: 10 years ago

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


Reply
redrum reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 16 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×