# Assinde

The module supports returns of pharmaceutical products through the Assinde service:

- on items it shows the Assinde information received from the pharmaceutical database;
- on purchase returns it lets you enter the Assinde parcel number;
- on posted return shipments it lets you export a CSV file with the return contents, sent to Assinde through document exchange.


On the **Item Card**, **Pharmaceutical** FastTab, the following read-only fields are available:

| Field | Description |
|---|---|
| Assinde | Assinde indication for the item, received from the pharmaceutical database. |
| Assinde Starting Date | Date from which the Assinde indication applies. |

The same fields are also shown in the **Purchase Return Factbox**, for the item on the selected return line.


When items are updated from the pharmaceutical database, the **Assinde** and **Assinde Starting Date** fields are updated automatically with the received values. The date is updated only when the database provides one.


On the **Purchase Return Order** page, **Shipping and Payment** FastTab:

| Field | Description |
|---|---|
| Assinde Parcel No. | Parcel number assigned by Assinde to the return. It is carried over to the posted return shipment. |


On the **Posted Return Shipment** page, **Shipping** FastTab, the **Assinde Parcel No.** field is shown. If it was not entered before posting, it can be entered or corrected with the **Update Document** action, which opens a window where the field can be edited.


The **Assinde** document exchange format generates the return file to send to Assinde.


1. Set up a document exchange profile with the **Assinde** format and the desired transport.
2. Open the **Posted Return Shipment** to send and make sure **Assinde Parcel No.** is filled in (it is mandatory).
3. Start document exchange from the shipment and choose **Export CSV for Assinde**.
4. The file is generated and sent through the profile's transport; the file name is the return shipment number (letters and digits only) with the `.CSV` extension.


The semicolon-separated CSV file contains a header row and one row per returned lot, with these columns:

| Column | Content |
|---|---|
| NumeroCollo | Assinde parcel number of the return shipment. |
| AIC | AIC code of the item. |
| Nome | Description of the return line. |
| Lotto | Lot number. |
| Scadenza | Lot expiration date, in MM/YYYY format. |
| Quantita | Returned quantity (in base unit of measure). |

Notes:

- only item lines with a positive quantity are included, excluding correction lines, and only items that have an AIC code;
- if an item has no registered lots, a single row is exported with empty lot and expiration and with the item's total returned quantity.