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

Note: The error message is shown inside the process, the different returns codes serve to, for example, set the focus in the correct field.

Last updated