# Prepri

### Översikt

Prepri är en beställningsportal som används av tryckerier för att ta emot beställningar från sina kunder. Genom integrationen med GKS4 överförs orderdata automatiskt till GKS, där en försäljningsorder skapas utan manuell inmatning. Överföringen sker i samband med att ordern markeras som levererad i Prepri.

👉 Läs mer om Prepri på [Powerinit.com](https://powerinit.com/bestallningsportal/)

### Krav

* Kunden måste redan finnas i GKS4 med samma kundnummer.

### Orderdata som mappas till GKS4

Följande data läses in från beställningar i Prepri.

| Fält i Prepri             | Mappas till GKS4                    | Kommentar                          |
| ------------------------- | ----------------------------------- | ---------------------------------- |
| `CustomerNo`              | `SalesOrder.CustomerNumber`         | Kunden identifieras via kundnummer |
| `CustomerName`            | `BillingCompanyInfo.Name`           | Kundnamn                           |
| `InvoiceEmail`            | `BillingCompanyInfo.InvoiceEmail`   | Faktura e-post                     |
| `InvoiceAddressLine1-2`   | `BillTo.Address1-2`                 | Fakturaadress                      |
| `InvoiceCity`             | `BillTo.City`                       |                                    |
| `InvoicePostalCode`       | `BillTo.ZipCode`                    |                                    |
| `InvoiceRecipientLine1-2` | `BillingContact.FirstName/LastName` | Kontaktperson                      |
| `OrderReference`          | `PurchaseOrderNumber`               | Kundens referens                   |
| `CustomerComment`         | `NoteFromCustomer`                  | Kommentar från kund                |
| `EstimatedDeliveryDate`   | `PromisedDeliveryDate`              | Beräknat leveransdatum             |
| `OrderLines`              | `SalesOrderlines`                   | Orderrader                         |

Varje orderrad i Prepri innehåller:

* **Produktnamn** (`ProductName`)
* **Antal** (`QuantityOrdered`)
* **Pris per enhet** (`PricePerUnit`)
* **Moms** (`VatRate`)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs4.simutek.se/integrationer/prepri.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
