EXT_Article_GetTotals
MSS 5.0 - Extensibility - Functions Kalipso to MSS - Article - EXT_Article_GetTotals
Function to get the totals for an article given a certain quantity, price and discounts.
Input parameters:
inDocumentType β Type of the document;
inCustomerCode β Code of the customer;
inArticleCode β Code of article;
inLength β Length of the article (ARTCMP);
inWidth β Width of the article (ARTLGR);
inHeight β Height of the article (ARTALT);
inWeight β Weight of the article (ARTPES);
inTotalWeight β Total weight (ARTPES * Quantity);
inQuantity β Quantity;
inQuantityFactor β Quantity factor when using alternative units;
inPrice β Price;
inDiscount1 β Discount 1;
inDiscount2 β Discount 2;
inDiscount3 β Discount 3;
inDiscount4 β Discount 4;
inLineType β Line type (N β Normal / B β Bonus / O β Offer / D - Returns);
inGlobalDiscount β Global commercial discount of the document;
inPPDiscount β Global PP discount of the document;
Output parameters:
outTotalDiscounts β Total value of the discounts applied;
outTotalWithoutVAT β Total without VAT tax;
outTotalAdditionalTaxes β Total of additional taxes;
outTotalVAT β VAT total value;
outTotalWithoutDiscounts β Total without discounts;
outVATTax β VAT tax used in VAT canculation;
Last updated