mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 17:37:31 -04:00 
			
		
		
		
	Stubs for sending edocs
This commit is contained in:
		
							parent
							
								
									9f7ff7dc59
								
							
						
					
					
						commit
						e2365ee0f9
					
				| @ -12,6 +12,8 @@ | ||||
| namespace App\Services\EDocument\Jobes; | ||||
| 
 | ||||
| use App\Libraries\MultiDB; | ||||
| use App\Models\Invoice; | ||||
| use App\Utils\Ninja; | ||||
| use Illuminate\Bus\Queueable; | ||||
| use Illuminate\Queue\SerializesModels; | ||||
| use Illuminate\Queue\InteractsWithQueue; | ||||
| @ -49,6 +51,17 @@ class SendEDocument implements ShouldQueue | ||||
|         if($e_invoice_standard != 'PEPPOL') | ||||
|             return; | ||||
| 
 | ||||
|         if(Ninja::isSelfHost() && ($model instanceof Invoice) && $model->company->legal_entity_id) | ||||
|         { | ||||
|             //self hosted sender
 | ||||
|         } | ||||
| 
 | ||||
|         if(Ninja::isHosted() && ($model instanceof Invoice) && $model->company->legal_entity_id) | ||||
|         { | ||||
|             //hosted sender
 | ||||
|         } | ||||
| 
 | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     public function failed($exception = null) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user