How to have the sum of quantity field on a payment field?