2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@ extends ( 'layout.default' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								@ section ( 'title' ,  $__t ( 'Stock settings' ))  
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'viewJsName' ,  'stocksettings' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'content' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< div  class = " row " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  class = " col-lg-6 col-xs-12 " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< h1 >@ yield ( 'title' ) </ h1 > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< div  id = " productpresets " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< h4 > {{  $__t ( 'Presets for new products' )  }} </ h4 > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_location_id " > {{  $__t ( 'Location' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control "  id = " product_presets_location_id "  data - setting - key = " product_presets_location_id " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $locations  as  $location ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< option  value = " { {   $location->id  }} " > {{  $location -> name  }} </ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_product_group_id " > {{  $__t ( 'Product group' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control "  id = " product_presets_product_group_id "  data - setting - key = " product_presets_product_group_id " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $productGroups  as  $productGroup ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< option  value = " { {   $productGroup->id  }} " > {{  $productGroup -> name  }} </ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< label  for = " product_presets_qu_id " > {{  $__t ( 'Quantity unit' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												< select  class = " form-control user-setting-control "  id = " product_presets_qu_id "  data - setting - key = " product_presets_qu_id " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													< option  value = " -1 " ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $quantityunits  as  $quantityunit ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														< option  value = " { {   $quantityunit->id  }} " > {{  $quantityunit -> name  }} </ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h4  class = " mt-2 " > {{  $__t ( 'Stock overview' )  }} </ h4 > 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-20 15:30:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'id'  =>  'stock_expring_soon_days' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'additionalAttributes'  =>  'data-setting-key="stock_expring_soon_days"' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'label'  =>  'Expiring soon days' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'min'  =>  1 , 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'invalidFeedback'  =>  $__t ( 'This cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
									
										
										
										
											2019-04-20 15:30:45 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'additionalCssClasses'  =>  'user-setting-control' 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-03-01 19:33:33 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										@ if ( GROCY_FEATURE_FLAG_SHOPPINGLIST ) 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h4  class = " mt-2 " > {{  $__t ( 'Shopping list to stock workflow' )  }} </ h4 > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " checkbox " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " shopping-list-to-stock-workflow-auto-submit-when-prefilled " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox "  class = " user-setting-control "  id = " shopping-list-to-stock-workflow-auto-submit-when-prefilled "  name = " shopping-list-to-stock-workflow-auto-submit-when-prefilled "  data - setting - key = " shopping_list_to_stock_workflow_auto_submit_when_prefilled " >  {{  $__t ( 'Automatically do the booking using the last price and the amount of the shopping list item, if the product has "Default best before days" set' )  }} 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2019-03-01 19:33:33 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										@ endif 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-05-01 20:19:18 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< a  href = " { {   $U ('/stockoverview') }} "  class = " btn btn-success " > {{  $__t ( 'OK' )  }} </ a > 
							 
						 
					
						
							
								
									
										
										
										
											2018-11-21 19:08:36 +01:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ stop