mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 22:27:31 -05:00 
			
		
		
		
	ES E-Invoicing
This commit is contained in:
		
							parent
							
								
									d5842b49ec
								
							
						
					
					
						commit
						fdba7ee0de
					
				@ -169,6 +169,7 @@ class FacturaEInvoice extends AbstractService
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        foreach($this->invoice->line_items as $item) {
 | 
					        foreach($this->invoice->line_items as $item) {
 | 
				
			||||||
            $this->fac->addItem(new FacturaeItem([
 | 
					            $this->fac->addItem(new FacturaeItem([
 | 
				
			||||||
 | 
					                'name' => $item->product_key,
 | 
				
			||||||
                'description' => $item->notes,
 | 
					                'description' => $item->notes,
 | 
				
			||||||
                'quantity' => $item->quantity,
 | 
					                'quantity' => $item->quantity,
 | 
				
			||||||
                'unitPrice' => $item->cost,
 | 
					                'unitPrice' => $item->cost,
 | 
				
			||||||
@ -302,7 +303,7 @@ class FacturaEInvoice extends AbstractService
 | 
				
			|||||||
        "email"   => $this->invoice->client->present()->email(),
 | 
					        "email"   => $this->invoice->client->present()->email(),
 | 
				
			||||||
        "phone"   => $this->invoice->client->present()->phone(),
 | 
					        "phone"   => $this->invoice->client->present()->phone(),
 | 
				
			||||||
        "fax"     => "",
 | 
					        "fax"     => "",
 | 
				
			||||||
        "website" => $this->invoice->client->present()->website(),
 | 
					        "website" => substr($this->invoice->client->present()->website(), 0 ,60),
 | 
				
			||||||
        "contactPeople" => $this->invoice->client->present()->first_name()." ".$this->invoice->client->present()->last_name(),
 | 
					        "contactPeople" => $this->invoice->client->present()->first_name()." ".$this->invoice->client->present()->last_name(),
 | 
				
			||||||
        // "cnoCnae" => "04791", // Clasif. Nacional de Act. Económicas
 | 
					        // "cnoCnae" => "04791", // Clasif. Nacional de Act. Económicas
 | 
				
			||||||
        // "ineTownCode" => "280796" // Cód. de municipio del INE
 | 
					        // "ineTownCode" => "280796" // Cód. de municipio del INE
 | 
				
			||||||
@ -317,7 +318,7 @@ class FacturaEInvoice extends AbstractService
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        // $ssl_cert = file_get_contents(base_path('e_invoice_cert.p12'));
 | 
					        // $ssl_cert = file_get_contents(base_path('e_invoice_cert.p12'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // $this->fac->sign($ssl_cert, null, "SuperSecrethere");
 | 
					        // $this->fac->sign($ssl_cert, null, "SuperSecretPassword");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return $this;
 | 
					        return $this;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user