Hey all! I'm trying to query a customer payment an...
# suiteql
d
Hey all! I'm trying to query a customer payment and I need to get the account where the payment has already been deposited to (picture attached). I don't think we have access to it. Does anyone know if is it possible to get it? Thanks in advance
m
It's stored in the transactionline table, e.g.
SELECT expenseaccount FROM transactionline WHERE transaction = <Transaction Internal ID> and mainline = 'T'
d
I did try that before but got the
Unknown identifier 'expenseaccount'.
error
m
Hmm that query worked in my account. You can try looking at transactionaccountingline table
d
Is there any feature/preference that needs to be enabled to expose the
expenseaccount
field?