# Invoice Process

Now when the customer cards are configured correctly, we look at how the invoice process to send PDF email works with the Golden EDI app.

When a sales order, invoice or credit note is created, it will inherit the 'GEDI profile' from the customer cards that we have configured. The GEDI profile will activate the freemium functions.

{% hint style="warning" %}
Before posting a sales invoice or credit note, it is possible to remove or change the 'GEDI profile' on it to override the customer cards for that specific sales invoice or credit note.
{% endhint %}

When you are trying to "post" a sales invoice or credit memo, the Golden EDI app will listen to this event and add it to the 'GEDI Message Queue' as an unprocessed message.

{% hint style="info" %}
At this point the '**GEDI Status'** for the posted sales invoice or credit note have been updated to '**Requested'**, letting you know that the message is queued.
{% endhint %}

<figure><img src="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2Fz333jLln612E9JvrJbHp%2Fimage.png?alt=media&#x26;token=636d28e3-f88c-45fe-a21e-bb5635713aa7" alt=""><figcaption></figcaption></figure>

Every 5 minutes during normal business hours, a 'Job Queue Entry' is scheduled to process all unprocessed message in the 'GEDI Message Queue', at this point they will be sent out as emails via your SMTP.

{% hint style="success" %}
If the email was sent out successfully, the '**GEDI Status'** of the posted sales invoice or credit note will be updated to '**Sent**'.
{% endhint %}

<figure><img src="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2FiUFpukKfzhfg1mi7dKoX%2Fimage.png?alt=media&#x26;token=628beac3-7ba7-4d9c-aef2-0d24e751f877" alt=""><figcaption></figcaption></figure>
