Quantity screen
MSS 5.0 - Extensibility - Functions MSS to Kalipso - Quantity screen
Replacing quantity screen (Orders, Sales, Deliveries and Services)
This information is valid either for function 410, 510, 2410 and 3210, the input parameters are the same for Before, Replace and After. When Replacing must return values to MSS.
Input Parameters:
inOpenMode – 0 new line, 1 when changing a line;
inDCCTPD – Type of the current document;
inDCCCLI – Code of the selected customer;
inCLIPRC – Line price of the customer (DCCACL.42 of the current document because it can be changed in the document)
inDCCLCE – Code of the selected delivery location;
inDCCDCG – Global discount;
inDCCDPP – Prompt payment discount;
inARTCOD – Code of the selected article;
inARTDSC – Description of the article;
inStock – Current Stock of the article;
inQty – Current quantity;
inUnit – Current selected unit;
inPrice – Current price;
inDiscount1 – Current discount 1;
inDiscount2 – Current discount 2;
inDiscount3 – Current discount 3;
inDiscount4 – Current discount 4;
inOriginalPrice – Original price given by MSS;
inOriginalDisc1 – Original discount 1 given by MSS;
inOriginalDisc2 – Current discount 2 given by MSS;
inOriginalDisc3 – Current discount 3 given by MSS;
inOriginalDisc4 – Current discount 4 given by MSS;
inDCLACL7_11 – Price and discounts codes concatenated by Character 7;
inPriceFactor – Multiplier factor for the price (loaded from units table MSUND, field UNDFCT);
inQtyFactor – Multiplier factor for the quantity (loaded from units table MSUND, field UNDFQT);
inLineType – Code of line type (N – Normal, D – Return, … check MSS documentation for full list);
inDCLMTD – Delivery motive code; inDCLSTM – Stock movement (1 – Normal / 2 – Unsaleable / 0 – Doesn’t move stock);
inLength – Length of the article (DCLCMP);
inWidth – Width of the article (DCLLGR);
inHeight – Height of the article (DCLALT);
inWeight – Unit weight of the article (DCLPES);
inTotalWeight – Total weight of the article (DCLPET);
inMaxQty – To validate Max Qty, for example, credit notes can’t add quantity greater than the origin invoice;
inOnlyDevol – To force the type of line to Only Return;
inCanChangeOnlyQty – To allow only the change of the quantity, line type, prices and discount can’t be changed;
inControlToFocus – Which control should have the focus: P – Price / Q – Quantity / D1 – Discount 1 / D2 – Discount 2 / D3 – Discount 3 / D4 – Discount 4 / if empty will assume Q;
inTypesToDisable – Disable line types, the codes of line type will be concatenated, for example “OB” will disable Bonus and Offer line types;
Output parameters:
outResultCode – Return code: 1 – OK / 0 – Cancel;
outprice – Price;
outDiscount1 – Discount 1;
outDiscount2 – Discount 2;
outDiscount3 – Discount 3;
outDiscount4 – Discount 4;
outLineType – Line type selected;
outUnit – Unit selected;
outPriceFactor – Price factor;
outQtyFactor – Quantity factor;
outQty – Quantity;
outLength – Length of the article;
outWidth – Width of the article;
outHeight – Height of the article;
outWeight – Weight of the article;
outTotalWeight – Total weight of the article;
outDCLMTD – Delivery motive code;
outDCLSTM - Stock movement;
inOriginalPrice – Original price given by MSS;
inOriginalDisc1 – Original discount 1 given by MSS;
inOriginalDisc2 – Current discount 2 given by MSS;
inOriginalDisc3 – Current discount 3 given by MSS;
inOriginalDisc4 – Current discount 4 given by MSS;
outLastCount – Last count used when article type is counter;
outActualCount – Actual count used when article type is counter;
outDCLACL_7_11 – Price and discounts codes concatenated by Character 7;
outOpenMSSModule – Return code: 1 – Open MSS quantity screen / 0 – Don’t open MSS quantity screen;
Last updated