ALTER TABLE `ma_Tribe` ADD `useW9form` ENUM('n','y') NOT NULL DEFAULT 'n' AFTER `rawMemorandum`, ADD `w9Description` TEXT DEFAULT NULL AFTER `useW9form`, ADD `rawW9Description` TEXT DEFAULT NULL AFTER `w9Description`, ADD `w9File` varchar(255) DEFAULT NULL AFTER `rawW9Description`; ALTER TABLE `ma_LicenseTribe` CHANGE `status` `status` ENUM('pending','approved','declined','approved_pending','expired','memorandum_pending', 'w9_pending', 'w9_approval_pending') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'pending'; ALTER TABLE `ma_LicenseTribe` ADD `w9File` VARCHAR(255) NULL DEFAULT NULL AFTER `expiredOn`; ALTER TABLE `ma_LicenseTribe` ADD `isW9Approved` ENUM('n','y') NOT NULL DEFAULT 'n' AFTER `w9File`; -- -- -- -- INSERT INTO `ma_Settings` (`name`, `idCategory`, `fieldType`, `label`, `value`, `options`, `description`, `required`, `system`, `sorter`, `added`, `changed`) VALUES ('licenseNeedW9UserHeader', 7, 'header', '', 'License Needs Upload Complete W-9 Form (Vendor Users Notification)', '', '', 'n', 'n', 800, NOW(), NOW()), ('licenseNeedW9UserSubject', 7, 'text', 'Subject', 'License #{id} needs upload complete W-9 Form ("{tribe}" tribe)', '', '', 'y', 'n', 810, NOW(), NOW()), ('licenseNeedW9UserFrom', 7, 'text', 'From Email Address   If you leave this field empty - the From Email Address will be the same as the one in General Settings.', '', '', '', 'n', 'n', 820, NOW(), NOW()), ('licenseNeedW9UserBody', 7, 'HtmlEditor', 'Message Body', '

License #{id} needs Upload Complete W-9 Form:

\r\n\r\n

Tribe: {tribe}
License #: {id}
\r\n

DBA Name: {vendorDbaName}
\r\nSole Proprietor: {vendorSoleProprietorName}
\r\nFederal ID: {vendorFederalId}
\r\nPhone: {vendorPhone}

\r\n\r\n

Go to W-9 Form upload page or Licensing section of the website.

\r\n', '', 'Constants: {id} {vendorDbaName} {vendorSoleProprietorName} {vendorFederalId} {vendorPhone} {licenseSectionUrl} {uploadUrl} {tribe}', 'y', 'n', 830, NOW(), NOW()); INSERT INTO `ma_SettingsOptions` (`name`, `variable`, `value`, `type`, `sorter`) VALUES ('licenseNeedW9UserBody', 'mode', 'view', 'string', NULL); -- -- -- -- INSERT INTO `ma_Settings` (`name`, `idCategory`, `fieldType`, `label`, `value`, `options`, `description`, `required`, `system`, `sorter`, `added`, `changed`) VALUES ('licenseW9NeedApproveAdminHeader', 7, 'header', '', 'License W-9 Form Needs Approval (Admin Notification)', '', '', 'n', 'n', 950, NOW(), NOW()), ('licenseW9NeedApproveAdminSubject', 7, 'text', 'Subject', 'License W-9 Form Needs Approval', '', '', 'y', 'n', 960, NOW(), NOW()), ('licenseW9NeedApproveAdminFrom', 7, 'text', 'From Email Address   If you leave this field empty - the From Email Address will be the same as the one in General Settings.', '', '', '', 'n', 'n', 970, NOW(), NOW()), ('licenseW9NeedApproveAdminBody', 7, 'HtmlEditor', 'Message Body', '

The following vendor: \"{businessName}\" dba \"{vendorDbaName}\" uploaded complete W-9 form. Please review and Approve or Decline it.

\r\n\r\n

Click here to Approve/Decline uploaded W-9 Form.

\r\n', '', 'Constants: {id} {vendorDbaName} {businessName} {primaryTribalNation} {detailsUrl}', 'y', 'n', 980, NOW(), NOW()); INSERT INTO `ma_SettingsOptions` (`name`, `variable`, `value`, `type`, `sorter`) VALUES ('licenseW9NeedApproveAdminBody', 'mode', 'view', 'string', NULL); -- -- -- -- INSERT INTO `ma_Settings` (`name`, `idCategory`, `fieldType`, `label`, `value`, `options`, `description`, `required`, `system`, `sorter`, `added`, `changed`) VALUES ('declineW9UserHeader', 7, 'header', '', 'Tribe Decline Complete W-9 Form (Vendor Users Notification)', '', '', 'n', 'n', 1000, NOW(), NOW()), ('declineW9UserSubject', 7, 'text', 'Subject', 'Uploaded W-9 Form for License #{id} has been Declined ("{tribe}" tribe).', '', '', 'y', 'n', 1010, NOW(), NOW()), ('declineW9UserFrom', 7, 'text', 'From Email Address   If you leave this field empty - the From Email Address will be the same as the one in General Settings.', '', '', '', 'n', 'n', 1020, NOW(), NOW()), ('declineW9UserBody', 7, 'HtmlEditor', 'Message Body', '

Uploaded W-9 Form for License #{id} has been Declined by "{tribe}" tribe.

License #{id} needs Upload Completed W-9 Form:

\r\n\r\n

Tribe: {tribe}
License #: {id}
\r\n

DBA Name: {vendorDbaName}
\r\nSole Proprietor: {vendorSoleProprietorName}
\r\nFederal ID: {vendorFederalId}
\r\nPhone: {vendorPhone}

\r\n\r\n

Go to W-9 Form upload page or Licensing section of the website.

\r\n', '', 'Constants: {id} {vendorDbaName} {vendorSoleProprietorName} {vendorFederalId} {vendorPhone} {licenseSectionUrl} {uploadUrl} {tribe}', 'y', 'n', 1030, NOW(), NOW()); INSERT INTO `ma_SettingsOptions` (`name`, `variable`, `value`, `type`, `sorter`) VALUES ('declineW9UserBody', 'mode', 'view', 'string', NULL);