Wrong invoice data send to zatca different from our erp system

Dear @Aturkistani ,
we have 2 issues in which we accidently send wrong date to zatca, that is:
In first case, we send more items (5 instead of 4 lines) than in the system and invoice also got success. but the tax value and amount did not match with our system… creating a dredit note in our system, will still wont correct the issue as the credit not for this invoice will have only 4 items from our system.
In case 2, we accidently send zero base amount to zatca. and the total tax and amount calculated was zero. It was issue in the integration only, in our system, it was correct. how can we correct this…?
Will creating credit notes in both cases and reissuing the invoices will be enough?

@fazil.thayyil Yes you have to reverse transactions by passing credit notes then send correct invoices.