Query: Correct PIH Selection After a Rejected Invoice

Scenario:

  1. Invoice 1: Submitted successfully to ZATCA and marked as “Reported.”
  2. Invoice 2: Submitted using the hash of Invoice 1 as the Previous Invoice Hash (PIH), but rejected by ZATCA and marked as “Not Reported” due to some mistakes.
  3. Invoice 3: Now being prepared.

Question:
For Invoice 3, which invoice hash should be used as the PIH:

  • The hash of Invoice 1 (Reported)?
  • Or the hash of Invoice 2 (Not Reported)?