There are two ways I would use; depending on what output I wanted.
The first way, and the simplest would be group on the payment type. Then create a sum in the footer of the group. You can use the "Running Total" tool or use the code below.
SUM({vDailySales.Amount}, {vDailySales.PaymentType})
This will show a result for each of the payment types, so in your case twice, once for cash and once for cheque.
I think through here you can use formulas in the "Evaluate" section of running total; where you would use a true/false statement for what you wanted to show. The statement for "cash" for example would be:
if {vDailySales.PaymentType}="Cash" then true else false
The other method, which would be simpler if you wanted a grand total would be to use a conditional sum.
Define the variables in the header:
SHARED numbervar sumcash;
SHARED numbervar sumcheque;
sumcheque:=0;
sumcash:=0;
Then for each line in the report; add a field to conditionally sum the amounts; using a formula like:
SHARED numbervar sumcash;
SHARED numbervar sumcheque;
if {vDailySales.PaymentType}="cheque" then
sumcheque = sumcheque + {vDailySales.Amount};
else
sumcash = sumcash + {vDailySales.Amount};
Then at the bottom of the report, make a formula to display each of the variables seperately.