PurchEditLinesForm_Invoice.allowPaymentDisbursement Method [AX 2012]

Enables creating the payment disbursement.

public boolean allowPaymentDisbursement(
    ParmId _parmId, 
    TradeLineRefId _vendInvoiceInfoTableRefId, 
   [boolean _showError])

Run On

Client

Parameters

_parmId
Type: ParmId Extended Data Type
The parmId of the VendInvoiceInfoTable table that is used to enable creating the payment disbursement.
_vendInvoiceInfoTableRefId
Type: TradeLineRefId Extended Data Type
The vendInvoiceInfoTableRefId of the VendInvoiceInfoTable table that is used to enable creating the payment disbursement.
_showError
Type: boolean
A Boolean value that indicates whether to display the error message; optional.

Return Value

Type: boolean
true if the payment disbursement is enabled; otherwise, false.

This method checks the payment schedule that is defined in the VendTable, PurchTable, and the VendInvoiceInfoTable tables and checks the records count of a payment disbursement to perform the validation to enable the payment disbursement records creation.

Community Additions

ADD
Show: