> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/mss-extension-functions-mss-kalipso/orders/412-orders-select-article-price.md).

# 412 - (Orders) Select Article Price

412 - (Orders) Select Article Price

{% hint style="info" %}
This event only has Replace event
{% endhint %}

| Event   | Extension action set  | Description                                                                                                                    |
| ------- | --------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Replace | EXT\_0412\_2\_Replace | Will be executed when user clicks on Price tag in Quantity Screen if configured that can change Price Range on document lines. |

*Input Parameters:*

* inDocumentType – Type of the current document;
* inCustomerCode – Code of the selected customer;
* inArticleCode – Code of the selected article;
* inQuantity – Current quantity;
* inDeliveryLocationCode – Code of the selected delivery location;
* inHeaderUserField1 – Value of user field 1 from document;
* inHeaderUserField2 – Value of user field 2 from document;
* inHeaderUserField3 – Value of user field 3 from document;
* inCustomerPriceLine – Selected Price line;
* inPrice – Current price;
* inDiscount1 – Current discount 1;
* inDiscount2 – Current discount 2;
* inDiscount3 – Current discount 3;
* inDiscount4 – Current discount 4;

*Output Parameters:*

* outResultCode – Return code: 1 – Done / 0 – Error;
* outprice – Calculated price;
* outDiscount1 – Calculated discount 1;
* outDiscount2 – Calculated discount 2;
* outDiscount3 – Calculated discount 3;
* outDiscount4 – Calculated discount 4;
* outPriceCode – Code of calculated price;
* outDiscount1Code – Code of calculated discount 1;
* outDiscount2Code – Code of calculated discount 2;
* outDiscount3Code – Code of calculated discount 3;
* outDiscount4Code – Code of calculated discount 4;
* outUserField1 – Aditional field 1(not used);
* outUserField2 – Aditional field 2(not used);
* outUserField3 – Aditional field 3(not used);
* outVATIncluded – If the calculated price has VAT included or not (must return S - VAT included or N – Not included);
* outVATTax – VAT tax applied;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://doc.sysdevmobile.com/mss-extensibility/mss-5.0/mss-extension-functions-mss-kalipso/orders/412-orders-select-article-price.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
