예제 #1
0
    //ค่าต่อทะเบียน พรบ.
    $sum_expenses_row = (int) $outgoing + (int) $expenses_truck + (int) $salary + (int) $engine_oil + (int) $annuities + (int) $truck_act;
    //รวมค่าใช้จ่าย
    $allowance_driver = (int) $rs['allowance_driver1'] + (int) $rs['allowance_driver2'];
    //รวมเบี้ยเลี้ยง 2 คน
    $sum_total_row = $rs['income'] - $sum_expenses_row;
    $sum_income = $sum_income + $rs['income'];
    $sum_outcome = $sum_outcome + $sum_expenses_row;
    ?>
                    <tr>
                        <th><?php 
    echo "คันที่ " . $rs['car_id'] . ' ' . $rs['truck_1'] . ' ' . $rs['truck_2'];
    ?>
</th>
                        <td style=" text-align: left;"><?php 
    echo get_driver($rs['car_id']);
    ?>
</td>
                        <td style=" text-align: center;"><?php 
    echo $report->get_around($year, $month, $rs['car_id']);
    ?>
</td>
                        <td><?php 
    echo number_format($rs['distance']);
    ?>
</td>
                        <td><?php 
    echo number_format($rs['oil']);
    ?>
</td>
                        <td><?php 
예제 #2
0
</td>
                <td>
                    <?php 
    echo $rs['assign_id'];
    ?>
                    <a href="<?php 
    echo Url::to(['order-transport/incom_outcome', 'id' => $rs['assign_id']]);
    ?>
" target="_blank"><i class="fa fa-eye"></i></a>
                </td>
                <td><?php 
    echo $config->thaidate($rs['order_date_start']) . ' - ' . $config->thaidate($rs['order_date_end']);
    ?>
</td>
                <td><?php 
    echo get_driver($rs['driver1']) . ' ' . get_driver($rs['driver2']);
    ?>
</td>
                <td><?php 
    echo $customer->find()->where(['cus_id' => $rs['employer']])->one()['company'];
    ?>
</td>
                <td style=" text-align: right;"><?php 
    echo number_format((int) $rs['income'], 2);
    ?>
</td>
            </tr>
        <?php 
}
?>
    </tbody>
예제 #3
0
function get_queue_factory()
{
    return new PersistentFactory(get_driver(), get_serializer());
}