Solved

Removing trailing zeroes from default price in export scenario

  • 28 April 2023
  • 4 replies
  • 159 views

Userlevel 5
Badge +1

I have an export scenario created of a GI results screen that includes the default price, cost, and qty available of stock items. However, when the export scenario is run, the CSV file that it produces includes a bunch of trailing zeroes. (Example: A default price of $1349.00 turns into 1349.000000)

Is there any way to remove all of the trailing zeroes from being included in these results? The actual GI results don’t display any trailing zeroes, it only shows up in the Export Scenario.

 

GI results:

 

Export scenario:

 

icon

Best answer by mikeho 6 May 2023, 04:41

View original

4 replies

Userlevel 7
Badge +12

hI @mikeho Could you please check the below article

https://stackoverflow.com/questions/30904148/generic-inquiry-format-result-column-with-two-decimal-places-as-number

Or Please share the GI

Userlevel 5
Badge +1

Hi @manikantad18 - the Company is set to two decimal points, so that’s not the issue. How would one us the script from this article you linked to? https://community.acumatica.com/import-and-export-scenarios-117/how-to-make-a-filed-2-decimal-places-in-export-scenarios-4196

 

As for sharing the GI, we’re currently having problems exporting GIs to XML, but you can test this with any currency-related field.

Userlevel 5
Badge +1

UPDATE: I figured it out. I was able to use the suggestion from this comment by using that Format formula in the Field / Action Name field in the Export scenario:

 

This produced the desired results in the Export by Scenario and the CSV file.

 

Userlevel 7
Badge

Thank you for sharing your solution with the community @mikeho !

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved