@Arkri
Hi, You can write a custom script to validate if the customer has any outstanding amount, then prevent from saving/submitting the invoice. If any previous invoice is unpaid, customer will have outstanding balance and you can use that to write the custom script.