raghav
12/20/2024, 8:26 PMMike Robbins
12/20/2024, 10:32 PMforeignamountunpaid
column on the transactionline table where mainline = 'T'
select
tl.foreignamountunpaid
from transaction t
inner join transactionline tl on tl.transaction = t.id and tl.mainline = 'T'
where t.recordtype = 'invoice'
and t.id = 18833432