1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Merge pull request #7122 from turbo124/v5-develop

v5.3.46
This commit is contained in:
David Bomba 2022-01-14 16:06:11 +11:00 committed by GitHub
commit bfe31c09ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 22 additions and 11 deletions

View File

@ -1 +1 @@
5.3.45
5.3.46

View File

@ -87,6 +87,10 @@ class InvitationController extends Controller
if(!$invitation)
return abort(404,'The resource is no longer available.');
/* 12/01/2022 Clean up an edge case where if the contact is trashed, restore if a invitation comes back. */
if($invitation->contact->trashed())
$invitation->contact->restore();
/* Return early if we have the correct client_hash embedded */
$client_contact = $invitation->contact;

View File

@ -34,7 +34,7 @@ class CheckClientExistence
->where('email', auth('contact')->user()->email)
->whereNotNull('email')
->where('email', '<>', '')
->whereNull('deleted_at')
// ->whereNull('deleted_at')
->distinct('company_id')
->distinct('email')
->whereNotNull('company_id')
@ -46,10 +46,11 @@ class CheckClientExistence
})
->get();
/* This catches deleted clients who don't have access to the app. We automatically log them out here*/
if (count($multiple_contacts) == 0) {
Auth::logout();
return redirect()->route('client.login');
return redirect()->route('client.login')->with('message', 'Login disabled');
}
if (count($multiple_contacts) == 1 && !Auth::guard('contact')->check()) {

View File

@ -477,6 +477,11 @@ class Import implements ShouldQueue
}
$company_settings->{$key} = $value;
if($key == 'payment_terms'){
settype($company_settings->payment_terms, 'string');
}
}
$data['settings'] = $company_settings;

View File

@ -60,14 +60,14 @@ class Token
if(!$response_status['success'])
return $this->processUnsuccessfulPayment($response);
$payment = $this->processSuccessfulPayment($response);
$payment = $this->processSuccessfulPayment($response, $cgt);
return $payment;
}
private function processSuccessfulPayment($response)
private function processSuccessfulPayment($response, $cgt)
{
$amount = array_sum(array_column($this->eway_driver->payment_hash->invoices(), 'amount')) + $this->eway_driver->payment_hash->fee_total;
@ -103,7 +103,7 @@ class Token
'error_code' => $error_code,
];
return $this->driver_class->processUnsuccessfulTransaction($data);
return $this->eway_driver->processUnsuccessfulTransaction($data);
}

View File

@ -114,7 +114,7 @@ class SOFORT
{
$server_response = $this->stripe->payment_hash->data;
$this->stripe->sendFailureMail($server_response);
$this->stripe->sendFailureMail("There was an undefined error processing this payment.");
$message = [
'server_response' => $server_response,

View File

@ -53,7 +53,8 @@ return [
*/
'url' => env('APP_URL', 'http://localhost'),
'mix_url' => env('APP_URL', 'http://localhost'),
'mix_url' => env('MIX_ASSET_URL', env('APP_URL', null)),
/*
|--------------------------------------------------------------------------
| Application Timezone

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.3.45',
'app_tag' => '5.3.45',
'app_version' => '5.3.46',
'app_tag' => '5.3.46',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''),

View File

@ -196,6 +196,6 @@ return [
|
*/
'same_site' => 'lax',
'same_site' => env('SESSION_SAME_SITE', 'lax'),
];