Skip to main content
Solved

Generic Inquiry Trim Number Field ".0000" digits


Forum|alt.badge.img

Hello guys,

Was wondering if you guys can help me trim these last 4 digits (.0000) of this value in the Generic Inquiry  (78,380.0000) 

 

I tried this   =RTRIM([bleachH.HeavyWeight]) and a few others but no luck.

 

This is how it looks on the GI

 

Best answer by ChandraM

Hi @jorgep17 Here is formula as solution. Please confirm.

=CInt(Round([SOShipment.ShipmentWeight],0))

 

Generic Inquiry: (Please find the attached generic inquiry for you to verify)

 

RESULT
 

 

View original
Did this topic help you find an answer to your question?

10 replies

palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 42 replies
  • October 6, 2023

Hi @jorgep17, how about changing the schema field of Heavy Weight and Light Weight to SOLine.LineNbr.

 

 


StevenRatner
Varsity I
Forum|alt.badge.img

@jorgep17 - I agree with @palbores but this field can be found in the results grid of your generic inquiry.


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

@jorgep17, Other option you could try is to use =CInt([]) function to convert decimal to Integer, which will eventually remove the decimal part of the field.


Forum|alt.badge.img
  • Author
  • Freshman II
  • 26 replies
  • October 6, 2023
Vignesh Ponnusamy wrote:

@jorgep17, Other option you could try is to use =CInt([]) function to convert decimal to Integer, which will eventually remove the decimal part of the field.

Hi,

I put it like this =CInt([bleachH.HeavyWeight]), but ended up with the same results. 


Forum|alt.badge.img
  • Author
  • Freshman II
  • 26 replies
  • October 6, 2023
palbores wrote:

Hi @jorgep17, how about changing the schema field of Heavy Weight and Light Weight to SOLine.LineNbr.

 

 

Where you get the Schemma SOLine from, this GI only has a BleachL, and BleachH tables. 


Forum|alt.badge.img+9
  • Semi-Pro III
  • 229 replies
  • October 12, 2023

Hi @jorgep17 ,

In the Generic Inquire use with the format  =Format('{0:f2}',[field name]) to trim the value

Hope it helps!

Regards,

Sweta


palbores
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • 42 replies
  • October 12, 2023
jorgep17 wrote:
palbores wrote:

Hi @jorgep17, how about changing the schema field of Heavy Weight and Light Weight to SOLine.LineNbr.

 

 

Where you get the Schemma SOLine from, this GI only has a BleachL, and BleachH tables. 

Hi @jorgep17,

 

Maybe there is an integer (number) field in the BleachL or BleachH tables you can use on the Field Schema column. But if there is none, you can try to use the Left() function it this will make the value to become a string. Sample data output would be from 10,000.0000 → 10000.

=LEFT([bleachH.HeavyWeight],Len([bleachH.HeavyWeight])-5)

 


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • Answer
  • October 12, 2023

Hi @jorgep17 Here is formula as solution. Please confirm.

=CInt(Round([SOShipment.ShipmentWeight],0))

 

Generic Inquiry: (Please find the attached generic inquiry for you to verify)

 

RESULT
 

 


Forum|alt.badge.img+8
  • Semi-Pro I
  • 715 replies
  • October 12, 2023

Hi @jorgep17  Please review the above Solution and let us know for any adjustments required. 


Forum|alt.badge.img+1

You could also try in the Format line ='$####,####,####'. This will trim off the ending 0’s.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings