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();
|
$response_array = $request->all();
|
||||||
|
|
||||||
|
nlog($request->all());
|
||||||
|
|
||||||
$state = [
|
$state = [
|
||||||
'server_response' => $request->all(),
|
'server_response' => $request->all(),
|
||||||
'payment_hash' => $request->input('m_payment_id'),
|
'payment_hash' => $request->input('m_payment_id'),
|
||||||
|
@ -539,8 +539,7 @@ class FacturaEInvoice extends AbstractService
|
|||||||
|
|
||||||
private function buildBuyer(): self
|
private function buildBuyer(): self
|
||||||
{
|
{
|
||||||
|
$buyer_array = [
|
||||||
$buyer = new FacturaeParty([
|
|
||||||
"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),
|
||||||
@ -559,13 +558,16 @@ class FacturaEInvoice extends AbstractService
|
|||||||
'centres' => $this->setFace(),
|
'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
|
||||||
]);
|
];
|
||||||
|
|
||||||
if($this->invoice->client->classification === 'individual') {
|
if($this->invoice->client->classification === 'individual') {
|
||||||
$buyer['name'] = $this->invoice->client->present()->first_name();
|
$buyer_array['name'] = $this->invoice->client->present()->first_name();
|
||||||
$buyer['firstSurname'] = $this->invoice->client->present()->last_name();
|
$buyer_array['firstSurname'] = $this->invoice->client->present()->last_name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$buyer = new FacturaeParty($buyer_array);
|
||||||
|
|
||||||
|
|
||||||
$this->fac->setBuyer($buyer);
|
$this->fac->setBuyer($buyer);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -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.44'),
|
'app_version' => env('APP_VERSION','5.7.45'),
|
||||||
'app_tag' => env('APP_TAG','5.7.44'),
|
'app_tag' => env('APP_TAG','5.7.45'),
|
||||||
'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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user