Minor fixes for creating sample data
This commit is contained in:
parent
8ff9c923e3
commit
846a966a47
|
|
@ -22,6 +22,7 @@ use App\Factory\RecurringInvoiceFactory;
|
||||||
use App\Factory\SubscriptionFactory;
|
use App\Factory\SubscriptionFactory;
|
||||||
use App\Helpers\Invoice\InvoiceSum;
|
use App\Helpers\Invoice\InvoiceSum;
|
||||||
use App\Jobs\Company\CreateCompanyTaskStatuses;
|
use App\Jobs\Company\CreateCompanyTaskStatuses;
|
||||||
|
use App\Libraries\MultiDB;
|
||||||
use App\Models\Account;
|
use App\Models\Account;
|
||||||
use App\Models\Client;
|
use App\Models\Client;
|
||||||
use App\Models\ClientContact;
|
use App\Models\ClientContact;
|
||||||
|
|
@ -62,7 +63,7 @@ class CreateSingleAccount extends Command
|
||||||
/**
|
/**
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'ninja:create-single-account {gateway=all}';
|
protected $signature = 'ninja:create-single-account {gateway=all} {--database=db-ninja-01}';
|
||||||
|
|
||||||
protected $invoice_repo;
|
protected $invoice_repo;
|
||||||
|
|
||||||
|
|
@ -89,6 +90,8 @@ class CreateSingleAccount extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
|
MultiDB::setDb($this->option('database'));
|
||||||
|
|
||||||
$this->info(date('r').' Create Single Sample Account...');
|
$this->info(date('r').' Create Single Sample Account...');
|
||||||
$this->count = 1;
|
$this->count = 1;
|
||||||
$this->gateway = $this->argument('gateway');
|
$this->gateway = $this->argument('gateway');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue