strong note to the sub resource
default total amount of adhoc_charges
created a until for checking if input value is valid integer
fixed the discount calculation