Returns Invoice details

Parameters

dateFrom

The date to retrieve invoice details from in format YYYY/MM/DD

dateTo

The date to retrieve invoice details to in format YYYY/MM/DD

start

where to start from e.g, by default, page 2 should be set to 10

length

number of results

order

order to display the results in, asc or desc.

draw

Example

FM_api('Invoices_getDT', ['dateFrom' => '2018-01-01', 'dateTo' => '2019-01-02', 'start' => '0','order' => '', 'draw' => '1', 'length' => '10'])

On Success

{"draw":1,"recordsTotal":"14","totals":{"total":"6281.5","paid":"2213","ids":"13"},"recordsFiltered":"13","data":[["11|126|8","2018-11-07","1","24",0,"1",null,"0","2018-11-21 16:56:21"],["12|127|9","2018-11-07","1","90",0,"1",null,"1","2018-11-22 09:36:58"],["13|130|10","2018-11-09","1","3",0.5,"2",null,"0","2018-11-12 16:53:40"],["15|132|12","2018-11-12","3","2.5",0,"1",null,"0","2018-11-16 09:36:24"],["16|133|","2018-11-13","6","2400",2400,"1",null,"0","2018-11-22 09:50:00"],["17|99|10","2018-11-22","2",""...