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
Acumatica Generic I...
Finding Date / Time...
 
Notifications
Clear all

Questions Finding Date / Time for Order Date

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Royce Lithgo 3 years ago
4 Posts
3 Users
1 Reactions
1,380 Views
RSS
Hazen Metro
Posts: 31
 Hazen Metro
Topic starter
May 18, 2022 8:48 am
(@hazenm)
Eminent Member
Joined: 6 years ago

Recently we started using a connector to import orders from Amazon in our build. One thing that has been happening intermittently is that it is pulling date/time into the order date field instead of date. I'm working with our partner on figuring out why, but one of the problems I'm having is identifying the orders that it is happening TO. 
I created a generic inquiry to review Orders and Order Dates. I grabbed the "CRCASE" table to use the "LastModifiedDate" schema that is present there to show the field as date/time. However, when I run it, it still shows everything as 12:00. 
I know it is date/time because I have another sales report that has an incremental refresh setup with a stored procedure. It does grouping on order details, and has a MERGE/INSERT statement. The merge statement breaks when we have date/time, because all of a sudden we have multiple results for the same order on the same day. I don't want to have to update my stored procedure, I'd rather just ensure that orders always come in with order date.
I was able to identify in the past a rough idea where they were, because I'd set "Date = Y" and I'd get 100 results, but if I set, Date = X through Z, then if I look at orders with Date Y, I'd get 150. 
We would also then run a CAST statement in the system to set the date/time back to date, and that would fix the report. So I'm 99.9% sure this is indeed the issue. 

Any thoughts?

Thanks all!


3 Replies
Hazen Metro
Posts: 31
 Hazen Metro
Topic starter
May 23, 2022 10:44 am
(@hazenm)
Eminent Member
Joined: 6 years ago

Well, I kept digging on this problem on my own and was able to figure it out. First of all, I stupidly had forgotten that my report read orderdate from SOLine not SOOrder. However, even looking at SOLine.Orderdate with CRCase.LastmodifiedDateTime did not do the trick. 
I finally was able to find the dupes by reproducing the grouping in power bi, finding the duplicate days, and then looking at the audit history. From there I realized that if you are in the Generic Query editor, and go to add a Data Field, if you are looking through the dropdown, you only have the option of OrderDate - however, if you click through to enter a formula, and look through the field list, you will find: =[SOLine.OrderDate_Hour]. Interestingly, if I look at SoLine.OrderDate with CRCase.Lastmodifieddatetime schema field, it shows 12:00, but for example, on my first find, if I look at [SOLine.OrderDate_Hour] it shows "9" correctly... 
So case closed, but I'll leave this here in case anyone else should have the odd need to dig into these details!


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
May 23, 2022 9:27 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Interesting. I never noticed [SOLine.OrderDate_Hour] before.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
May 26, 2022 9:42 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

It's not an actual DAC field - the underscore are functions being applied to the underlying DAC field OrderDate.

image

Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 28 Online
  • 2,412 Members
Our newest member: thollings
Latest Post: Attribute Input Mask
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.

‹›×

    ‹›×