mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
v5.7.45
This commit is contained in:
parent
15ff200153
commit
65d3d0f320
@ -1 +1 @@
|
||||
5.7.44
|
||||
5.7.45
|
@ -211,6 +211,8 @@ class CreditCard
|
||||
{
|
||||
$response_array = $request->all();
|
||||
|
||||
nlog($request->all());
|
||||
|
||||
$state = [
|
||||
'server_response' => $request->all(),
|
||||
'payment_hash' => $request->input('m_payment_id'),
|
||||
|
@ -539,8 +539,7 @@ class FacturaEInvoice extends AbstractService
|
||||
|
||||
private function buildBuyer(): self
|
||||
{
|
||||
|
||||
$buyer = new FacturaeParty([
|
||||
$buyer_array = [
|
||||
"isLegalEntity" => $this->invoice->client->classification === 'individual' ? false : true,
|
||||
"taxNumber" => $this->invoice->client->vat_number,
|
||||
"name" => substr($this->invoice->client->present()->name(), 0, 40),
|
||||
@ -559,13 +558,16 @@ class FacturaEInvoice extends AbstractService
|
||||
'centres' => $this->setFace(),
|
||||
// "cnoCnae" => "04791", // Clasif. Nacional de Act. Económicas
|
||||
// "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();
|
||||
$buyer_array['name'] = $this->invoice->client->present()->first_name();
|
||||
$buyer_array['firstSurname'] = $this->invoice->client->present()->last_name();
|
||||
}
|
||||
|
||||
$buyer = new FacturaeParty($buyer_array);
|
||||
|
||||
|
||||
$this->fac->setBuyer($buyer);
|
||||
|
||||
return $this;
|
||||
|
@ -15,8 +15,8 @@ return [
|
||||
'require_https' => env('REQUIRE_HTTPS', true),
|
||||
'app_url' => rtrim(env('APP_URL', ''), '/'),
|
||||
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
|
||||
'app_version' => env('APP_VERSION','5.7.44'),
|
||||
'app_tag' => env('APP_TAG','5.7.44'),
|
||||
'app_version' => env('APP_VERSION','5.7.45'),
|
||||
'app_tag' => env('APP_TAG','5.7.45'),
|
||||
'minimum_client_version' => '5.0.16',
|
||||
'terms_version' => '1.0.1',
|
||||
'api_secret' => env('API_SECRET', false),
|
||||
|
Loading…
x
Reference in New Issue
Block a user