_getDT

Returns Customer Assets details

Parameters

cid

Customer ID

dateFrom

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

dateTo

The date to retrieve customer assets 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('CustomerAssets_getDT', ['cid' => '1','dateFrom' => '2018-01-01', 'dateTo' => '2019-01-02', 'start' => '0','order' => '', 'draw' => '1', 'length' => '10'])

On Success

{"draw":1,"recordsTotal":"3","recordsFiltered":"5","data":[["1","4353","Extinguisher","0.00","Fire",[null,null],["1","1"],"2018-09-24 11:33:51","Yes","1"],["5","3246","Fire alarm","0.00","Fire",["0000-00-00 00:00:00",null],["1","1"],"2018-09-24 11:39:24","No","5"],["7","5742","Fire alarm 3","0.00","Fire",[null,null],["0","6"],"2018-09-24 11:40:09","Yes","7"],["12","7534","Fire Hose","0.00","Fire",[null,null],["1","1"],"2018-09-27 12:23:33","Yes","12"],["15","","FIN TEST","0.00","Fire",[null,null],["1","1"],"...

Last updated