mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 12:54:31 -04:00
commit
2d5a30490e
@ -152,7 +152,7 @@ class AccountApiController extends BaseAPIController
|
|||||||
$account->devices = json_encode($devices);
|
$account->devices = json_encode($devices);
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
return $this->response($account);
|
return $this->response($newDevice);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -185,7 +185,7 @@ class AccountApiController extends BaseAPIController
|
|||||||
$account->devices = json_encode($devices);
|
$account->devices = json_encode($devices);
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
return $this->response($account);
|
return $this->response($newDevice);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@ use App\Events\QuoteInvitationWasViewed;
|
|||||||
use App\Events\QuoteInvitationWasApproved;
|
use App\Events\QuoteInvitationWasApproved;
|
||||||
use App\Events\PaymentWasCreated;
|
use App\Events\PaymentWasCreated;
|
||||||
use App\Ninja\Notifications;
|
use App\Ninja\Notifications;
|
||||||
|
use App\Services\PushService;
|
||||||
|
|
||||||
class NotificationListener
|
class NotificationListener
|
||||||
{
|
{
|
||||||
@ -17,7 +18,7 @@ class NotificationListener
|
|||||||
protected $contactMailer;
|
protected $contactMailer;
|
||||||
protected $pushService;
|
protected $pushService;
|
||||||
|
|
||||||
public function __construct(UserMailer $userMailer, ContactMailer $contactMailer, Notifications\PushService $pushService)
|
public function __construct(UserMailer $userMailer, ContactMailer $contactMailer, PushService $pushService)
|
||||||
{
|
{
|
||||||
$this->userMailer = $userMailer;
|
$this->userMailer = $userMailer;
|
||||||
$this->contactMailer = $contactMailer;
|
$this->contactMailer = $contactMailer;
|
||||||
|
@ -194,7 +194,6 @@ class AccountRepository
|
|||||||
$account = $this->getNinjaAccount();
|
$account = $this->getNinjaAccount();
|
||||||
$lastInvoice = Invoice::withTrashed()->whereAccountId($account->id)->orderBy('public_id', 'DESC')->first();
|
$lastInvoice = Invoice::withTrashed()->whereAccountId($account->id)->orderBy('public_id', 'DESC')->first();
|
||||||
$publicId = $lastInvoice ? ($lastInvoice->public_id + 1) : 1;
|
$publicId = $lastInvoice ? ($lastInvoice->public_id + 1) : 1;
|
||||||
|
|
||||||
$invoice = new Invoice();
|
$invoice = new Invoice();
|
||||||
$invoice->account_id = $account->id;
|
$invoice->account_id = $account->id;
|
||||||
$invoice->user_id = $account->users()->first()->id;
|
$invoice->user_id = $account->users()->first()->id;
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
* [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) - $30
|
* [Softaculous](https://www.softaculous.com/apps/ecommerce/Invoice_Ninja) - $30
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
* PHP >= 5.5.9
|
* PHP >= 5.5.9
|
||||||
* MCrypt PHP Extension
|
* MCrypt PHP Extension
|
||||||
* MySQL
|
* MySQL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user