Skip to main content
Answer

how do i subtract today sales order from yesterday sales order

  • February 27, 2025
  • 3 replies
  • 43 views

Forum|alt.badge.img

I need to subtract the sales order of today from yesterday

In excel as shown below I can put this formula (+C7-C6) and get the difference between the numbers from yesterday and today. 

how can I do this in Acumatica

this is my Grid

 

Best answer by BenjaminCrisman

One thing to keep in mind is that all datetime fields are stored in the database in UTC time. So if an order was created at 8pm EST, then in the DB it will look like tomorrow’s date. So depending on when the orders were made, which time zone the user is in, and when the GI is being reviewed, the results could vary.

3 replies

BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • February 27, 2025

@SandyA You would just need to set a condition to remove orders with dates which equal @Today. In GIs there isn’t really a way to perform functions on the results of the cell value, so you could stop today’s date orders from coming in by setting a data link on SOOrder which says CreatedDateTime < @Today, or set a condition in the GI to remove orders Less Than @Today, or you could put a function on the field to omit orders greater than Today. I think any of those options could work.


Forum|alt.badge.img
  • Author
  • Freshman II
  • February 27, 2025

@BenjaminCrisman thanks i got it


BenjaminCrisman
Acumatica Employee
Forum|alt.badge.img+4
  • Acumatica Support Team
  • Answer
  • February 27, 2025

One thing to keep in mind is that all datetime fields are stored in the database in UTC time. So if an order was created at 8pm EST, then in the DB it will look like tomorrow’s date. So depending on when the orders were made, which time zone the user is in, and when the GI is being reviewed, the results could vary.