mirror of
https://github.com/bakhirev/assayo.git
synced 2024-11-16 08:11:40 +00:00
update
This commit is contained in:
parent
b5c0fd7167
commit
6f6ac5a749
|
@ -86,7 +86,7 @@ export default class DataGripByScope {
|
||||||
const user = dot.authors[name];
|
const user = dot.authors[name];
|
||||||
const days: number = Object.keys(user.days).length;
|
const days: number = Object.keys(user.days).length;
|
||||||
// TODO: need middle salary in month;
|
// TODO: need middle salary in month;
|
||||||
salaryCache[name] = salaryCache[name] || userSettings.getCurrentSalaryInMonth(name);
|
salaryCache[name] = salaryCache[name] || userSettings.getCurrentSalaryInDay(name);
|
||||||
cost += days * salaryCache[name];
|
cost += days * salaryCache[name];
|
||||||
dot.authors[name] = { ...user, days };
|
dot.authors[name] = { ...user, days };
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,10 @@ class UserSettings implements IUserSettingsStore {
|
||||||
return this.getEmploymentContract(name).value;
|
return this.getEmploymentContract(name).value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getCurrentSalaryInDay(name: string) {
|
||||||
|
return this.getCurrentSalaryInMonth(name) / 30;
|
||||||
|
}
|
||||||
|
|
||||||
getMiddleSalaryInMonth(
|
getMiddleSalaryInMonth(
|
||||||
name: string,
|
name: string,
|
||||||
firstCommitTime: number,
|
firstCommitTime: number,
|
||||||
|
|
Loading…
Reference in a new issue