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

Add category object and category_id to document resource #2984

Conversation

vitormattos
Copy link
Contributor

The endpoint api/documents don't return the category of invoice/bill as the endpoint api/transactions do. With this change will be possible return this value.

The return after this change:

{
	"data": [
		{
			"id": 3,
			...
			"category_id": 6,
			"category": {
				"id": 6,
				"company_id": 1,
				"name": "Category name",
				"type": "expense",
				"color": "green-500",
				"enabled": true,
				"parent_id": null,
				"created_from": "core::ui",
				"created_by": 1,
				"created_at": "2023-06-13T04:21:41+01:00",
				"updated_at": "2023-06-13T04:21:41+01:00"
			},

The endpoint api/documents don't return the category of invoice/bill as
the endpoint api/transactions do. With this change will be possible
return this value.

Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos vitormattos force-pushed the feature/add-category-to-document-resource branch from 0e3f4e6 to b1f5be1 Compare June 13, 2023 04:08
@cuneytsenturk cuneytsenturk added this to the 3.0.16 milestone Jun 13, 2023
@cuneytsenturk cuneytsenturk merged commit f44da98 into akaunting:master Jun 13, 2023
@cuneytsenturk
Copy link
Member

thanks for this feedback @vitormattos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants