Hi, I can't find a linkage field between the addre...
# suiteql
y
Hi, I can't find a linkage field between the address book to the entity. For example, for transaction lines, I can find from each line the internal id of the transaction itself. Shouldn't it be the same for an address book and it's entity?
j
Copy code
SELECT (whatever you want to select)

FROM transaction
JOIN entity ON (transaction.entity = entity.id)
LEFT JOIN entityaddressbook ON (entityaddressbook.entity = entity.id
-- AND entityaddressbook.defaultbilling = 'T'
-- AND entityaddressbook.defaultshipping = 'T'
)
LEFT JOIN entityaddress