Conditions | 3 |
Paths | 3 |
Total Lines | 21 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function createNewNote($request, $custID, $userID) |
||
13 | { |
||
14 | if($request->shared) |
||
15 | { |
||
16 | $parent = $this->getParentID($custID); |
||
17 | if($parent) |
||
18 | { |
||
19 | $custID = $parent; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | CustomerNotes::create([ |
||
24 | 'cust_id' => $custID, |
||
25 | 'user_id' => $userID, |
||
26 | 'shared' => $request->shared, |
||
27 | 'urgent' => $request->urgent, |
||
28 | 'subject' => $request->subject, |
||
29 | 'description' => $request->description, |
||
30 | ]); |
||
31 | |||
32 | return true; |
||
33 | } |
||
63 |