EXT_Article_GetPrice
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