mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30:54 +00:00
Serial number autofill (#4091)
* Add global setting to control seiral number auto-fill * Auto fill serial number field
This commit is contained in:
@ -240,6 +240,12 @@ function stockItemFields(options={}) {
|
||||
}
|
||||
|
||||
setFormInputPlaceholder('serial_numbers', placeholder, opts);
|
||||
|
||||
if (global_settings.SERIAL_NUMBER_AUTOFILL) {
|
||||
if (data.next) {
|
||||
updateFieldValue('serial_numbers', `${data.next}+`, {}, opts);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user