Merge pull request #2402 from sevannerse/typo-fixed

typo fixed
This commit is contained in:
Cüneyt Şentürk 2022-06-01 15:21:52 +03:00 committed by GitHub
commit 7cd36616d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,7 +463,7 @@ class Transaction extends Model
try {
if ($this->is_splittable && empty($this->document_id) && empty($this->recurring)) {
$conenct = [
$connect = [
'type' => 'button',
'title' => trans('general.connect'),
'icon' => 'sensors',
@ -479,14 +479,14 @@ class Transaction extends Model
if ($this->contact->exists) {
$document = $this->contact->invoices()->notPaid()->where('currency_code', $this->currency_code)->with(['media', 'totals', 'transactions'])->get()->toJson();
$conenct['attributes']['@click'] = 'onConnect()';
$connect['attributes']['@click'] = 'onConnect()';
} else {
$document = \App\Models\Document\Document::invoice()->notPaid()->where('currency_code', $this->currency_code)->with(['media', 'totals', 'transactions'])->get()->toJson();
$conenct['attributes']['@click'] = 'onConnect()';
$connect['attributes']['@click'] = 'onConnect()';
}
$actions[] = $conenct;
$actions[] = $connect;
$actions[] = [
'type' => 'divider',