mirror of
https://github.com/itflow-org/itflow
synced 2026-12-03 09:39:02 +00:00
License templates stage 3: a template can be required of every client or of clients with certain client tags (database 3.3.0, tags kept when tags are merged); the template page shows how many of those clients have it and lists the missing ones with Make and Make for the clients missing one; the list gains a Required tab and a coverage chip; a client's Licenses page shows the licenses it should have but doesn't, opening New License from the template, and the client overview counts them under Licenses missing; the template page lists its licenses by client with seats, renewal and billing state, with views for over seats, spare seats, renewing soon, expired and not billed, an action for each view and bulk Renew, True up seats and Bill seats; true-up sets seats bought to the seats in use or a typed number; Bill seats adds a line for the template's product to each client's recurring invoice that follows the license's seats bought or in use, using seats in use for licenses with no seat limit; the Renew window now posts to the agent handler so it also works from Admin
This commit is contained in:
18
db.sql
18
db.sql
@@ -3235,6 +3235,23 @@ CREATE TABLE `software_tags` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `software_template_required_tags`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `software_template_required_tags`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `software_template_required_tags` (
|
||||
`software_template_id` int(11) NOT NULL,
|
||||
`tag_id` int(11) NOT NULL,
|
||||
PRIMARY KEY (`software_template_id`,`tag_id`),
|
||||
KEY `tag_id` (`tag_id`),
|
||||
CONSTRAINT `software_template_required_tags_ibfk_1` FOREIGN KEY (`software_template_id`) REFERENCES `software_templates` (`software_template_id`) ON DELETE CASCADE,
|
||||
CONSTRAINT `software_template_required_tags_ibfk_2` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`tag_id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `software_templates`
|
||||
--
|
||||
@@ -3254,6 +3271,7 @@ CREATE TABLE `software_templates` (
|
||||
`software_template_term` varchar(10) DEFAULT NULL,
|
||||
`software_template_vendor_template_id` int(11) NOT NULL DEFAULT 0,
|
||||
`software_template_product_id` int(11) NOT NULL DEFAULT 0,
|
||||
`software_template_required` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`software_template_created_at` datetime NOT NULL DEFAULT current_timestamp(),
|
||||
`software_template_updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||
`software_template_archived_at` datetime DEFAULT NULL,
|
||||
|
||||
Reference in New Issue
Block a user