Add Check for pre-existing credit note entry for one invoice
Fix check for pre-existing credit notes