%- include('partials/header', { title: 'Gas Card Expenses' }) %> <% if (error) { %>
No active gas cards assigned.
You must have an active gas card to add gas expenses.
| User | <% } %>Card Details | Store / Vendor | Date | Job # | Net | Tax | Fees | Total | Liters | Receipt | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= exp.user_name %> | <% } %>
•••• <%= exp.card_number.slice(-4) %>
<%= exp.card_type %>
|
<%= exp.store_name %>
<%= exp.transaction_id %>
|
<%= exp.date %> | <%= exp.job_number || '—' %> | $<%= parseFloat(exp.net_amount || 0).toFixed(2) %> | $<%= parseFloat(exp.tax_amount || 0).toFixed(2) %> | $<%= parseFloat(exp.fees_amount || 0).toFixed(2) %> | $<%= parseFloat(exp.total_amount || 0).toFixed(2) %> | <%= parseFloat(exp.liters_in_tank || 0).toFixed(1) %> L | <% if (exp.receipt_photo_path) { %> <% } else { %> <% } %> | <% if (exp.status === 'valid') { %> Valid <% } else if (exp.status === 'contested') { %> Contested <% } else if (exp.status === 'rebutted') { %> Rebutted <% } %> |
<% if (exp.status === 'contested' && exp.user_id === user.id) { %>
<% } %>
<% if (user.role === 'admin' || user.role === 'accounting') { %>
<% if (exp.status === 'valid') { %>
<% } else if (exp.status === 'contested' || exp.status === 'rebutted') { %>
<% } %>
<% } %>
<% if (exp.user_id === user.id || user.role === 'admin' || user.role === 'accounting') { %>
<% } %>
|
No gas expenses recorded yet.