group_by value, with a subtotal for each group and a total for each block. Matches /owner/reports/report/assets.400 instead of a partial list, and validation_errors includes a rows entry.from_date and to_date set the depreciation period. If you leave them out, both default to today. If you send both and don't filter by purchase date, only assets with depreciation inside that period are returned.curl --location --globoff 'https://.daftara.com/api2/reports/assets?group_by=All&id=&asset_staff_id=&purchase_date_from=&purchase_date_to=&from_date=&to_date=&status=&journal_cat_id=&asset_location_id=&branch_id=¤cy=' \
--header 'Accept: application/json' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "assets",
"title": "string",
"group_by": "string",
"currency": "string"
},
"filters": {
"property1": "string",
"property2": "string"
},
"columns": [
{
"key": "string",
"label": "string"
}
],
"blocks": [
{
"currency": "string",
"totals": {
"purchase_value_without_tax": 0,
"additions": 0,
"discounts": 0,
"current_value": 0,
"depreciations_balance_before": 0,
"periodic_depreciations": 0,
"total_depreciations": 0,
"asset_value_to_date": 0
},
"groups": [
{
"key": "string",
"subtotals": {
"purchase_value_without_tax": 0,
"additions": 0,
"discounts": 0,
"current_value": 0,
"depreciations_balance_before": 0,
"periodic_depreciations": 0,
"total_depreciations": 0,
"asset_value_to_date": 0
},
"assets": [
{
"id": 0,
"code": "string",
"name": "string",
"category": "string",
"quantity": 0,
"employee": "string",
"location": "string",
"in_service_date": "2019-08-24",
"purchase_date": "2019-08-24",
"branch": "string",
"purchase_value_without_tax": 0,
"additions": 0,
"discounts": 0,
"current_value": 0,
"depreciations_balance_before": 0,
"periodic_depreciations": 0,
"total_depreciations": 0,
"asset_value_to_date": 0,
"useful_life": 0,
"estimated_useful_life": "2019-08-24",
"status": "string",
"currency": "string"
}
]
}
]
}
],
"meta": {
"currency_count": 0,
"group_count": 0,
"asset_count": 0
}
}
}