mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
purchase set default to 2999-12-31 if not best before date tracking
This commit is contained in:
parent
c61e887f00
commit
1be868ebd8
|
|
@ -206,7 +206,7 @@ if (Grocy.Components.ProductPicker !== undefined)
|
|||
|
||||
if (!Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
|
||||
{
|
||||
Grocy.Components.DateTimePicker.SetValue(moment().format('YYYY-MM-DD'));
|
||||
Grocy.Components.DateTimePicker.SetValue('2999-12-31');
|
||||
}
|
||||
|
||||
if (productDetails.product.default_best_before_days.toString() !== '0')
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user