mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Add flag to API which allows using pack size (#4741)
* Add flag to API which allows using pack size when adding stock items manually * Check for use_pack_size before pop * Add test data and tests * Improve data handling * Add form field for use_pack_size when adding stock * Add description of pack size to docs * Don't check for supplier part if it is None * Move form field to after supplier part, for better logic * Fix wrong function * Fix tests * Adjust purchase price when using pack size * Adjust help text for purchase price * Adjust help text for purchase price some more * Fix tests for purchase price of added stock * Update api_version.py
This commit is contained in:
@ -289,6 +289,9 @@ function stockItemFields(options={}) {
|
||||
return query;
|
||||
}
|
||||
},
|
||||
use_pack_size: {
|
||||
help_text: '{% trans "Add given quantity as packs instead of individual items" %}',
|
||||
},
|
||||
location: {
|
||||
icon: 'fa-sitemap',
|
||||
filters: {
|
||||
|
Reference in New Issue
Block a user