make it tinytext and not required.
CREATE TABLE {prefix}payment_types (
id INT NOT NULL AUTO_INCREMENT,
name TINYTEXT NOT NULL,
- qcode INT NULL,
+ qcode TINYTEXT NULL,
category TEXT NOT NULL,
amount DECIMAL(8, 2),
notes TINYTEXT NULL,
</td>
</tr>
<tr>
- <th class="glm-required">Code:</th>
+ <th>Code:</th>
<td>
- <input type="text" name="qcode" class="glm-form-text-input" required>
+ <input type="text" name="qcode" class="glm-form-text-input">
</td>
</tr>
<tr>
</td>
</tr>
<tr>
- <th class="glm-required">Code:</th>
+ <th>Code:</th>
<td>
- <input id="editPaymentTypeQCode" type="text" name="qcode" class="glm-form-text-input" required>
+ <input id="editPaymentTypeQCode" type="text" name="qcode" class="glm-form-text-input">
</td>
</tr>
<tr>