mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 01:17:30 -05:00 
			
		
		
		
	Refactor TaskScheduler into Scheduler
This commit is contained in:
		
							parent
							
								
									62ed8d3391
								
							
						
					
					
						commit
						bafa16e8ee
					
				
							
								
								
									
										57
									
								
								app/Services/Schedule/ScheduleService.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								app/Services/Schedule/ScheduleService.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,57 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * Invoice Ninja (https://invoiceninja.com).
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @link https://github.com/invoiceninja/invoiceninja source repository
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @license https://www.elastic.co/licensing/elastic-license
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace App\Services\Schedule;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class ScheduleService
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function __construct(public Scheduler $scheduler) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function scheduleStatement()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //Is it for one client
 | 
				
			||||||
 | 
					        //Is it for all clients
 | 
				
			||||||
 | 
					        //Is it for all clients excluding these clients
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //Frequency
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //show aging
 | 
				
			||||||
 | 
					        //show payments
 | 
				
			||||||
 | 
					        //paid/unpaid
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        //When to send? 1st of month
 | 
				
			||||||
 | 
					        //End of month
 | 
				
			||||||
 | 
					        //This date
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function scheduleReport()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        //Report type
 | 
				
			||||||
 | 
					        //same schema as ScheduleStatement
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function scheduleEntitySend()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        //Entity
 | 
				
			||||||
 | 
					        //Entity Id
 | 
				
			||||||
 | 
					        //When
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function projectStatus()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        //Project ID
 | 
				
			||||||
 | 
					        //Tasks - task statuses
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user