mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 15:04:36 -04:00
Count auto bill items
This commit is contained in:
parent
cb55400121
commit
8005a1b7c7
@ -40,9 +40,6 @@ class NinjaPlanController extends Controller
|
|||||||
$account = $company->account;
|
$account = $company->account;
|
||||||
|
|
||||||
|
|
||||||
nlog("Ninja Plan Controller Company key found {$company->company_key}");
|
|
||||||
|
|
||||||
|
|
||||||
if (MultiDB::findAndSetDbByContactKey($contact_key) && $client_contact = ClientContact::where('contact_key', $contact_key)->first())
|
if (MultiDB::findAndSetDbByContactKey($contact_key) && $client_contact = ClientContact::where('contact_key', $contact_key)->first())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -75,8 +75,11 @@ class AutoBillCron
|
|||||||
|
|
||||||
nlog($auto_bill_invoices->count(). " full invoices to auto bill");
|
nlog($auto_bill_invoices->count(). " full invoices to auto bill");
|
||||||
|
|
||||||
$auto_bill_invoices->cursor()->each(function ($invoice){
|
$x = 1;
|
||||||
|
$auto_bill_invoices->cursor()->each(function ($invoice) use($x){
|
||||||
|
nlog("partial auto bill counter {$x}");
|
||||||
$this->runAutoBiller($invoice, false);
|
$this->runAutoBiller($invoice, false);
|
||||||
|
$x++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -114,8 +117,11 @@ class AutoBillCron
|
|||||||
|
|
||||||
nlog($auto_bill_invoices->count(). " full invoices to auto bill db = {$db}");
|
nlog($auto_bill_invoices->count(). " full invoices to auto bill db = {$db}");
|
||||||
|
|
||||||
$auto_bill_invoices->cursor()->each(function ($invoice) use($db){
|
$x = 1;
|
||||||
|
$auto_bill_invoices->cursor()->each(function ($invoice) use($db, $x){
|
||||||
|
nlog("auto bill counter {$x}");
|
||||||
$this->runAutoBiller($invoice, $db);
|
$this->runAutoBiller($invoice, $db);
|
||||||
|
$x++;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user