|  | @@ -18,6 +18,7 @@ using comal.timesheets.Tasks;
 | 
	
		
			
				|  |  |  using System.IO;
 | 
	
		
			
				|  |  |  using static comal.timesheets.CustomControls.JobShell;
 | 
	
		
			
				|  |  |  using static InABox.Mobile.LocationServices;
 | 
	
		
			
				|  |  | +using iText.Kernel.XMP.Impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  namespace comal.timesheets
 | 
	
		
			
				|  |  |  {
 | 
	
	
		
			
				|  | @@ -120,7 +121,7 @@ namespace comal.timesheets
 | 
	
		
			
				|  |  |              CoreTable table = new Client<Assignment>().Query(
 | 
	
		
			
				|  |  |                       new Filter<Assignment>(x => x.EmployeeLink.ID).IsEqualTo(GlobalVariables.EmpID)
 | 
	
		
			
				|  |  |                       .And(x => x.Date).IsEqualTo(DateTime.Today.Date)
 | 
	
		
			
				|  |  | -                     .And(x => x.Actual.Finish).IsEqualTo(null),
 | 
	
		
			
				|  |  | +                     .And(x => x.Completed).IsEqualTo(null),
 | 
	
		
			
				|  |  |                       null,
 | 
	
		
			
				|  |  |                       new SortOrder<Assignment>(x => x.Actual.Start, SortDirection.Ascending));
 | 
	
		
			
				|  |  |              if (!table.Rows.Any())
 | 
	
	
		
			
				|  | @@ -149,7 +150,10 @@ namespace comal.timesheets
 | 
	
		
			
				|  |  |              if (!complete)
 | 
	
		
			
				|  |  |                  CurrentAssignment.Booked.Finish = RoundToNearestInterval(DateTime.Now, new TimeSpan(0, 5, 0)).TimeOfDay;
 | 
	
		
			
				|  |  |              else
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  |                  CurrentAssignment.Actual.Finish = RoundToNearestInterval(DateTime.Now, new TimeSpan(0, 5, 0)).TimeOfDay;
 | 
	
		
			
				|  |  | +                CurrentAssignment.Completed = DateTime.Now;
 | 
	
		
			
				|  |  | +            }              
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              new Client<Assignment>().Save(CurrentAssignment, auditnote);
 | 
	
		
			
				|  |  |          }
 |