You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The two behave exactly the same, the difference is that the front-end pre-populates the next audit date. If you pass a next_audit_date via the API, that will be stored.
Please confirm you have done the following before posting your bug report:
Describe the bug
When i do an Audit over GUI, next audit date will shown in the asset table view.
When i audit over API, it is not shown.
The output:
{"status":"success","messages":"Asset audit successfully logged.","payload":{"asset_tag":"00000016","note":"","next_audit_date":{"datetime":"2019-07-30 00:00:00","formatted":"30.07.2019 00:00"}
But the table field in GUI stays empty.
To Reproduce
Steps to reproduce the behavior:
curl https://assets.qa.server.com/api/v1/hardware/audit -H "Authorization: Bearer eyJ0eXAi...iUYG3wIfcY" -H "Content-Type: application/json" --request POST --data '{"asset_tag":"00000016","location_id":"1"}'
{"status":"success","messages":"Asset audit successfully logged.","payload":{"asset_tag":"00000016","note":"","next_audit_date":{"datetime":"2019-07-30 00:00:00","formatted":"30.07.2019 00:00"}}}
7: Look at "Next Audit Date" - empty
Expected behavior
"Next Audit Date" should be filled
Server (please complete the following information):
The text was updated successfully, but these errors were encountered: