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.TRANSACATION_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 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.
(apologies if this message has appeared before, I have tried to submit it 3 times this morning!!!)
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.TRANSACATION_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 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.
(apologies if this message has appeared before, I have tried to submit it 3 times this morning!!!)