mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Added Expense Reciept upload functionality new db dump as well
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
<th>Vendor</th>
|
||||
<th>Category</th>
|
||||
<th>Account</th>
|
||||
<th></th>
|
||||
<th class="text-center">Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -35,6 +36,7 @@
|
||||
$expense_date = $row['expense_date'];
|
||||
$expense_amount = $row['expense_amount'];
|
||||
$expense_description = $row['expense_description'];
|
||||
$expense_receipt = $row['expense_receipt'];
|
||||
$vendor_id = $row['vendor_id'];
|
||||
$vendor_name = $row['vendor_name'];
|
||||
$category_id = $row['category_id'];
|
||||
@@ -42,6 +44,12 @@
|
||||
$account_name = $row['account_name'];
|
||||
$account_id = $row['account_id'];
|
||||
|
||||
if(empty($expense_receipt)){
|
||||
$receipt_attached = "";
|
||||
}else{
|
||||
$receipt_attached = "<a class='btn btn-dark btn-sm' target='_blank' href='$expense_receipt'><i class='fa fa-file-pdf'></i></a>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
@@ -50,6 +58,7 @@
|
||||
<td><?php echo $vendor_name; ?></td>
|
||||
<td><?php echo $category_name; ?></td>
|
||||
<td><?php echo $account_name; ?></td>
|
||||
<td><?php echo $receipt_attached; ?></td>
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
|
||||
Reference in New Issue
Block a user