# ICV , PIH for two type invoices (standard,simplified) In Same Device

**URL:** https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799
**Category:** General
**Created:** [June 9, 2024, 8:59am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799 "2024-06-09T08:59:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)
#### Post date: [June 9, 2024, 8:59am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/1 "2024-06-09T08:59:46Z")

</div>

If Device (Server) sending two type invoice (Standard,Simplified) What about PIH , ICV  
we know at :

Invoice Simplified , PIH put by device , and you can send any time at 24h from issued.  
Invoice Standard , PIH put by last sent doc  
The Q. **Is PIH is diffreanal for each type(standard,simplified) in same device(owned pcsid)**?

---

<div class="post-metadata">

### Author: ![halrashidy](https://avatars.discourse-cdn.com/v4/letter/h/3bc359/32.png) [@halrashidy](https://zatca1.discourse.group/u/halrashidy)
#### Post date: [June 10, 2024, 12:04pm UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/2 "2024-06-10T12:04:44Z")

</div>

Dear @Mohammad.Baker, please note that the PIH for the first sent invoice from the EGS must be a “0” value encoded to base64. This sequence is associated with each device/PCISID onboarded, and after that, it will be the previous hash of the latest submitted invoice, whatever the type of invoice sent when using the same device.

---

<div class="post-metadata">

### Author: ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)
#### Post date: [July 11, 2024, 8:31am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/3 "2024-07-11T08:31:54Z")

</div>

> [@halrashidy](#):
>
> whatever the type of invoice sent when using the same device.

The standard document is sent immediately, but it is very difficult to send simplified documents immediately to Zatka in order for the PIH to be unified between them, to be given to the next document.

What can we do for this ?

---

<div class="post-metadata">

### Author: ![Malik](https://dub1.discourse-cdn.com/flex013/user_avatar/zatca1.discourse.group/malik/32/708_2.png) [@Malik](https://zatca1.discourse.group/u/Malik)
#### Post date: [July 25, 2024, 10:36am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/4 "2024-07-25T10:36:39Z")

</div>

Hi, first generate XML of all it will have PIH and then you can keep reporting/clearing. thanks

---

<div class="post-metadata">

### Author: ![almadani\_abdullah](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@almadani\_abdullah](https://zatca1.discourse.group/u/almadani_abdullah)
#### Post date: [July 25, 2024, 1:52pm UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/5 "2024-07-25T13:52:47Z")

</div>

Dear @Mohammad.Baker,

Invoice XML, including PIH, should be generated in real time regardless of the send time.

---

<div class="post-metadata">

### Author: ![Mohammad.Baker](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@Mohammad.Baker](https://zatca1.discourse.group/u/Mohammad.Baker)
#### Post date: [July 28, 2024, 11:18am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/6 "2024-07-28T11:18:25Z")

</div>

The Real Problem now for Simplified Invoice PIH  
If we have Device POS (offline in worktime) do this steps:  
1.save invoice .  
2.generate xml ( with PIH) . (if not with the sign will errors)  
3.sign xml (bec need QR).  
4.print(share) to customer  
and end of this day  
5.send to Zatca … if sent to Zatca Without Order maybe one Invoice not accept by zatca , now PIH is not correct for next invoice  
You say PIH “should be generated in real time regardless of the send time.”  
How to slove this.

---

<div class="post-metadata">

### Author: ![Ankit.K.Tiwari](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Ankit.K.Tiwari](https://zatca1.discourse.group/u/Ankit.K.Tiwari)
#### Post date: [August 5, 2024, 8:55am UTC](https://zatca1.discourse.group/t/icv-pih-for-two-type-invoices-standard-simplified-in-same-device/1799/7 "2024-08-05T08:55:50Z")

</div>

@Mohammad.Baker you can send invoices to ZATCA in any order (you can send invoice # 5 then 4 then 1 then 2). So long as invoices are generated in a sequence sending them can be in any order. Regarding PIH sequence, please note this sequence is regardless of status of acceptance by ZATCA and type of document (B2B or B2C). Let us say 5 invoices are sent 1,2,3,4,5. Invoice number 3 is rejected, even in this case invoice #4 will have PIH as hash of invoice 3 (even though 3 was rejected it doesn’t change hash of 3).
