working edit cshift functionality

This commit is contained in:
Alexander Wong
2018-04-22 21:07:50 -06:00
parent 0950f264e8
commit 4f548d529f
13 changed files with 543 additions and 160 deletions
@@ -0,0 +1,13 @@
export const getEmployeeFromPrice = (priceUUID, selfUser) => {
const employees = selfUser && selfUser.client && selfUser.client.employees;
let matchEmployee = null;
employees.forEach(employee => {
const priceMatch = employee.prices.filter(price => {
return price.uuid === priceUUID;
});
if (priceMatch.length > 0) {
matchEmployee = employee;
}
});
return matchEmployee;
};