Page tree
Skip to end of metadata
Go to start of metadata

This function fetches a single invoice from the system

Parameters

Used to call the function

  1. lastModified - DateTime
  2. opt - TInvoiceGetOptions

Returns

Returns the following

 

Example fetching Invoices created changed from 1.1.2016
TInvoiceGetOptions iOptions = new dkWS.TInvoiceGetOptions() { ExcludeLines = true, ExcludeObject = true, MaxInvoices = 50, ExtraProperties = new string[] {"recordmodified"} };
var invoices = serv.GetInvoicesModified(new DateTime(2016, 1, 1),iOptions);
var invList = new List<TInvoice>();
invList.AddRange(invoices);
while(invoices.Count() > 40)
{                
     invoices = serv.GetInvoicesModified(DateTime.Parse(invoices[invoices.Count() - 1].ExtraProperties[0].Value), iOptions);
     invList.AddRange(invoices);
}