MCRMarginAlert_Sales Class [AX 2012]
The MCRMarginAlert_Sales class handles logic for margins in terms of a sales order.
| Method | Description | |
|---|---|---|
| calcCostPricePcs | Calculates the cost price for an item in pieces. (Inherited from MCRMarginAlert.) |
| calcEstimatedSalesPrice | Calculates the estimated sales price of an item. (Inherited from MCRMarginAlert.) |
| calcExtendedUnitDiscount | Calculates the extended unit discount. (Inherited from MCRMarginAlert.) |
| calcExtendedUnitPrice | Calculates the extended unit price of a sales line. (Inherited from MCRMarginAlert.) |
| calcMargin | Calculates margin percentage and all values related to the margin calculation. (Inherited from MCRMarginAlert.) |
| calcPdsRebateAgreementLineAmt | Calculates the rebate agreement line amount. (Inherited from MCRMarginAlert.) |
| calcRebateAmountPerUnit | Calculates the rebate agreement line amount per unit. (Inherited from MCRMarginAlert.) |
| calcRoyaltyAmountForPricing | Calculates the royalty amount per quantity for pricing. (Inherited from MCRMarginAlert.) |
| calcRoyaltyAmountPerUnit | Calculates the royalty amount per unit for pricing. (Inherited from MCRMarginAlert.) |
| calcTotalBillbackAmount | Calculates the total billback amount. (Inherited from MCRMarginAlert.) |
| calcTotalBrokerAmount | Calculates the total broker amount. (Inherited from MCRMarginAlert.) |
| calcTotalCustRebateAmount | Calculates the total customer rebate amount. (Inherited from MCRMarginAlert.) |
| calcTotalPdsRebateAmount | Calculates the total rebate amount. (Inherited from MCRMarginAlert.) |
| calcTotalRoyaltyAmount | Calculates the total royalty amount. (Inherited from MCRMarginAlert.) |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| convertPrice | Converts the specified price based on the class variables. (Inherited from MCRMarginAlert.) |
| convertQtyToBaseUnit | Converts the quantity to the base unit. (Inherited from MCRMarginAlert.) |
| convertToNegativeRebateAmount | Changes the sign of the specified rebate amount if the rebate quantity is less than zero. (Inherited from MCRMarginAlert.) |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getPdsRebateAgreementCalcDate | Gets the rebate agreement calculated date. (Overrides the getPdsRebateAgreementCalcDate Method.) |
| getRoyaltyCalcDate | Gets the royalty calculated date. (Overrides the getRoyaltyCalcDate Method.) |
| getRoyaltyCalcDateRequestShipDate | Gets the royalty calculated date if the royalty record's CalcDates field is set to MCRTradeCustCalcDates::RequestShipDate. (Overrides the getRoyaltyCalcDateRequestShipDate Method.) |
| 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 MCRMarginAlert_Sales class. |
| 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. (Inherited from MCRMarginAlert.) |
| parmCostPricePcs | Gets the CostPricePcs parameter. (Inherited from MCRMarginAlert.) |
| parmCurrencyCode | Gets the CurrencyCode parameter. (Inherited from MCRMarginAlert.) |
| parmCustAccount | Gets the CustAccount parameter. (Overrides the parmCustAccount Method.) |
| parmCustRebateAmountPerUnit | Gets the CustRebateAmountPerUnit parameter. (Inherited from MCRMarginAlert.) |
| parmEstimatedSalesPrice | Gets the EstimatedSalesPrice parameter. (Inherited from MCRMarginAlert.) |
| parmExtendedUnitDiscount | Gets the ExtendedUnitDiscount parameter. (Inherited from MCRMarginAlert.) |
| parmExtendedUnitPrice | Gets the ExtendedUnitPrice parameter. (Inherited from MCRMarginAlert.) |
| parmInventDimId | Gets the InventDimId parameter. (Inherited from MCRMarginAlert.) |
| parmInventQty | Gets the InventQty parameter. (Overrides the parmInventQty Method.) |
| parmInventTable | Gets the InventTable parameter. (Inherited from MCRMarginAlert.) |
| parmInventUnitId | Gets the InventUnitId parameter. (Inherited from MCRMarginAlert.) |
| parmItemId | Gets the ItemId parameter. (Inherited from MCRMarginAlert.) |
| parmLineAmount | Gets the LineAmount parameter. (Inherited from MCRMarginAlert.) |
| parmLineDisc | Gets the LineDisc parameter. (Inherited from MCRMarginAlert.) |
| parmLinePercent | Gets the LinePercent parameter. (Inherited from MCRMarginAlert.) |
| parmMarginPercent | Gets the MarginPercent parameter. (Inherited from MCRMarginAlert.) |
| parmMarginPrice | Gets the MarginPrice parameter. (Inherited from MCRMarginAlert.) |
| parmMarkup | Gets the Markup parameter. (Inherited from MCRMarginAlert.) |
| parmMCRMarginAlertMap | Gets or sets the MCRMarginAlertMap parameter. (Inherited from MCRMarginAlert.) |
| parmMCRMarginPercentStr | Gets the MCRMarginPercentStr parameter. (Inherited from MCRMarginAlert.) |
| parmModuleInventPurchSales | Gets the ModuleInventPurchSales parameter. (Overrides the parmModuleInventPurchSales Method.) |
| parmMultiLnDisc | Gets the MultiLnDisc parameter. (Overrides the parmMultiLnDisc Method.) |
| parmMultiLnPercent | Gets the MultiLnPercent parameter. (Overrides the parmMultiLnPercent Method.) |
| parmPDSCWQty | Gets the PDSCWQty parameter. (Overrides the parmPDSCWQty Method.) |
| parmPrice | Gets the Price parameter. (Inherited from MCRMarginAlert.) |
| parmPriceUnit | Gets the PriceUnit parameter. (Inherited from MCRMarginAlert.) |
| parmRoyaltyAmountPerUnit | Gets the RoyaltyAmountPerUnit parameter. (Inherited from MCRMarginAlert.) |
| parmSalesLine | Gets or sets the SalesLine parameter. |
| parmTotalVendorRebate | Gets or sets the TotalVendorRebate parameter. (Inherited from MCRMarginAlert.) |
| parmUnitId | Gets the UnitId parameter. (Inherited from MCRMarginAlert.) |
| parmUnitQty | Gets the UnitQty parameter. (Inherited from MCRMarginAlert.) |
| parmVendRebateAmountPerUnit | Gets the VendRebateAmountPerUnit parameter. (Inherited from MCRMarginAlert.) |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| shouldDeductBroker | Indicates whether the broker amount should be deducted. (Overrides the shouldDeductBroker Method.) |
| shouldDeductCustRebate | Indicates whether the customer rebate amount should be deducted. (Overrides the shouldDeductCustRebate Method.) |
| shouldDeductRoyalty | Indicates whether the royalty amount should be deducted. (Overrides the shouldDeductRoyalty Method.) |
| shouldDeductVendorRebate | Indicates whether the vendor rebate amount should be deducted. (Inherited from MCRMarginAlert.) |
| 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. (Inherited from MCRMarginAlert.) |
| usePurchPriceForMarginCalc | Indicates whether the purchase price should be used for margin calculations. (Inherited from MCRMarginAlert.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::calcMarginServer | Runs the calcMargin method on server and returns an object containing results. |
| ::construct | Initializes a new instance of the MCRMarginAlert_Sales class. |
| ::newSalesLine | Creates a MCRMarginAlert_Sales object from a SalesLine record. |
Community Additions
ADD
Show: