EXT_Document_AddLine
MSS 5.0 - Extensibility - Functions Kalipso to MSS - EXT_Document_AddLine
This function is used to add a new line to the current document in the temporary table (DCL_Temp)
Input parameters:
inLineType β Type of the line (N β Normal / B β Bonus / O β Offer / D β Return);
inArticleCode β Code of the article;
inQuantity β Quantity (corresponds to DCLQT2);
inUnit β If empty the default article unit will be used(corresponds to DCLUN2 and must exist in MSUND table);
inPrice β If empty MSS will calculate the price and discounts;
inDiscount1 β Can be a value or percentage depending on the parameter configured in Backoffice;
inDiscount2 β Additional discount percentage;
inDiscount3 β Additional discount percentage;
inDiscount4 β Additional discount percentage;
inPriceCode β Price code used to identify which price table used in the calculation (can be empty);
inDiscount1Code β Discount 1 code used to identify which price table used in the calculation (can be empty);
inDiscount2Code β Discount 2 code used to identify which price table used in the calculation (can be empty);
inDiscount3Code β Discount 3 code used to identify which price table used in the calculation (can be empty);
inDiscount4Code β Discount 4 code used to identify which price table used in the calculation (can be empty);
inUnitWeight β Unit weight;
inTotalWeight β Total weight (must be already calculated if applicable);
inLength β Length;
inHeight β Height;
inWidth β Width;
inObservations β Observations of the line;
inReturnTypeCode β Return type code (used when inLineType = D);
inIgnoreLots_SerialNumbers β Do not open Lots or Serial number selection window ;
inIgnoreComponents β Do not insert automatic components of the article;
inIgnoreBonusQuantities β Do not calculate bonus quantities;
Output parameters:
outResultCode β Return code: 0 β Done / < 0 User canceled, or error occurred;
outLineNumber β Number of the line created (DCLLIN);
Last updated
Was this helpful?