mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-18 13:05:42 +00:00
Stocktake external (#5182)
* Add 'location' filtering option for part.stock_entries * Add "exclude_external" field to stocktake report * Add "stocktake_exclude_external" default option * Implement setting to exclude external stock * Split stocktake functionality out into separate file * Change name of internal setting * Refactoring * Add 'exclude_external' field to stocktake form
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
<table class='table table-striped table-condensed'>
|
||||
<tbody>
|
||||
{% include "InvenTree/settings/setting.html" with key="STOCKTAKE_ENABLE" icon="fa-clipboard-check" %}
|
||||
{% include "InvenTree/settings/setting.html" with key="STOCKTAKE_EXCLUDE_EXTERNAL" icon="fa-sitemap" %}
|
||||
{% include "InvenTree/settings/setting.html" with key="STOCKTAKE_AUTO_DAYS" icon="fa-calendar-alt" %}
|
||||
{% include "InvenTree/settings/setting.html" with key="STOCKTAKE_DELETE_REPORT_DAYS" icon="fa-trash-alt" %}
|
||||
</tbody>
|
||||
|
@ -849,6 +849,10 @@ function generateStocktakeReport(options={}) {
|
||||
fields.location = options.location;
|
||||
}
|
||||
|
||||
fields.exclude_external = {
|
||||
value: global_settings.STOCKTAKE_EXCLUDE_EXTERNAL,
|
||||
};
|
||||
|
||||
if (options.generate_report) {
|
||||
fields.generate_report = options.generate_report;
|
||||
}
|
||||
|
Reference in New Issue
Block a user