Skip to content

feat(actual) Resolvers for Finance: show available room for income an…#28

Open
rajakvk wants to merge 1 commit into
shoonyatech:mainfrom
rajakvk:main
Open

feat(actual) Resolvers for Finance: show available room for income an…#28
rajakvk wants to merge 1 commit into
shoonyatech:mainfrom
rajakvk:main

Conversation

@rajakvk
Copy link
Copy Markdown
Contributor

@rajakvk rajakvk commented Dec 29, 2021

…d expense for each category

Closes #27

Original feature request
shoonyatech/wallora.com#109

Comment thread datasource.js
* @returns workItems for Income and Expense Categories
*/
async getActualsWorkItems(v1AccessToken,v2AccessToken) {
return this.get(`stats/total-actual-amount-workitemwise?startdate=20211201&enddate=20211231`, null, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It takes hard coded dates. Please use startDate and endDate params instead

Comment thread datasource.js
}
/**
* Get actual amount for Income and Expense Categories
* @param v1AccessToken
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove token from docs

Comment thread datasource.js
}
/**
* Get planned amount for Income and Expense Categories
* @param v1AccessToken
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove tokens from API doc comment

Comment thread datasource.js
async getPlannedWorkItems(v1AccessToken,v2AccessToken, month) {
console.log('Access Token1:', v1AccessToken);
console.log('Access Token2:', v2AccessToken);
return this.get(`stats/total-planned-amount-workitemwise?startmonth=202112&endmonth=202112`, null, {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It takes hard coded dates. Please use startDate and endDate params instead

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add required resolvers for wallora issue #109

2 participants