Fórum
Ver pergunta

Rose: Documents relation   

15 visualizações
0
0
Hello!
We were trying to understand how to implement one of the use cases via API. To do that, we need to get some basic data from ROSE. May be somebody could advise how to better approach this.

Use case:
We’d like to display to our users simple report of their raw net income per selected period in conjunction with invoices they’ve made. We have some other needs to use this data, but to simplify things, let’s stick to this case.

Approach
In order to do that, we need to GET ALL Invoices for selected period and get MEMOS, linked to this invoices we’ve selected.

The Problem

The Problem we face is that in InvoiceResource API there’s no mentioning of any relations to other documents, such as Memos.
https://primaverabss.github.io/rose-product-erp/billing.invoices.html#InvoiceResource

I was researching the interface and found that Rose displays it upon separate request to some other API: https://app.rose.primaverabss.com/app/xxxxxx/xxxxxxx-xxxxxxxx/logisticsCore/traceability/document/

I couldn’t find any description of this API in documents.

I was also searching custom columns list, but:
1. There’s no search among custom attributes, so I had to browse them one-by-one
2. I didn’t find any link to Related documents or anything like that

Summary
So to summarize, what we want to be able to do is:
1. For accounting officer – to identify from the list invoices which were cancelled by Memos.
2. For API –  to get a list of Memos, associated with invoices with their respective values, so we could display:
1. List of invoices for specific period
2. List of Memos related to this Invoices with their respective values
3. The Sum of Total of Invoices minus Memos values.

Faça login para poder traduzir
Integração
API Endpoints
ROSE
Marcado como spam
Criado há 1 mês e 2 semanas maxegorov-2
m
maxegorov-2 Iniciante