Payment in advance from a Sales order (COA)
Create and register a Sales order (COA) and select Payment in advance in the Payment terms field.
![PiA_COA_1.jpg](../../image/uuid-72afc17f-1194-e22c-3f1f-6684056488d5.jpg)
In the Notes tab on the Sales order (COA) item, there is a note that you cannot forward the Sales order (COA) to a Shipping advice (CSA) until a payment is registered.
![PiA_COA_2.jpg](../../image/uuid-41f339f1-8032-4e05-1829-542127598cca.jpg)
You can trigger a proforma invoice that you can send to the customer, when the Sales order (COA) is in Status 8. Make sure that the invoice is triggered from the Sales order (COA).
Use the context menu option, Create payment..., available on the Sales order (COA) when you receive the Payment (PAY). This is to bind the Sales order (COA) and Payment (PAY) together.
![PiA_COA_3.jpg](../../image/uuid-709c25ec-53ba-2eb9-02ed-19e47d40fbf2.jpg)
Or you can create a Payment (PAY) directly in the Payment (PAY) application. Enter the Payment (PAY) item and click on the OrderRef field and press ENTER.
Select the Sales order (COA) in the popup and click the OK button. Sales orders (COA) that are waiting for payments are listed in the popup.
![PAY_00.jpg](../../image/uuid-c3f5eaaa-db0d-aee9-6f4e-d666b33a9382.jpg)
Reference to the Payment (PAY) is shown in the Finance area on the Sales order (COA).
![PiA_COA_4.jpg](../../image/uuid-e2b085ca-df53-7ca4-3ed6-fb36f590a3bc.jpg)
The link to the Sales order (COA) and that it is a payment in advance is visible on the Payment (PAY) item.
![PiA_COA_5.jpg](../../image/uuid-9f603d8b-e8c5-59a6-9a3f-bb8738b75695.jpg)
An Account receivable transaction (CAT) post is created in Status 6, holding the payment in advance. This is used to clear the invoice later.
![PiA_COA_6.jpg](../../image/uuid-e6d0cd9e-12cd-a17b-8736-89214e25f5f6.jpg)
When the Payment (PAY) is registered and goes to Status 4, the note that you cannot forward the Sales order (COA) disappears, and the Sales order (COA) can be forwarded to a Shipping advice (CSA).
![PiA_COA_7.jpg](../../image/uuid-9ec90f0a-cfa3-4d50-4447-786a35fcddb2.jpg)
Forward the Shipping advice (CSA) to a Sales invoice (CIN) after the goods are shipped. The Sales invoice (CIN) will go to Status 9 with a reference to the Payment (PAY).
![PiA_COA_8.jpg](../../image/uuid-4cb9af0e-904a-9286-ddd3-cd8501e124e4.jpg)
The Payment (PAY) shows the clearing of the payment in advance and the Sales invoice (CIN).
![PiA_COA_9.jpg](../../image/uuid-9a58e603-6803-14ee-acf0-bc5fbe267d61.jpg)