<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.9.37.3572 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.9.37.3573 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
setChange("RENAME TABLE tt_monthly_quota TO tt_monthly_quotas");
setChange("ALTER TABLE tt_expense_items modify `name` text NOT NULL");
setChange("ALTER TABLE `tt_teams` ADD `uncompleted_indicators` SMALLINT(2) NOT NULL DEFAULT '0' AFTER `record_type`");
+ setChange("CREATE TABLE `tt_predefined_expenses` (`id` int(11) NOT NULL auto_increment, `team_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `cost` decimal(10,2) default '0.00', PRIMARY KEY (`id`))");
}
// The update_clients function updates projects field in tt_clients table.
create index invoice_idx on tt_expense_items(invoice_id);
+#
+# Structure for table tt_predefined_expenses.
+# This table keeps names and costs for predefined expenses.
+#
+CREATE TABLE `tt_predefined_expenses` (
+ `id` int(11) NOT NULL auto_increment, # predefined expense id
+ `team_id` int(11) NOT NULL, # team id
+ `name` varchar(255) NOT NULL, # predefined expense name, such as mileage
+ `cost` decimal(10,2) default '0.00', # cost for one unit
+ PRIMARY KEY (`id`)
+);
+
+
#
# Structure for table tt_monthly_quotas.
# This table keeps monthly work hour quotas for teams.
ALTER TABLE `tt_monthly_quotas`
ADD CONSTRAINT `FK_TT_TEAM_CONSTRAING` FOREIGN KEY (`team_id`) REFERENCES `tt_teams` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
-