Please go to the invoice>>Add the product and customer>>Scroll down>>Click on extra discount/apply coupon>>Click on add coupon>>Click on apply>>Click on save>>Click on create.