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!
Attention: Customers with NetSuite Electronic Bank Payment (EBP) SuiteApp, version 2020.2 QA (ID 315896) must UPDATE (do NOT uninstall) their bundle to the Production version 2022.1 (ID 416781) by December 31, 2022. Note: If users fail to manually update the Electronic Bank Payments SuiteApp within the given time window, this version of the SuiteApp (ID: 315896) will be deprecated and the account will not be updated to Leading version (2022.1) of the Electronic Bank Payments SuiteApp. Please refer to the campaign email sent to impacted customers for more information.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Update your Profile with your Support type to get your Support Type badge.
NetSuite Release 2023.1 is here! Download the release notes and post your questions in the new Release 2023.1 category.

How to Show Fulfillable value on all transaction lines (including Kits) using SuiteQL query?

edited Oct 26, 2022 9:48AM in Ask A Guru 4 comments

Hello Gurus,

I'm trying to show the value of isfulfillable field on all transaction lines (including Kit members/components) using SuiteQL.

Here is how the transaction looks:

Transaction Lines:
Item				ID		Type		isFulfillable:
Item A			        11580		Standalone	F
Item A			        11580		Standalone	F
Item B			        20034		Kit/Package     F


Item B (Kit/Package) Components:
Item				ID		Type		isFulfillable:
Item B : Component A	        19927		Standalone	F
Item B : Component B	        19224		Standalone	T

So far I was able to list the value of isfulfillable on all kit members using this SuiteQL query:

SELECT 
 MemberItem.ID AS ID, 
 MemberItem.isFulfillable AS isFulfillable 
FROM 
 Item AS ParentItem 
 INNER JOIN KitItemMember ON (
  KitItemMember.ParentItem = ParentItem.ID
 ) 
 INNER JOIN Item AS MemberItem ON (
  MemberItem.ID = KitItemMember.Item
 ) 
WHERE 
 ParentItem.ID IN (
  SELECT 
   Item.ID, 
  FROM 
   Transaction 
   INNER JOIN TransactionLine ON (
    TransactionLine.Transaction = Transaction.ID
   ) 
   INNER JOIN Item ON (Item.ID = TransactionLine.Item) 
  WHERE 
   (Transaction.ID = 19615846)
 ) 
ORDER BY 
 KitItemMember.LineNumber
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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

Leaderboard

This Week's Leaders

This Month's Leaders

All Time Leaders