2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								@ extends ( 'layout.default' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'title' ,  $__t ( 'Transfer' ))  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'activeNav' ,  'transfer' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'viewJsName' ,  'transfer' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ section ( 'content' )  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< div  class = " row " >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  class = " col-xs-12 col-md-6 col-xl-4 pb-3 " > 
							 
						 
					
						
							
								
									
										
										
										
											2020-04-19 08:51:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< h2  class = " title " >@ yield ( 'title' ) </ h2 > 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-31 18:37:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-11-08 15:09:10 +01:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< hr  class = " my-2 " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
										< form  id = " transfer-form " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											novalidate > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ include ( 'components.productpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'products'  =>  $products , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'barcodes'  =>  $barcodes , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'nextInputSelector'  =>  '#location_id_from' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'disallowAddProductWorkflows'  =>  true 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ php  /*@ include ( 'components.locationpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'id'  =>  'location_from' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'locations'  =>  $locations , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'isRequired'  =>  true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'label'  =>  'Transfer From Location' 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											)) */  @ endphp 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " location_id_from " > {{  $__t ( 'From location' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  required 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													class = " form-control location-combobox " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " location_id_from " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													name = " location_id_from " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $locations  as  $location ) 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< option  value = " { {   $location->id  }} " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														data - is - freezer = " { {   $location->is_freezer  }} " > {{  $location -> name  }} </ option > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< div  class = " invalid-feedback " > {{  $__t ( 'A location is required' )  }} </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											@ include ( 'components.numberpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'id'  =>  'amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'label'  =>  'Amount' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'hintId'  =>  'amount_qu_unit' , 
							 
						 
					
						
							
								
									
										
										
										
											2020-10-20 13:08:54 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'min'  =>  '0.'  .  str_repeat ( '0' ,  $userSettings [ 'stock_decimal_places_amounts' ]  -  1 )  .  '1' , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'decimals'  =>  $userSettings [ 'stock_decimal_places_amounts' ], 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'value'  =>  1 , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'invalidFeedback'  =>  $__t ( 'The amount cannot be lower than %s' ,  '1' ), 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'additionalHtmlContextHelp'  =>  ' < div  id = " tare-weight-handling-info " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												class = " text-info font-italic d-none " > ' . $__t(' Tare  weight  handling  enabled  -  please  weigh  the  whole  container ,  the  amount  to  be  posted  will  be  automatically  calculcated ') . ' </ div > ' 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											)) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " use_specific_stock_entry " > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< input  type = " checkbox " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														id = " use_specific_stock_entry " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														name = " use_specific_stock_entry " >  {{  $__t ( 'Use a specific stock item' )  }} 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< span  class = " small text-muted " > {{  $__t ( 'The first item in this list would be picked by the default rule which is "First expiring first, then first in first out"' )  }} </ span > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  disabled 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													class = " form-control " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " specific_stock_entry " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													name = " specific_stock_entry " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-29 16:41:27 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											@ php  /*@ include ( 'components.locationpicker' ,  array ( 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											'locations'  =>  $locations , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'isRequired'  =>  true , 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											'label'  =>  'Transfer to Location' 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
											)) */  @ endphp 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											< div  class = " form-group " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< label  for = " location_id_to " > {{  $__t ( 'To location' )  }} </ label > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
												< select  required 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													class = " form-control location-combobox " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													id = " location_id_to " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													name = " location_id_to " > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													< option ></ option > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
													@ foreach ( $locations  as  $location ) 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
													< option  value = " { {   $location->id  }} " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
														data - is - freezer = " { {   $location->is_freezer  }} " > {{  $location -> name  }} </ option > 
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
													@ endforeach 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												</ select > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												< div  class = " invalid-feedback " > {{  $__t ( 'A location is required' )  }} </ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
											</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2020-08-31 20:32:50 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
											< button  id = " save-transfer-button " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
												class = " btn btn-success " > {{  $__t ( 'OK' )  }} </ button > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-29 16:41:27 +02:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2019-12-19 12:48:36 -06:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
										</ form > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									< div  class = " col-xs-12 col-md-6 col-xl-4 hide-when-embedded " > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
										@ include ( 'components.productcard' ) 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									</ div > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								</ div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								@ stop