Custom fields in transactions, sum of those in ticket header

Is it possible(without having to program it) to have a custom field for ticket
transaction and have a sum of those fields in the ticket header, the same way
as time worked works?

thanks
mk