mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
commit
fb552029b4
@ -1 +1 @@
|
|||||||
5.5.6
|
5.5.7
|
@ -37,7 +37,7 @@ class ContactLoginController extends Controller
|
|||||||
$this->middleware('guest:contact', ['except' => ['logout']]);
|
$this->middleware('guest:contact', ['except' => ['logout']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function showLoginForm(Request $request)
|
public function showLoginForm(Request $request, $company_key = false)
|
||||||
{
|
{
|
||||||
$company = false;
|
$company = false;
|
||||||
$account = false;
|
$account = false;
|
||||||
@ -49,6 +49,9 @@ class ContactLoginController extends Controller
|
|||||||
elseif($request->has('company_key')){
|
elseif($request->has('company_key')){
|
||||||
MultiDB::findAndSetDbByCompanyKey($request->input('company_key'));
|
MultiDB::findAndSetDbByCompanyKey($request->input('company_key'));
|
||||||
$company = Company::where('company_key', $request->input('company_key'))->first();
|
$company = Company::where('company_key', $request->input('company_key'))->first();
|
||||||
|
}elseif($company_key){
|
||||||
|
MultiDB::findAndSetDbByCompanyKey($company_key);
|
||||||
|
$company = Company::where('company_key', $company_key)->first();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($company) {
|
if ($company) {
|
||||||
|
@ -84,6 +84,7 @@ class CreateAccount
|
|||||||
if (Ninja::isHosted()) {
|
if (Ninja::isHosted()) {
|
||||||
$sp794f3f->hosted_client_count = config('ninja.quotas.free.clients');
|
$sp794f3f->hosted_client_count = config('ninja.quotas.free.clients');
|
||||||
$sp794f3f->hosted_company_count = config('ninja.quotas.free.max_companies');
|
$sp794f3f->hosted_company_count = config('ninja.quotas.free.max_companies');
|
||||||
|
$sp794f3f->account_sms_verified = true;
|
||||||
// $sp794f3f->trial_started = now();
|
// $sp794f3f->trial_started = now();
|
||||||
// $sp794f3f->trial_plan = 'pro';
|
// $sp794f3f->trial_plan = 'pro';
|
||||||
}
|
}
|
||||||
|
@ -172,6 +172,11 @@ class Vendor extends BaseModel
|
|||||||
return $this->company->company_key.'/'.$this->vendor_hash.'/'.$contact_key.'/purchase_orders/';
|
return $this->company->company_key.'/'.$this->vendor_hash.'/'.$contact_key.'/purchase_orders/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function locale()
|
||||||
|
{
|
||||||
|
return $this->company->locale();
|
||||||
|
}
|
||||||
|
|
||||||
public function country()
|
public function country()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Country::class);
|
return $this->belongsTo(Country::class);
|
||||||
|
@ -55,7 +55,6 @@ class MarkPaid extends AbstractService
|
|||||||
|
|
||||||
$payment->amount = $this->invoice->balance;
|
$payment->amount = $this->invoice->balance;
|
||||||
$payment->applied = $this->invoice->balance;
|
$payment->applied = $this->invoice->balance;
|
||||||
$payment->number = $this->getNextPaymentNumber($this->invoice->client, $payment);
|
|
||||||
$payment->status_id = Payment::STATUS_COMPLETED;
|
$payment->status_id = Payment::STATUS_COMPLETED;
|
||||||
$payment->client_id = $this->invoice->client_id;
|
$payment->client_id = $this->invoice->client_id;
|
||||||
$payment->transaction_reference = ctrans('texts.manual_entry');
|
$payment->transaction_reference = ctrans('texts.manual_entry');
|
||||||
@ -74,6 +73,8 @@ class MarkPaid extends AbstractService
|
|||||||
|
|
||||||
$payment->saveQuietly();
|
$payment->saveQuietly();
|
||||||
|
|
||||||
|
$payment->service()->applyNumber()->save();
|
||||||
|
|
||||||
$this->setExchangeRate($payment);
|
$this->setExchangeRate($payment);
|
||||||
|
|
||||||
/* Create a payment relationship to the invoice entity */
|
/* Create a payment relationship to the invoice entity */
|
||||||
|
@ -36,7 +36,7 @@ class SendEmail
|
|||||||
|
|
||||||
$contact = $this->payment->client->contacts()->first();
|
$contact = $this->payment->client->contacts()->first();
|
||||||
|
|
||||||
if ($contact->email)
|
if ($contact?->email)
|
||||||
EmailPayment::dispatch($this->payment, $this->payment->company, $contact);
|
EmailPayment::dispatch($this->payment, $this->payment->company, $contact);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -14,8 +14,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' => '5.5.6',
|
'app_version' => '5.5.7',
|
||||||
'app_tag' => '5.5.6',
|
'app_tag' => '5.5.7',
|
||||||
'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', ''),
|
'api_secret' => env('API_SECRET', ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user