Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Company Currency not included in Company API response #1272

Closed
dwkitchen opened this issue Feb 21, 2020 · 0 comments · Fixed by #1273 · May be fixed by committeehq/akaunting#1
Closed

Company Currency not included in Company API response #1272

dwkitchen opened this issue Feb 21, 2020 · 0 comments · Fixed by #1273 · May be fixed by committeehq/akaunting#1

Comments

@dwkitchen
Copy link
Contributor

dwkitchen commented Feb 21, 2020

Please, submit only real issues. Use the forum for support, feature requests, proposals, new versions, help etc. https://akaunting.com/forum

Steps to reproduce the issue

Access a company from the api e.g. api/companies/1

Expected result

{
"data":{
"id": 1,
"name": "My Company",
"email": "[email protected]",
"currency": "GBP",
"domain": "",
"address": null,
"logo": "public/img/company.png",
"enabled": 1,
"created_at": "2020-01-29T12:20:07+00:00",
"updated_at": "2020-01-29T12:20:07+00:00"
}
}

Actual result

{
"data":{
"id": 1,
"name": "My Company",
"email": "[email protected]",
"domain": "",
"address": null,
"logo": "public/img/company.png",
"enabled": 1,
"created_at": "2020-01-29T12:20:07+00:00",
"updated_at": "2020-01-29T12:20:07+00:00"
}
}

System information (Akaunting, PHP versions)

2.0.2

Additional comments

The Currency is required in the API PATCH, so need to know it when loading the company.

dwkitchen added a commit to committeehq/akaunting that referenced this issue Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant