mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 08:07:34 -05:00 
			
		
		
		
	Stubs for sending edocs
This commit is contained in:
		
							parent
							
								
									9f7ff7dc59
								
							
						
					
					
						commit
						e2365ee0f9
					
				@ -12,6 +12,8 @@
 | 
				
			|||||||
namespace App\Services\EDocument\Jobes;
 | 
					namespace App\Services\EDocument\Jobes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
use App\Libraries\MultiDB;
 | 
					use App\Libraries\MultiDB;
 | 
				
			||||||
 | 
					use App\Models\Invoice;
 | 
				
			||||||
 | 
					use App\Utils\Ninja;
 | 
				
			||||||
use Illuminate\Bus\Queueable;
 | 
					use Illuminate\Bus\Queueable;
 | 
				
			||||||
use Illuminate\Queue\SerializesModels;
 | 
					use Illuminate\Queue\SerializesModels;
 | 
				
			||||||
use Illuminate\Queue\InteractsWithQueue;
 | 
					use Illuminate\Queue\InteractsWithQueue;
 | 
				
			||||||
@ -49,6 +51,17 @@ class SendEDocument implements ShouldQueue
 | 
				
			|||||||
        if($e_invoice_standard != 'PEPPOL')
 | 
					        if($e_invoice_standard != 'PEPPOL')
 | 
				
			||||||
            return;
 | 
					            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)
 | 
					    public function failed($exception = null)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user