Hi all I was wondering what would you consider the best method to check that all the line records returned on a for each contain the same account number or not.
Code:
assuming the following simple for each.
for each Payment where
Payment.Payment-id eq 5678910:
For example if this were my returned results
then the payment account is 23456.
Account Payment-id Pay Total
1 23456 5678910 20.00
2 23456 5678910 23.00
3 23456 5678910 15.00
4 23456 5678910 200.00
5 23456 5678910 150.00
6 23456 5678910 60.00
However, if this were my returned results
then I know there is more than one payment
account.
Account Payment-id Pay Total
1 23456 5678910 20.00
2 23456 5678910 23.00
3 25555 5678910 15.00
4 22666 5678910 200.00
5 23456 5678910 150.00
6 23456 5678910 60.00