This commit is contained in:
David Bomba 2023-11-04 10:52:07 +11:00
parent 10a6f7755b
commit 99f9b23676
3 changed files with 10 additions and 5 deletions

View File

@ -1 +1 @@
5.7.42 5.7.43

View File

@ -544,8 +544,8 @@ class FacturaEInvoice extends AbstractService
"isLegalEntity" => $this->invoice->client->classification === 'individual' ? false : true, "isLegalEntity" => $this->invoice->client->classification === 'individual' ? false : true,
"taxNumber" => $this->invoice->client->vat_number, "taxNumber" => $this->invoice->client->vat_number,
"name" => substr($this->invoice->client->present()->name(), 0, 40), "name" => substr($this->invoice->client->present()->name(), 0, 40),
"firstSurname" => substr($this->invoice->client->present()->first_name(), 0, 40), // "firstSurname" => substr($this->invoice->client->present()->last_name(), 0, 40),
"lastSurname" => substr($this->invoice->client->present()->last_name(), 0, 40), // "lastSurname" => substr($this->invoice->client->present()->last_name(), 0, 40),
"address" => substr($this->invoice->client->address1, 0, 80), "address" => substr($this->invoice->client->address1, 0, 80),
"postCode" => substr($this->invoice->client->postal_code, 0, 5), "postCode" => substr($this->invoice->client->postal_code, 0, 5),
"town" => substr($this->invoice->client->city, 0, 50), "town" => substr($this->invoice->client->city, 0, 50),
@ -561,6 +561,11 @@ class FacturaEInvoice extends AbstractService
// "ineTownCode" => "280796" // Cód. de municipio del INE // "ineTownCode" => "280796" // Cód. de municipio del INE
]); ]);
if($this->invoice->client->classification === 'individual') {
$buyer['name'] = $this->invoice->client->present()->first_name();
$buyer['firstSurname'] = $this->invoice->client->present()->last_name();
}
$this->fac->setBuyer($buyer); $this->fac->setBuyer($buyer);
return $this; return $this;

View File

@ -15,8 +15,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true), 'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => env('APP_VERSION','5.7.42'), 'app_version' => env('APP_VERSION','5.7.43'),
'app_tag' => env('APP_TAG','5.7.42'), 'app_tag' => env('APP_TAG','5.7.43'),
'minimum_client_version' => '5.0.16', 'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1', 'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', false), 'api_secret' => env('API_SECRET', false),