Share via


SalesLineDiscountService::construct Method [AX 2012]

Initializes a new instance of the SalesLineDiscountService class.

Syntax

server public static SalesLineDiscountService construct()

Run On

Server

Return Value

Type: SalesLineDiscountService Class
A new instance of the SalesLineDiscountService class.

Remarks

Use the following procedure to customize or extend the SalesLineDiscountService class.

  1. Create a new class that derives from SalesLineDiscountService.

  2. Overlayer the construct method on SalesLineDiscountService so that it returns an instance of the derived class.

  3. Override the methods from the SalesLineDiscountService class that you want to customize or extend in your derived class.

This procedure helps guarantee that your customizations are maintained if the base version of the SalesLineDiscountService class is changed, minimizing code conflicts during an upgrade. For more information, see Best Practices for Static Construct Methods.

See Also

Reference

SalesLineDiscountService Class