using suiteQL how do i get the quantityreceived fi...
# ask-stanley-ai
m
using suiteQL how do i get the quantityreceived field for a transaction line?
c
AI generated answer (using internal Slack threads):
To get the
quantityreceived
field for a transaction line using SuiteQL, you can use the
quantityshiprecv
field in your SuiteQL query. This field represents the total quantity received for a line item. Here is a sample SuiteQL query:
Copy code
sql
SELECT quantityshiprecv 
FROM transaction 
WHERE type = 'PurchaseOrder' AND mainline = FALSE
This query will return the
quantityshiprecv
for each line item in a Purchase Order. Please note that the
quantityshiprecv
field is in base units. If you want to convert it to transaction units, you can use the following formula:
Copy code
sql
{quantityshiprecv} / ({quantity} / {quantityuom})
This formula divides the
quantityshiprecv
by the ratio of
quantity
to
quantityuom
to convert the quantity received to transaction units. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834736168
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833497
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830033779
Please provide your feedback on this answer.