Which invoice amounts sum to a given payment amount? (full version)