we have a project advanced invoice with value 10000$ and after posting the customer accept only 9000$ so how can we create credit not for only 1000$ ?

we have a project advanced invoice with value 10000$ and after posting the customer accept only 9000$ so how can we create credit not for only 1000$ ?