mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 02:34:44 +00:00
Fixed purchase/consume page handling when FEATURE_FLAG_STOCK_LOCATION_TRACKING is disabled (fixes #1829)
This commit is contained in:
@@ -401,6 +401,11 @@ if (Grocy.Components.ProductPicker !== undefined)
|
||||
|
||||
function PrefillBestBeforeDate(product, location)
|
||||
{
|
||||
if (location == null)
|
||||
{
|
||||
location = {}
|
||||
}
|
||||
|
||||
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
|
||||
{
|
||||
var dueDays;
|
||||
|
Reference in New Issue
Block a user