InventTransInvoice::unpostedInvoiceId Method [AX 2012]
Retrieves the invoice ID of any unposted invoices for the specified inventory transaction.
Syntax
server public static UnpostedInvoiceId unpostedInvoiceId(InventTrans _inventTrans)
Run On
Server
Parameters
- _inventTrans
Type: InventTrans Table
The inventory transaction for which the unposted invoice ID is found.
Return Value
Type: UnpostedInvoiceId Extended Data Type
An invoice ID for the unposted invoice; otherwise, an empty string.
Remarks
The following invoice IDs can be returned from this method:
An empty string if the receipt status is not received or there are no unposted invoices.
New if there is a single unposted invoice without an ID assigned.
An invoice ID if there is a single unposted invoice with an ID assigned.