Problem: How to issue a tax invoice for an advance payment and close it at the time of full payment

Solution: