
INSERT INTO tbloptions SELECT id, null, 'estimate_hide_qty_from_client','0',1 FROM tbltenants;
INSERT INTO tbloptions_static VALUES (null,'estimate_hide_qty_from_client','0',1);
INSERT INTO tbloptions SELECT id, null, 'invoice_hide_qty_from_client','0',1 FROM tbltenants;
INSERT INTO tbloptions_static VALUES (null,'invoice_hide_qty_from_client','0',1);

INSERT INTO tbloptions SELECT id, null, 'estimate_allow_request_changes','1',1 FROM tbltenants;
INSERT INTO tbloptions_static VALUES (null,'estimate_allow_request_changes','1',1);
INSERT INTO tbloptions SELECT id, null, 'pi_allow_request_changes','1',1 FROM tbltenants;
INSERT INTO tbloptions_static VALUES (null,'pi_allow_request_changes','1',1);

INSERT INTO `tblplan_features` (`name`, `codename`, `description`, `type`, `added_on`) VALUES ('Hide Qty From Client', 'hide_qty_from_client', 'Hide Qty From Client', 'restrict', NOW());
SET @hide_qty_from_client_id = LAST_INSERT_ID();
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('9', @hide_qty_from_client_id, '0', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('10', @hide_qty_from_client_id, '1', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('11', @hide_qty_from_client_id, '1', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('12', @hide_qty_from_client_id, '1', UTC_TIMESTAMP());


INSERT INTO `tblplan_features` (`name`, `codename`, `description`, `type`, `added_on`) VALUES ('Allow Request Changes', 'allow_request_changes', 'Allow Request Changes', 'restrict', NOW());
SET @allow_request_changes_id = LAST_INSERT_ID();
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('9', @allow_request_changes_id, '0', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('10', @allow_request_changes_id, '1', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('11', @allow_request_changes_id, '1', UTC_TIMESTAMP());
INSERT INTO `tblplan_features_value` (`plans_id`, `plans_features_id`, `value`, `added_on`) VALUES ('12', @allow_request_changes_id, '1', UTC_TIMESTAMP());