Share via


InventTrans.unpostedInvoiceIdForReceivedPurchType Method

Returns an invoice ID of any invoices that are not posted.

Syntax

private UnpostedInvoiceId unpostedInvoiceIdForReceivedPurchType()

Run On

ClientOrServer

Return Value

Type: UnpostedInvoiceId Extended Data Type
An invoice ID for the invoice that is not posted; otherwise, an empty string.

Remarks

This method assumes the current record is already known to be a purchase type transaction and in a received state. It should only be called from the unpostedInvoiceId display method. The following invoice IDs can be returned from this method:

  • An empty string; if the receipt status is not received or there are no invoices that are not posted.

  • New; if there is a single invoice that is not posted without an ID assigned.

  • The invoice ID; if there is a single invoice that is not posted with an ID assigned.

  • *; if there are one or more invoices that are not posted with an ID assigned.

See Also

Reference

InventTrans Table