Hey! Can you help me with my SuiteQL request. Now ...
# suiteql
k
Hey! Can you help me with my SuiteQL request. Now I can get Sales Orders with transaction status for customer:
Copy code
SELECT
    * Transaction.Status, BUILTIN.DF( Transaction.Status ) AS Status_Description
FROM
    transaction
WHERE
    type = 'SalesOrd' AND entity = 1
ORDER BY
    trandate DESC
But I don't know how to get Project name for these orders. Can you help me?
I did it, here an example:
Copy code
SELECT
    *,
    BUILTIN.DF(t.status) AS status_description,
    j.entitytitle AS project_name
FROM
    transaction t
LEFT JOIN
    job j ON t.entity = j.id
WHERE
    t.type = 'SalesOrd'
    AND t.entity = 1
ORDER BY
    t.trandate DESC;