diff --git a/db.sql b/db.sql
index 68b5ced5..8e896e3d 100644
--- a/db.sql
+++ b/db.sql
@@ -99,7 +99,7 @@ CREATE TABLE `client_assets` (
`client_contact_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
PRIMARY KEY (`client_asset_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -179,7 +179,7 @@ CREATE TABLE `client_logins` (
`client_application_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
PRIMARY KEY (`client_login_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -271,11 +271,12 @@ CREATE TABLE `expenses` (
`expense_description` text NOT NULL,
`expense_amount` decimal(15,2) NOT NULL,
`expense_date` date NOT NULL,
+ `expense_receipt` varchar(200) NOT NULL,
`vendor_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`expense_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -292,7 +293,7 @@ CREATE TABLE `invoice_history` (
`invoice_history_description` varchar(200) NOT NULL,
`invoice_id` int(11) NOT NULL,
PRIMARY KEY (`invoice_history_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -313,7 +314,7 @@ CREATE TABLE `invoice_items` (
`invoice_item_total` decimal(15,2) NOT NULL,
`invoice_id` int(11) NOT NULL,
PRIMARY KEY (`invoice_item_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -334,7 +335,7 @@ CREATE TABLE `invoices` (
`category_id` int(11) NOT NULL,
`client_id` int(11) NOT NULL,
PRIMARY KEY (`invoice_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@@ -465,7 +466,7 @@ CREATE TABLE `vendors` (
`vendor_created_at` int(11) NOT NULL,
`vendor_updated_at` int(11) NOT NULL,
PRIMARY KEY (`vendor_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4;
+) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -477,4 +478,4 @@ CREATE TABLE `vendors` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
--- Dump completed on 2019-04-08 15:29:51
+-- Dump completed on 2019-04-09 16:16:46
diff --git a/expenses.php b/expenses.php
index c87a6693..f2289a71 100644
--- a/expenses.php
+++ b/expenses.php
@@ -24,6 +24,7 @@
Vendor |
Category |
Account |
+
|
Actions |
@@ -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 = "
";
+ }
+
?>
@@ -50,6 +58,7 @@
|
|
|
+ |
|