mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fixes for FACe
This commit is contained in:
parent
94838cbdc4
commit
851f81e1d6
@ -192,7 +192,7 @@ class FacturaEInvoice extends AbstractService
|
|||||||
if($this->invoice->client->custom_value1 == 'yes')
|
if($this->invoice->client->custom_value1 == 'yes')
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach($this->invoice->client->contacts() as $contact)
|
foreach($this->invoice->client->contacts()->whereNotNull('custom_value1')->whereNull('deleted_at')->cursor() as $contact)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(in_array($contact->custom_value1, array_keys($this->centre_codes)))
|
if(in_array($contact->custom_value1, array_keys($this->centre_codes)))
|
||||||
@ -345,12 +345,11 @@ class FacturaEInvoice extends AbstractService
|
|||||||
"fax" => "",
|
"fax" => "",
|
||||||
"website" => substr($company->settings->website, 0, 50),
|
"website" => substr($company->settings->website, 0, 50),
|
||||||
"contactPeople" => substr($company->owner()->present()->name(), 0, 40),
|
"contactPeople" => substr($company->owner()->present()->name(), 0, 40),
|
||||||
'centres' => $this->setFace(),
|
// 'centres' => $this->setFace(),
|
||||||
// "cnoCnae" => "04647", // Clasif. Nacional de Act. Económicas
|
// "cnoCnae" => "04647", // Clasif. Nacional de Act. Económicas
|
||||||
// "ineTownCode" => "280796" // Cód. de municipio del INE
|
// "ineTownCode" => "280796" // Cód. de municipio del INE
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
||||||
$this->fac->setSeller($seller);
|
$this->fac->setSeller($seller);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
@ -375,6 +374,7 @@ class FacturaEInvoice extends AbstractService
|
|||||||
"fax" => "",
|
"fax" => "",
|
||||||
"website" => substr($this->invoice->client->present()->website(), 0 ,60),
|
"website" => substr($this->invoice->client->present()->website(), 0 ,60),
|
||||||
"contactPeople" => substr($this->invoice->client->present()->first_name()." ".$this->invoice->client->present()->last_name(), 0, 40),
|
"contactPeople" => substr($this->invoice->client->present()->first_name()." ".$this->invoice->client->present()->last_name(), 0, 40),
|
||||||
|
'centres' => $this->setFace(),
|
||||||
// "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
|
||||||
]);
|
]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user