Share via


VendInvoiceInfoTable.approveVariance Method

Approves the price and quantity variances for the invoice represented by the current VendInvoiceInfoTable record.

Syntax

Note

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.

  Microsoft Dynamics AX 2012 R3
          public void approveVariance(
            boolean _approve, 
           [boolean _save, 
            boolean _isQtyUpdated])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public void approveVariance(boolean _approve, [boolean _save])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public void approveVariance(boolean _approve, [boolean _save])

  Microsoft Dynamics AX 2012 (FPK)
          public void approveVariance(boolean _approve, [boolean _save])

  Microsoft Dynamics AX 2012 (SYS)
          public void approveVariance(boolean _approve, [boolean _save])

Run On

Called

Parameters

  • _approve
    Type: boolean
    A Boolean value that specifies whether the variances are approved.
  • _save
    Type: boolean
    A Boolean value that specifies whether the document should be saved.

Remarks

If the _approve parameter is true, the approval information is added to the VendInvoiceInfoTable table buffer.If the _approve parameter is false, the approval information is cleared in the VendInvoiceInfoTable table buffer.The approval information consists of the following fields: the VarianceApproved, VarianceApprovedBy, and VarianceApprovedDateTime fields.Additionaly VarianceComment field can be set at the time of approval, before or after call to this method. The VarianceComment field will be cleared when this method is called by using the _approved parameter set to false.

See Also

Reference

VendInvoiceInfoTable Table