Skip to main content
Solved

How to make a filed 2 decimal places in export scenarios?

  • December 7, 2020
  • 7 replies
  • 1139 views

Forum|alt.badge.img+5
  • Captain II
  • 398 replies

Hello, I am using a GI as the data source of a export scenario.

When in GI, if I assign the schema field, then I could get the 2 place decimals as I expected.

However, when run by export by scenario,

 I still get more than 2 place decimals, which I don’t like.

 

How can I make the decimals become 2 places?

Best answer by ray20

Hello, to who may be interested in.

Thanks to Acumatica support team, I can get the results using the below script:

 

=Format('{0:f2}',[Results.APTran_Formulacde5b41a26f84a6ba6c2fa940ce6f0cb])

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

7 replies

Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3416 replies
  • December 7, 2020

Hi @ray20,

 

Can you please change the below configuration to 2 decimals in the Companies screen and verify once.

 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • December 7, 2020
naveenb74 wrote:

Hi @ray20,

 

Can you please change the below configuration to 2 decimals in the Companies screen and verify once.

 

@naveenb74  Hello, Naveen,  we are setting to 2 places in the screen you showed.
other places is fine, in screen, I mean.
but when comes to export by scenario, it is not as expected.


Forum|alt.badge.img+12
  • Acumatica Support Team
  • 871 replies
  • December 8, 2020

Hi @ray20 

Find a column which reflects 2 decimal on UI, set that as ‘Schema Field’ (you may add that object to list of objects on GI if its not added yet). I guess APTran.curyTranBal should reflect 2 decimal. You may check.

Hope this helps.


Regards
 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • December 9, 2020
vkumar wrote:

Hi @ray20 

Find a column which reflects 2 decimal on UI, set that as ‘Schema Field’ (you may add that object to list of objects on GI if its not added yet). I guess APTran.curyTranBal should reflect 2 decimal. You may check.

Hope this helps.


Regards
 

@vkumar  Hello, unfortunately, this time, the set “schema field” on GI does NOT work on export by scenario screens.
I tried another method, using “Round” function in “export scenario” like below:

=Round( CDec([Results.APTran_unitCost]), 2 )

 

It works almost fine, however,

it leaves the integer as integer, NO .00 in the end,

 

I’d like 68 to be 68.00
any suggestions?

 


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • December 18, 2020

sorry, in the subject line should be “field” not “filed”
can anyone give me some suggestion on it?


Forum|alt.badge.img+5
  • Author
  • Captain II
  • 398 replies
  • Answer
  • December 21, 2020

Hello, to who may be interested in.

Thanks to Acumatica support team, I can get the results using the below script:

 

=Format('{0:f2}',[Results.APTran_Formulacde5b41a26f84a6ba6c2fa940ce6f0cb])


Naveen Boga
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3416 replies
  • December 21, 2020

Hi @ray20 

 

Thank You Very Much for this info. Its really useful :)


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