Cs-Cart Invoice

I noticed that the invoice is generated even though the order status is any other status than completed/ Paid.

How do we configure to allow the invoice generated only when the order status is Completed and Invoice Cancelled when the order is cancelled successfully?

Please find details here


Thanks, overlooked this. I have asked CS-Cart before, and they replied me no such funtionality in default cs-cart.