# EXT\_Article\_GetPrice

> MSS documentation · https://doc.sysdevmobile.com/mss/extensibility/functions-kalipso-to-mss/article/ext_article_getprice
>
> EXT_Article_GetPrice pede ao MSS o preço, os quatro descontos e respetivos códigos de um artigo para um cliente e documento.

Function to ask MSS to get the Price and Discounts of an article.

_Input parameters_:

* inDocumentCode - Code of the document;
* inCustomerCode - Customer code;
* inArticleCode - Article code;
* inQuantity - Quantity if there are prices and discount by quantity;
* inDeliveryLocationCode - Delivery location code if price depends on this field;
* inHeaderUserField1/2/3 - Header user fields if the price depends on those fields;
* inUnit - Indication of the sales unit;

_Output parameters_:

* outResultCode - Return code: 0 – Done / < 0 Error;
* outPrice - Price;
* outDiscount1 - Discount 1;
* outDiscount2 - Discount 2;
* outDiscount3 - Discount 3;
* outDiscount4 - Discount 4;
* outPriceCode - Price code;
* outDiscount1Code - Discount 1 code;
* outDiscount2Code - Discount 2 code;
* outDiscount3Code - Discount 3 code;
* outDiscount4Code - Discount 4 code;
* outUserField1 - User field which can be used in Get Price
* outUserField2 - User field which can be used in Get Price
* outUserField3 - User field which can be used in Get Price
* outVATIncluded - If the price calculated has VAT included or not
* outVATTax - VAT Tax applied
