mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Additional logging for autobill
This commit is contained in:
parent
be85175134
commit
a11dff6fe7
@ -43,7 +43,7 @@ class AutoBillCron
|
||||
set_time_limit(0);
|
||||
|
||||
/* Get all invoices where the send date is less than NOW + 30 minutes() */
|
||||
nlog("Performing Autobilling ".Carbon::now()->format('Y-m-d h:i:s'));
|
||||
info("Performing Autobilling ".Carbon::now()->format('Y-m-d h:i:s'));
|
||||
|
||||
if (! config('ninja.db.multi_db_enabled')) {
|
||||
|
||||
@ -95,7 +95,7 @@ class AutoBillCron
|
||||
|
||||
private function runAutoBiller(Invoice $invoice)
|
||||
{
|
||||
nlog("Firing autobill for {$invoice->company_id} - {$invoice->number}");
|
||||
info("Firing autobill for {$invoice->company_id} - {$invoice->number}");
|
||||
$invoice->service()->autoBill()->save();
|
||||
}
|
||||
}
|
||||
|
@ -99,6 +99,10 @@ class AutoBillInvoice extends AbstractService
|
||||
->setPaymentHash($payment_hash)
|
||||
->tokenBilling($gateway_token, $payment_hash);
|
||||
|
||||
if($payment){
|
||||
info("Auto Bill payment captured for ".$this->invoice->number);
|
||||
}
|
||||
|
||||
return $this->invoice;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user