{% extends 'template.html.twig' %} {% block title %}Details Team Member Local Expense - {{ parent() }} {% endblock %} {% block body %}

Team Member Local Expense

{% for message in app.flashes('notice') %}
× {{ message }}
{% endfor %}
Details
PIN : {{ tour_claim.user.username }}
Name : {{ tour_claim.user.fullName }}
Submition Date : {{ tour_claim.submitionDate ? tour_claim.submitionDate|date('d-m-Y') : '' }}
Actual tour starting date & time : {{ tour_claim.startingDate ? tour_claim.startingDate|date('d-m-Y H:i:s') : '' }}
Actual tour ending date & time : {{ tour_claim.endingDate ? tour_claim.endingDate|date('d-m-Y H:i:s') : '' }}
Tour Details : {{ tour_claim.tourDetails }}
Expenses Details
{% set totalAmount = 0 %} {% for tourClaimDetail in tour_claim.tourClaimDetails %} {% set counter = ( counter | default(0) ) + 1 %} {% set totalAmount = ( totalAmount | default(0) ) + tourClaimDetail.amount %} {% else %} {% endfor %}
# Category Customer Reason From / Location From Date & Time To / Location To Date & Time Mode of Transportation Amount Remarks
{{ counter }} {{ tourClaimDetail.category }} {{ tourClaimDetail.customerName }} {{ tourClaimDetail.expensePurpose ? tourClaimDetail.expensePurpose.name : '' }} {{ tourClaimDetail.fromPlace }} {{ tourClaimDetail.startingDate ? tourClaimDetail.startingDate|date('d-m-Y H:i:s') : '' }} {{ tourClaimDetail.toPlace }} {{ tourClaimDetail.endingDate ? tourClaimDetail.endingDate|date('d-m-Y H:i:s') : '' }} {{ tourClaimDetail.travelMode }} {{ tourClaimDetail.amount|number_format(2, '.', ',') }} {{ tourClaimDetail.remarks }}
No records found
Total Amount: {{ totalAmount|number_format(2, '.', ',') }}
{% if currentUser.id == tour_claim.user.functionalHead and tour_claim.fhApproval is null %} Functional Head Approved / Functional Head Not Approved {% elseif currentUser.id == tour_claim.user.departmentHead and tour_claim.dhApproval is null %} Department Head Approved / Department Head Not Approved {% elseif currentUser.id == 134 and tour_claim.ceoApproval is null %} CBO Approved / CBO Not Approved {% endif %}
{% endblock %}