mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-08 12:04:36 -04:00
Gmail
This commit is contained in:
parent
c934c09b67
commit
c2527c56b5
@ -303,14 +303,14 @@ class CheckData extends Command
|
|||||||
$total_invoice_payments += ($total_amount - $total_refund);
|
$total_invoice_payments += ($total_amount - $total_refund);
|
||||||
}
|
}
|
||||||
|
|
||||||
//10/02/21
|
// 10/02/21
|
||||||
// foreach ($client->payments as $payment) {
|
foreach ($client->payments as $payment) {
|
||||||
// $credit_total_applied += $payment->paymentables->where('paymentable_type', App\Models\Credit::class)->sum(DB::raw('amount'));
|
$credit_total_applied += $payment->paymentables->where('paymentable_type', App\Models\Credit::class)->sum(DB::raw('amount'));
|
||||||
// }
|
}
|
||||||
|
|
||||||
// if ($credit_total_applied < 0) {
|
if ($credit_total_applied < 0) {
|
||||||
// $total_invoice_payments += $credit_total_applied;
|
$total_invoice_payments += $credit_total_applied;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
|
||||||
if (round($total_invoice_payments, 2) != round($client->paid_to_date, 2)) {
|
if (round($total_invoice_payments, 2) != round($client->paid_to_date, 2)) {
|
||||||
|
@ -5,6 +5,7 @@ namespace App\Helpers\Mail;
|
|||||||
use Illuminate\Mail\MailManager;
|
use Illuminate\Mail\MailManager;
|
||||||
use App\CustomMailDriver\CustomTransport;
|
use App\CustomMailDriver\CustomTransport;
|
||||||
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
use Dacastro4\LaravelGmail\Services\Message\Mail;
|
||||||
|
use Illuminate\Support\Facades\Config;
|
||||||
|
|
||||||
|
|
||||||
class GmailTransportManager extends MailManager
|
class GmailTransportManager extends MailManager
|
||||||
@ -12,7 +13,8 @@ class GmailTransportManager extends MailManager
|
|||||||
protected function createGmailTransport()
|
protected function createGmailTransport()
|
||||||
{
|
{
|
||||||
|
|
||||||
$token = $this->app['config']->get('services.gmail.token', []);
|
//$token = $this->app['config']->get('services.gmail.token', []);
|
||||||
|
$token =Config::get('services.gmail.token');
|
||||||
$mail = new Mail;
|
$mail = new Mail;
|
||||||
|
|
||||||
return new GmailTransport($mail, $token);
|
return new GmailTransport($mail, $token);
|
||||||
|
@ -86,6 +86,9 @@ class BaseMailerJob implements ShouldQueue
|
|||||||
Config::set('mail.from.name', $user->present()->name());
|
Config::set('mail.from.name', $user->present()->name());
|
||||||
|
|
||||||
(new MailServiceProvider(app()))->register();
|
(new MailServiceProvider(app()))->register();
|
||||||
|
|
||||||
|
nlog("after registering mail service provider");
|
||||||
|
nlog(Config::set('services.gmail.token'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function logMailError($errors, $recipient_object)
|
public function logMailError($errors, $recipient_object)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user