Chris
05/22/2025, 2:53 PMselect t.id, t.createddate, cc.transactionline, cc.standardcost
from transaction t
inner join TransactionAccountingLineCostComponent cc on cc.transaction = t.id
where t.id = 84064869
and t.recordtype = 'inventorycostrevaluation'
It returns this:
[
{
"id": 84064869,
"createddate": "4/29/2025",
"transactionline": 1,
"expr1": 160.54666055666667
},
{
"id": 84064869,
"createddate": "4/29/2025",
"transactionline": 2,
"expr1": 160.37890055666668
}
]
If I add a where
clause condition like this and cc.transactionline = 2
I get no results. The data is clearly there, why won't it filter on results that are readily available?Chris
05/22/2025, 2:59 PMBUILTIN.DF()
works!Anthony OConnor
05/22/2025, 3:10 PMChris
05/22/2025, 3:12 PMselect t.id, t.createddate, cc.transactionline, cc.standardcost
from transaction t
inner join TransactionAccountingLineCostComponent cc on cc.transaction = t.id
where t.id = 84064869
and t.recordtype = 'inventorycostrevaluation'
and BUILTIN.DF(cc.transactionline) = 2
Chris
05/22/2025, 3:12 PMAnthony OConnor
05/22/2025, 3:20 PMand cc.transactionline = '2'
without the builtin?Chris
05/22/2025, 3:20 PMAnthony OConnor
05/22/2025, 3:20 PM