I am trying to create an object on our v5.1.7 Universe to show the Users the 'LAST PAYMENT' made by a customer.
Each transaction for a customer is given a unique, ascending reference number.
In a Program, I could use
SELECT
FT.CUST_NO,
FT.TRANSACTION_AMOUNT,
FT.TRANSACTION_DATE
FROM
FINANCIAL_TRANSACTION FT,
WHERE
FT.TRANSACTION_CODE = 'PAY' AND
FT.CUST_NO = :CUST-NO
ORDER BY
TRANSACTION_ID DESC
LIMIT TO 1 ROW;
How can I create an object so that a User can create a report showing the latest payment for each customer?
Using 'Calculations' in conditions, appears to be very confusing to the users and is a bit long-winded to repeat in Multiple Queries. Effectively, what I am looking for is a way of defining an object which becomes a calculation condition.
Each transaction for a customer is given a unique, ascending reference number.
In a Program, I could use
SELECT
FT.CUST_NO,
FT.TRANSACTION_AMOUNT,
FT.TRANSACTION_DATE
FROM
FINANCIAL_TRANSACTION FT,
WHERE
FT.TRANSACTION_CODE = 'PAY' AND
FT.CUST_NO = :CUST-NO
ORDER BY
TRANSACTION_ID DESC
LIMIT TO 1 ROW;
How can I create an object so that a User can create a report showing the latest payment for each customer?
Using 'Calculations' in conditions, appears to be very confusing to the users and is a bit long-winded to repeat in Multiple Queries. Effectively, what I am looking for is a way of defining an object which becomes a calculation condition.