mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for check data
This commit is contained in:
parent
56e83f6e6c
commit
16f52e0f45
@ -866,6 +866,7 @@ class CheckData extends Command
|
||||
|
||||
foreach(Invoice::with(['payments'])->whereHas('payments')->where('status_id', 4)->where('balance', '>', 0)->where('is_deleted',0)->cursor() as $invoice)
|
||||
{
|
||||
$this->$this->wrong_paid_status++;
|
||||
|
||||
$this->logMessage("# {$invoice->id} " . ' - '.$invoice->number." - Marked as paid, but balance = {$invoice->balance}");
|
||||
|
||||
|
@ -128,8 +128,8 @@ class NinjaPlanController extends Controller
|
||||
if(auth()->guard('contact')->user()->client->custom_value2){
|
||||
MultiDB::findAndSetDbByAccountKey(auth()->guard('contact')->user()->client->custom_value2);
|
||||
$account = Account::where('key', auth()->guard('contact')->user()->client->custom_value2)->first();
|
||||
$account->trial_started = now();
|
||||
$account->trial_plan = 'pro';
|
||||
// $account->trial_started = now();
|
||||
// $account->trial_plan = 'pro';
|
||||
$account->plan = 'pro';
|
||||
$account->plan_term = 'month';
|
||||
$account->plan_started = now();
|
||||
|
Loading…
Reference in New Issue
Block a user