Returns Asset rentals details

Parameters

start

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

length

Number of results

order

Order to display results in e.g, asc desc

draw

asset-name

The name of the asset as an optional search filter

customer-name

The name of the customer renting the asset as an optional search filter

notes

Notes for the asset rental as an optional search filter

daysFrom

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

daysTo

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

Example

FM_api('AssetRentals_getDT', ['start' => '0', 'length' => '10', 'order' => 'asc', 'draw' => '0', 'asset-name' => '', 'customer-name' => '', 'notes' => '', 'daysFrom' => '', 'daysTo' => '' ])

On Success

{"draw":0,"recordsTotal":"5","recordsFiltered":"1","data":[["10","5","2018-12-19 00:00:00","2018-12-31 00:00:00",["0","1"],"130.0000","130.0000","","0",["151","152"],"",""]]}