working edit cshift functionality
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user