Share via


SalesTable.lastInvoice Method

Returns the document number of the last invoice posted for this sales order.

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
          display InvoiceId lastInvoice([boolean _skipVendorFulfilledInvoices])

  Microsoft Dynamics AX 2012 R2 (SYS)
          display InvoiceId lastInvoice()

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          display InvoiceId lastInvoice()

  Microsoft Dynamics AX 2012 (FPK)
          display InvoiceId lastInvoice()

  Microsoft Dynamics AX 2012 (SYS)
          display InvoiceId lastInvoice()

Run On

ClientOrServer

Parameters

  • _skipVendorFulfilledInvoices
    Type: boolean
    true if sales invoices that have been fulfilled by intercompany invoices should be skipped; otherwise, false.

Return Value

Type: InvoiceId Extended Data Type
The document number of the last invoice posted for this sales order.

See Also

Reference

SalesTable Table