Add custom validation which makes sure that the number of tickets is not greater than the transaction amount. Also makes sure that if there is amount, unless 'dont print tickets' or 'not sweepstakes' is checked, you must have some number in the number of tickets field.