On Account money in output set

Hi everyone - 

Is there a way to get on account money into an output set/ criteria? We ideally would want to be able to eventually use this field as a data mapping for WordFly so that we can update patrons on their credits available.

I'm not super familiar with the tables I would need to enter in order to be able to get this information, so any help is appreciated.

Thank you!

Kari

*I have very little SQL knowledge and ideally would be able to do this via the system tables for keywords (Criteria) and query elements (output set)*

Parents Reply
  • Any ideas on how to accomplish this for only certain on account payment methods? I tried the following for the TR_QUERY_ELEMENT_GROUP - Data From, but the output results were wonky (i.e. showing 0 for constituents that had $ on account in that specific payment method).

    Select customer_no, NULLIF((-1 * SUM(pmt_amt)),0) as 'amt'
    From [dbo].t_payment a JOIN [dbo].vrs_payment_method b WITH (NOLOCK) ON a.pmt_method = b.id
    Where b.id IN (85) group by customer_No

Children