EXT_Article_ValidatePriceAndDiscounts
MSS 5.0 - Extensibility - Functions Kalipso to MSS - Article - EXT_Article_ValidatePriceAndDiscounts
Function to validate if inputted price and discount are valid using MSS rules.
Input parameters:
inDocumentType β Type of the document;
inCustomerCode β Code of the customer;
inArticleCode β Code of article;
inCurrentPrice β Price;
inCurrentDiscount1 β Discount 1;
inCurrentDiscount2 β Discount 2;
inCurrentDiscount3 β Discount 3;
inCurrentDiscount4 β Discount 4;
inOriginalPrice β Price;
inOriginalDiscount1 β Discount 1;
inOriginalDiscount2 β Discount 2;
inOriginalDiscount3 β Discount 3;
inOriginalDiscount4 β Discount 4;
inLineType β Line type (N β Normal / B β Bonus / O β Offer / D - Returns);
Output parameters:
outResultCode β Return code:
1: OK 0: Error -1 Error in field price -2 Error in field discount 1 -3 Error in field discount 2 -4 Error in field discount 3 -5 Error in field discount 4
Last updated