Titans: form changes removed validation msg and user can eneter 0 or more value in brands Rx
Specific Folder FTP Upload / ftp-deploy (push) Successful in 1m38s Details

This commit is contained in:
Farhan Pathan 2026-07-16 12:18:04 +05:30
parent f14535d31d
commit b2ec73222b
1 changed files with 3 additions and 3 deletions

View File

@ -430,19 +430,19 @@
let hasValue = false;
brandFields.forEach(function(field) {
if ((parseInt($(field).val()) || 0) > 0) {
if ((parseInt($(field).val()) || 0) >= 0) {
hasValue = true;
}
});
if (!hasValue) {
/* if (!hasValue) {
Swal.fire({
icon: 'error',
title: 'Validation Error',
text: 'From all brands, at least one field should be greater than 0.'
});
return false;
}
} */
const formData = new FormData($('#report-form')[0]);
// Log form data to console
for (let [key, value] of formData.entries()) {