Commit 423c02d303720d979da85b4c7e7659996cb4f680
Merge remote-tracking branch 'origin/master'
Showing
2 changed files
with
14 additions
and
0 deletions
Show diff stats
frontend/views/cabinet/arrivals.php
frontend/views/cabinet/users.php
| ... | ... | @@ -53,12 +53,14 @@ |
| 53 | 53 | <td>Сума до виплати</td> |
| 54 | 54 | </tr> |
| 55 | 55 | <?php |
| 56 | + $total = 0; | |
| 56 | 57 | foreach ($reports as $index => $report) { |
| 57 | 58 | if ($user->isAdmin()) { |
| 58 | 59 | $sum = $report->sum; |
| 59 | 60 | } else { |
| 60 | 61 | $sum = $report->sum * $report->intellectualProperty->creativeRoles[0]->part / 100; |
| 61 | 62 | } |
| 63 | + $total += $sum; | |
| 62 | 64 | ?> |
| 63 | 65 | <tr> |
| 64 | 66 | <?php |
| ... | ... | @@ -76,6 +78,17 @@ |
| 76 | 78 | <?php |
| 77 | 79 | } |
| 78 | 80 | ?> |
| 81 | + <tr> | |
| 82 | + <td></td> | |
| 83 | + <td></td> | |
| 84 | + <td></td> | |
| 85 | + <td></td> | |
| 86 | + <td></td> | |
| 87 | + <td></td> | |
| 88 | + <td></td> | |
| 89 | + <td></td> | |
| 90 | + <td><?=$total?></td> | |
| 91 | + </tr> | |
| 79 | 92 | </table> |
| 80 | 93 | <?php |
| 81 | 94 | Pjax::end(); | ... | ... |