Credit Note PIH

In case of credit notes, previous invoice hash is that of a previous credit note or any invoice?

Any type of invoices …
(if the previous invoice is rejected from zatca (for example for any reason) it will be used also as PIH)