Esempio n. 1
0
        ?>
</td>
                    <td><?php 
        echo $workerData['salary'];
        ?>
</td>
                    <td><?php 
        echo $workerData['balance'];
        ?>
</td>
                    <td>
                        <?php 
        if ($workerData['balance'] > 0) {
            ?>
                            <?php 
            echo \pistol88\staffer\widgets\AddPayment::widget(['staffer' => $workerData['staffer'], 'paymentSum' => round($workerData['balance'], 0, PHP_ROUND_HALF_DOWN), 'sessionId' => $session->id]);
            ?>
                        <?php 
        }
        ?>
                    </td>
                </tr>
            <?php 
    }
    ?>
            <tr>
                <td colspan="4" align="right">Итого:</td>
                <th><?php 
    echo $sumFines;
    ?>
</th>
Esempio n. 2
0
        ?>
                    </td>
                    <td>
                        <!-- к выплате -->
                        <?php 
        echo $model->salary - $payed;
        ?>
                        <?php 
        // echo $sessionStatistic['salary'][$model->user_id]['salary'] - $payed;
        ?>
                    </td>
                    <td>
                        <!-- кнопка выплатить -->
                        <?php 
        if ($model->salary - $payed > 0) {
            echo \pistol88\staffer\widgets\AddPayment::widget(['staffer' => Staffer::findOne($model->worker_id), 'paymentSum' => $model->salary - $payed, 'sessionId' => $model->session->id]);
        }
        ?>
                    </td>
                </tr>
            <?php 
    }
    ?>
         <?php 
}
?>
        <tr>

        </tr>
    </table>