@extends('layout.default') @section('title', $__t('Stock settings')) @section('viewJsName', 'stocksettings') @section('content')

@yield('title')


{{ $__t('Presets for new products') }}

@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
@endif

{{ $__t('Stock overview') }}

@include('components.numberpicker', array( 'id' => 'stock_due_soon_days', 'additionalAttributes' => 'data-setting-key="stock_due_soon_days"', 'label' => 'Due soon days', 'min' => 1, 'additionalCssClasses' => 'user-setting-control' ))

{{ $__t('Purchase') }}

@include('components.numberpicker', array( 'id' => 'stock_default_purchase_amount', 'additionalAttributes' => 'data-setting-key="stock_default_purchase_amount"', 'label' => 'Default amount for purchase', 'min' => '0.', 'decimals' => $userSettings['stock_decimal_places_amounts'], 'additionalCssClasses' => 'user-setting-control locale-number-input locale-number-quantity-amount', ))

{{ $__t('Consume') }}

@include('components.numberpicker', array( 'id' => 'stock_default_consume_amount', 'additionalAttributes' => 'data-setting-key="stock_default_consume_amount"', 'label' => 'Default amount for consume', 'min' => 0, 'decimals' => $userSettings['stock_decimal_places_amounts'], 'additionalCssClasses' => 'user-setting-control locale-number-input locale-number-quantity-amount', 'additionalGroupCssClasses' => 'mb-0' ))

{{ $__t('Common') }}

@include('components.numberpicker', array( 'id' => 'stock_decimal_places_amounts', 'additionalAttributes' => 'data-setting-key="stock_decimal_places_amounts"', 'label' => 'Decimal places allowed for amounts', 'min' => 0, 'additionalCssClasses' => 'user-setting-control' )) @if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) @include('components.numberpicker', array( 'id' => 'stock_decimal_places_prices', 'additionalAttributes' => 'data-setting-key="stock_decimal_places_prices"', 'label' => 'Decimal places allowed for prices', 'min' => 0, 'additionalCssClasses' => 'user-setting-control' ))
@endif {{ $__t('OK') }}
@stop