Tax.setCashDiscount Method [AX 2012]

Sets the cashDiscAmount field and may set the cashDiscPercent field.

Syntax

public void setCashDiscount(Percent _cashDiscPercent, AmountCur _cashDiscAmount)

Run On

Server

Parameters

  • _cashDiscPercent
    Type: Percent Extended Data Type
    The value to set the cashDiscPercent field to, if the amount includes tax. If the amount does not include tax and the _cashDiscAmount parameter is not provided, this parameter is used to calculate the cashDiscAmount field.
  • _cashDiscAmount
    Type: AmountCur Extended Data Type
    The value to set the cashDiscAmount field to. If this value is provided, the _cashDiscPercent parameter will be ignored.

See Also

Reference

Tax Class