Fix item counts, PR/QT conversions, validation and department loss
This commit is contained in:
@@ -370,8 +370,9 @@
|
||||
recalc_totals();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
load_departments('department_id');
|
||||
$(async function() {
|
||||
// Options must exist before retrieve_request() selects the saved department
|
||||
await Promise.resolve(load_departments('department_id')).catch(function() {});
|
||||
flatpickr('#request_date', { dateFormat: 'd/m/Y', allowInput: true });
|
||||
flatpickr('#required_date', { dateFormat: 'd/m/Y', allowInput: true });
|
||||
if (request_id) {
|
||||
|
||||
Reference in New Issue
Block a user