Discussions

Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
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.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
Share Your SuiteWorld Experience & Earn a Special Badge!
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more

Curious... why so many transaction_lines?

edited Dec 3, 2019 3:47PM in SuiteCloud / Customization 3 comments

I just happened to run a query for a specific transaction:

 SELECT tl.transaction_line_id, tl.amount, tl.transaction_order FROM TRANSACTIONS AS t  INNER JOIN TRANSACTION_LINES AS tl ON tl.Transaction_id = t.transaction_id  WHERE t.Transaction_ID = 8528 


Here are the results (I hope they are formatted decent)
transaction_line_id    amount    transaction_order  0    225    0  1    -225    1  2        2  3        3  4        4  5        5  6        6  7        7  8        8  9        9  10        10  11        11  12        12  13        13  14        14  15        15  16        16  17        17  18        18  19    0    19

My main question is why does a transaction with a SINGLE line item have 20 line item records?  I can speculate what some of them are:
0) the item sold
1) a credit that might have been applied
19) shipping (that was zeroed out)

What about 2-18?  What are they, why are they there? 

Steve Klett | Senior Developer
NetValue Technology

image-8cb77df5036e1-7e7f.png

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 4 (Oct-Dec 2025)

This Week's Leaders

This Month's Leaders

All Time Leaders