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

@yield('title')


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

@if(GROCY_FEATURE_FLAG_STOCK_LOCATION_TRACKING)
@endif
@include('components.numberpicker', array( 'id' => 'product_presets_default_due_days', 'additionalAttributes' => 'data-setting-key="product_presets_default_due_days"', 'label' => 'Default due days', 'min' => -1, 'additionalCssClasses' => 'user-setting-control' )) @if(GROCY_FEATURE_FLAG_STOCK_PRODUCT_OPENED_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_input', 'additionalAttributes' => 'data-setting-key="stock_decimal_places_prices_input"', 'label' => 'Decimal places allowed for prices (input)', 'min' => 0, 'additionalCssClasses' => 'user-setting-control' )) @include('components.numberpicker', array( 'id' => 'stock_decimal_places_prices_display', 'additionalAttributes' => 'data-setting-key="stock_decimal_places_prices_display"', 'label' => 'Decimal places allowed for prices (display)', 'min' => 0, 'additionalCssClasses' => 'user-setting-control' ))
@endif {{ $__t('OK') }}
@stop