mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge fixes
This commit is contained in:
parent
d68b13018b
commit
10a02fbc61
@ -75,9 +75,7 @@ class CheckData extends Command
|
||||
|
||||
$this->checkBalances();
|
||||
$this->checkContacts();
|
||||
|
||||
// TODO Enable once user_account companies have been merged
|
||||
//$this->checkUserAccounts();
|
||||
$this->checkUserAccounts();
|
||||
|
||||
if (! $this->option('client_id')) {
|
||||
$this->checkOAuth();
|
||||
@ -220,8 +218,9 @@ class CheckData extends Command
|
||||
}
|
||||
}
|
||||
|
||||
$this->logMessage($countInvalid . ' user accounts with multiple companies');
|
||||
|
||||
if ($countInvalid > 0) {
|
||||
$this->logMessage($countInvalid . ' user accounts with multiple companies');
|
||||
$this->isValid = false;
|
||||
}
|
||||
}
|
||||
|
@ -321,10 +321,7 @@ class AccountRepository
|
||||
$item->product_key = 'Plan - '.ucfirst($plan).' ('.ucfirst($term).')';
|
||||
$invoice->invoice_items()->save($item);
|
||||
|
||||
$invitation = new Invitation();
|
||||
$invitation->account_id = $account->id;
|
||||
$invitation->user_id = $account->users()->first()->id;
|
||||
$invitation->public_id = $publicId;
|
||||
$invitation = Invitation::createNew($invoice);
|
||||
$invitation->invoice_id = $invoice->id;
|
||||
$invitation->contact_id = $client->contacts()->first()->id;
|
||||
$invitation->invitation_key = strtolower(str_random(RANDOM_KEY_LENGTH));
|
||||
|
@ -304,7 +304,9 @@
|
||||
theme: 'bootstrap',
|
||||
widgets: ['zebra', 'uitheme', 'filter'{!! request()->group_when_sorted ? ", 'group'" : "" !!}, 'columnSelector'],
|
||||
headerTemplate : '{content} {icon}',
|
||||
dateFormat: '{{ $report->convertDateFormat() }}',
|
||||
@if ($report)
|
||||
dateFormat: '{{ $report->convertDateFormat() }}',
|
||||
@endif
|
||||
numberSorter: function(a, b, direction) {
|
||||
var a = convertStringToNumber(a);
|
||||
var b = convertStringToNumber(b);
|
||||
|
Loading…
x
Reference in New Issue
Block a user