MCRMarginAlert Class [AX 2012]
The MCRMarginAlert class handles calculation of margins, and displays appropriate alerts.
| Method | Description | |
|---|---|---|
| calcCostPricePcs | Calculates the cost price for an item in pieces. |
| calcEstimatedSalesPrice | Calculates the estimated sales price of an item. |
| calcExtendedUnitDiscount | Calculates the extended unit discount. |
| calcExtendedUnitPrice | Calculates the extended unit price of a sales line. |
| calcMargin | Calculates margin percentage and all values related to the margin calculation. |
| calcPdsRebateAgreementLineAmt | Calculates the rebate agreement line amount. |
| calcRebateAmountPerUnit | Calculates the rebate agreement line amount per unit. |
| calcRoyaltyAmountForPricing | Calculates the royalty amount per quantity for pricing. |
| calcRoyaltyAmountPerUnit | Calculates the royalty amount per unit for pricing. |
| calcTotalBillbackAmount | Calculates the total billback amount. |
| calcTotalBrokerAmount | Calculates the total broker amount. |
| calcTotalCustRebateAmount | Calculates the total customer rebate amount. |
| calcTotalPdsRebateAmount | Calculates the total rebate amount. |
| calcTotalRoyaltyAmount | Calculates the total royalty amount. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| convertPrice | Converts the specified price based on the class variables. |
| convertQtyToBaseUnit | Converts the quantity to the base unit. |
| convertToNegativeRebateAmount | Changes the sign of the specified rebate amount if the rebate quantity is less than zero. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getPdsRebateAgreementCalcDate | Gets the rebate agreement calculated date. |
| getRoyaltyCalcDate | Gets the royalty calculated date. |
| getRoyaltyCalcDateRequestShipDate | Gets the royalty calculated date if the royalty record's CalcDates field is set to MCRTradeCustCalcDates::RequestShipDate. |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| new | Initializes a new instance of the Object class. (Inherited from Object.) |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmBrokerAmountPerUnit | Gets the BrokerAmountPerUnit parameter. |
| parmCostPricePcs | Gets the CostPricePcs parameter. |
| parmCurrencyCode | Gets the CurrencyCode parameter. |
| parmCustAccount | Gets the CustAccount parameter. |
| parmCustRebateAmountPerUnit | Gets the CustRebateAmountPerUnit parameter. |
| parmEstimatedSalesPrice | Gets the EstimatedSalesPrice parameter. |
| parmExtendedUnitDiscount | Gets the ExtendedUnitDiscount parameter. |
| parmExtendedUnitPrice | Gets the ExtendedUnitPrice parameter. |
| parmInventDimId | Gets the InventDimId parameter. |
| parmInventQty | Gets the InventQty parameter. |
| parmInventTable | Gets the InventTable parameter. |
| parmInventUnitId | Gets the InventUnitId parameter. |
| parmItemId | Gets the ItemId parameter. |
| parmLineAmount | Gets the LineAmount parameter. |
| parmLineDisc | Gets the LineDisc parameter. |
| parmLinePercent | Gets the LinePercent parameter. |
| parmMarginPercent | Gets the MarginPercent parameter. |
| parmMarginPrice | Gets the MarginPrice parameter. |
| parmMarkup | Gets the Markup parameter. |
| parmMCRMarginAlertMap | Gets or sets the MCRMarginAlertMap parameter. |
| parmMCRMarginPercentStr | Gets the MCRMarginPercentStr parameter. |
| parmModuleInventPurchSales | Gets the ModuleInventPurchSales parameter. |
| parmMultiLnDisc | Gets the MultiLnDisc parameter. |
| parmMultiLnPercent | Gets the MultiLnPercent parameter. |
| parmPDSCWQty | Gets the PDSCWQty parameter. |
| parmPrice | Gets the Price parameter. |
| parmPriceUnit | Gets the PriceUnit parameter. |
| parmRoyaltyAmountPerUnit | Gets the RoyaltyAmountPerUnit parameter. |
| parmTotalVendorRebate | Gets or sets the TotalVendorRebate parameter. |
| parmUnitId | Gets the UnitId parameter. |
| parmUnitQty | Gets the UnitQty parameter. |
| parmVendRebateAmountPerUnit | Gets the VendRebateAmountPerUnit parameter. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| shouldDeductBroker | Indicates whether the broker amount should be deducted. |
| shouldDeductCustRebate | Indicates whether the customer rebate amount should be deducted. |
| shouldDeductRoyalty | Indicates whether the royalty amount should be deducted. |
| shouldDeductVendorRebate | Indicates whether the vendor rebate amount should be deducted. |
| skipMarginCalc | |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| useEstimatedSalesPrice | Indicates whether the estimated sales price should be used. |
| usePurchPriceForMarginCalc | Indicates whether the purchase price should be used for margin calculations. |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::calcMarginPercent | Calculates the margin percent based on a given price and cost price. |
| ::getMarginIcon | Returns the margin icon base on the sales parameter setup. |
| ::marginPercentToMarginPercentStr | Converts a numeric percentage to the string to be displayed. |
Community Additions
ADD
Show: