Skip to content

Commit

Permalink
added check to give alert trader code should be required
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant committed Apr 17, 2024
1 parent 44c5529 commit 5930b3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions admin/templates/resource/extract-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ <h1>Receipt Number: {{ resource['receipt_id'] }}</h1>
button.classList.remove('cursor-not-allowed');
return;
}

if (traderCodeInput.value && !traderNameInput.value){
alert('Please enter a valid trader name and without numbers.');
button.disabled = false;
button.classList.remove('bg-opacity-50');
button.classList.remove('cursor-not-allowed');
return;
}
let baseUrl = '/admin/';
let route = 'update-receipt-data';
let url = baseUrl + route;
Expand Down

0 comments on commit 5930b3b

Please sign in to comment.