darrenhillconsulting
08/27/2024, 7:53 PMCeligo AI
08/27/2024, 7:53 PMAI generated answer (using internal Slack threads):To look back from an ItemFulfillment Line to the Sales Order Line and find the original quantity and compare against the fulfilled quantity using SuiteQL, you would need to join the
transaction
table (which represents the ItemFulfillment) with the transactionline
table (which represents the Sales Order Line) on the createdfrom
field.
Here is a simplified example of how you might construct the SuiteQL query:
sql
SELECT
T.id AS 'Fulfillment ID',
TL.id AS 'Sales Order Line ID',
TL.quantity AS 'Original Quantity',
T.quantity AS 'Fulfilled Quantity'
FROM
transaction T
JOIN
transactionline TL
ON
T.createdfrom = TL.transaction
WHERE
T.type = 'Item Fulfillment'
This query will return the Fulfillment ID, Sales Order Line ID, Original Quantity from the Sales Order Line, and Fulfilled Quantity from the Item Fulfillment.
Please note that this is a simplified example and may need to be adjusted based on your specific requirements. For example, you may need to add additional filters or joins to get the exact data you need.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
08/27/2024, 7:54 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834473789
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829994202
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828808546
Celigo AI
08/27/2024, 7:54 PM