# POs, HES and approvals

> Gather the commercial evidence the customer requires before an invoice exists.

Source: https://app.relvoerp.com/docs/product/en/approvals-commercial-references/

Many corporate customers will not pay an invoice that does not cite their purchase order (OC, *orden de compra*). In that world, issuing first and asking for the PO afterwards is the fastest way to end up with an unpaid invoice and a credit note ahead of you.

Relvo reverses the order: the **commercial reference** is requested from the charge calculation, before issuance, and until it arrives the charge calculation is visibly blocked.

> **Key rule: Request the PO from the charge calculation, not from the invoice**
>
> The request goes out tied to the customer, the period and the charge calculation that requires it. When the customer replies, the reference already knows which future document it belongs to: nobody has to match a loose PDF to an invoice by hand.

## Reference types

A commercial reference can be the buyer's document that authorizes the spend, or a prior tax document that the new document must cite.

| Reference | Typical use | SII code |
| --- | --- | --- |
| Purchase order (OC) | Customer's purchase authorization | 801 |
| Order note (*nota de pedido*) | Formal order prior to the PO | 802 |
| HES | Service acceptance sheet | *alphanumeric* |
| Invoice | Document being corrected or continued | 33 · 34 (exempt) |
| Credit note | Prior correction being cited | 61 |
| Debit note | Prior correction being cited | 56 |
| Dispatch guide (*guía de despacho*) | Associated delivery | 52 |
| Export invoice | Export transaction | 110 |

> **Caution: HES is the alphanumeric exception**
>
> Every reference type is declared to the SII (Chile's tax authority) with a numeric code, except the HES, whose identifier is literally `HES`. If your integration assumes the reference type is always a number, the HES breaks it. Relvo treats it as the special case it is.

## What a reference stores

Beyond type, number and date, a reference captures the issuer's tax identity, the country, the net and total amounts, and—where applicable—the declared exchange rate. That makes it possible to compare what the PO authorizes with what the charge calculation computes, **before** issuance.

If the reference arrives as an attached document, Relvo extracts those fields and flags the result as pending review when the extraction was inconclusive.

## The two axes of a reference

The status of the reference and the status of its attached document are different things: a reference can be registered with manually entered data and no file at all.

**Reference status**

| Status | Meaning |
| --- | --- |
| Registered | The data was captured |
| Verified | An operator confirmed the data. Unblocks issuance |
| Superseded | A later version exists, for example a corrected PO |
| Rejected | Reviewed and found invalid |
| Voided | Withdrawn from operational use, kept for audit |

**Attachment extraction status**

Pending → processing → accepted · needs review · failed.

> **Caution: An automatic extraction is a proposal, not an approval**
>
> A *registered* reference with data read automatically from a PDF is not enough to lift the issuance block — an operator has to review and confirm it.

A superseded or voided reference is never deleted: it is kept so that, months later, you can explain why an invoice was issued citing that PO and not another.

**Example: Acme, July close**

1. The July charge calculation comes to USD 1,639.40 and the contract requires a PO.
2. Relvo sends the request from the charge calculation; the charge calculation shows as blocked for issuance.
3. Acme replies with PO no. `4500192387` for USD 20,000 per year.
4. An operator verifies it. The block is lifted.
5. The invoice is issued citing the PO as a commercial reference, code 801.

In August the same PO is still valid: the block does not have to be cleared from scratch every month.

## When the reference does not match

If the PO authorizes less than the charge calculation computes, the answer is not to issue anyway. It is to correct the charge calculation, or obtain an expanded PO, and record which of the two happened. Issuing above the PO produces an invoice the customer will reject under its own internal controls.

- [Charge calculations, pre-invoices and invoices](https://app.relvoerp.com/docs/product/en/invoicing-collections.md): What exactly gets blocked.
- [Messaging](https://app.relvoerp.com/docs/product/en/communications.md): How the request is sent and recorded.
- [Credit and debit notes](https://app.relvoerp.com/docs/product/en/credit-debit-notes.md): The cost of issuing without the evidence.
