-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(actual) Resolvers for Finance: show available room for income an… #28
base: main
Are you sure you want to change the base?
Conversation
…d expense for each category
* @returns workItems for Income and Expense Categories | ||
*/ | ||
async getActualsWorkItems(v1AccessToken,v2AccessToken) { | ||
return this.get(`stats/total-actual-amount-workitemwise?startdate=20211201&enddate=20211231`, null, { |
There was a problem hiding this comment.
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
} | ||
/** | ||
* Get actual amount for Income and Expense Categories | ||
* @param v1AccessToken |
There was a problem hiding this comment.
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
@@ -31,4 +31,30 @@ export class WalloraAPI extends RESTDataSource { | |||
headers: this.getHeaders(v1AccessToken, v2AccessToken), | |||
}); | |||
} | |||
/** | |||
* Get planned amount for Income and Expense Categories | |||
* @param v1AccessToken |
There was a problem hiding this comment.
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
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, { |
There was a problem hiding this comment.
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
…d expense for each category
Closes #27
Original feature request
shoonyatech/wallora.com#109