mirror of
https://github.com/itflow-org/itflow
synced 2026-11-17 09:57:24 +00:00
License templates stage 2: templates carry the seats a license starts with, a renewal term, a vendor from the vendor templates and the product they are sold as (database 3.2.9); a license made from one starts with its seats, gets a renewal date worked out from the purchase date and uses the client's vendor from that vendor template, or one with the same name, or has one made from the template by someone who can add vendors; New License fills in the seats, vendor and renewal date from the template and keeps the renewal date in step with the purchase date until one is typed in; Renew starts on the template's term; new licenses can be made for several clients at once with an option to skip clients that already have one; the template page and list show the new fields and the list search covers vendor and product; the license quick look shows the product and price to Sales users; deleting a vendor template or product removes it from the templates that used it
This commit is contained in:
17
admin/database_updates/3.2.9.php
Normal file
17
admin/database_updates/3.2.9.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* ITFlow - Database update to version 3.2.9 (from 3.2.8)
|
||||
* Included by admin/database_updates.php - do not access directly
|
||||
*/
|
||||
|
||||
defined('FROM_DB_UPDATER') || die("Direct file access is not allowed");
|
||||
|
||||
// What else a license made from a template starts with: its seats (blank for no limit), how
|
||||
// often it renews (1m, 3m, 6m, 1y, 2y or 3y - blank for not at all), the vendor template its
|
||||
// vendor comes from, and the product it is sold as
|
||||
mysqli_query($mysqli, "ALTER TABLE `software_templates`
|
||||
ADD `software_template_seats` int(11) DEFAULT NULL AFTER `software_template_notes`,
|
||||
ADD `software_template_term` varchar(10) DEFAULT NULL AFTER `software_template_seats`,
|
||||
ADD `software_template_vendor_template_id` int(11) NOT NULL DEFAULT 0 AFTER `software_template_term`,
|
||||
ADD `software_template_product_id` int(11) NOT NULL DEFAULT 0 AFTER `software_template_vendor_template_id`");
|
||||
Reference in New Issue
Block a user