Discussions

Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Community Poll: What sort of content would you like to see more of?

NetSuite Admin Tip | Sales Order in a Day using ODBC Driver NetSuite2.com Data Source

edited Oct 2, 2023 1:59PM in NetSuite Admin Corner

Sales orders and daily sales reports are essential for a business to run smoothly. They're like important paperwork that keeps track of transactions and helps the company stay organized. Additionally, they're useful for managing money matters like tracking income, making budgets, and predicting financial outcomes.

In NetSuite, to retrieve the Sales Orders within the day using SQL format through the ODBC driver and the NetSuite2.com data source, you can employ this query/format.

select TO_CHAR(t.trandate,'YYYY-MM-DD') as 'Transaction Date',t.trandisplayname as 'Order #',c.altname as 'Customer Name',
BUILTIN.DF(t.status) as 'Order Status',t.foreigntotal as 'Total Sales'
from transaction t,customer c
where t.recordtype='salesorder' 
and t.entity=c.id
and TO_CHAR(t.trandate,'YYYY-MM-DD')=TO_CHAR(current_date,'YYYY-MM-DD');

Richard James Uri | SuiteCloud and WMS Tech

----

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 2 (Apr-Jun 2024)

This Week's Leaders

This Month's Leaders

All Time Leaders