mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:54:30 -04:00
commit
14b67a2053
@ -62,6 +62,7 @@ class ExportMigrations extends Command
|
|||||||
$users = User::all();
|
$users = User::all();
|
||||||
|
|
||||||
foreach($users as $user) {
|
foreach($users as $user) {
|
||||||
|
Auth::login($user);
|
||||||
$this->export($user);
|
$this->export($user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -78,18 +79,28 @@ class ExportMigrations extends Command
|
|||||||
$fileName = "{$accountKey}-{$date}-invoiceninja";
|
$fileName = "{$accountKey}-{$date}-invoiceninja";
|
||||||
|
|
||||||
$data['data'] = [
|
$data['data'] = [
|
||||||
|
'account' => $this->getAccount(),
|
||||||
'company' => $this->getCompany(),
|
'company' => $this->getCompany(),
|
||||||
'users' => $this->getUsers(),
|
'users' => $this->getUsers(),
|
||||||
'tax_rates' => $this->getTaxRates(),
|
'tax_rates' => $this->getTaxRates(),
|
||||||
|
'payment_terms' => $this->getPaymentTerms(),
|
||||||
'clients' => $this->getClients(),
|
'clients' => $this->getClients(),
|
||||||
'products' => $this->getProducts(),
|
|
||||||
'invoices' => $this->getInvoices(),
|
|
||||||
'quotes' => $this->getQuotes(),
|
|
||||||
'payments' => array_merge($this->getPayments(), $this->getCredits()),
|
|
||||||
'credits' => $this->getCreditsNotes(),
|
|
||||||
'documents' => $this->getDocuments(),
|
|
||||||
'company_gateways' => $this->getCompanyGateways(),
|
'company_gateways' => $this->getCompanyGateways(),
|
||||||
'client_gateway_tokens' => $this->getClientGatewayTokens(),
|
'client_gateway_tokens' => $this->getClientGatewayTokens(),
|
||||||
|
'vendors' => $this->getVendors(),
|
||||||
|
'projects' => $this->getProjects(),
|
||||||
|
'products' => $this->getProducts(),
|
||||||
|
'credits' => $this->getCreditsNotes(),
|
||||||
|
'invoices' => $this->getInvoices(),
|
||||||
|
'recurring_invoices' => $this->getRecurringInvoices(),
|
||||||
|
'quotes' => $this->getQuotes(),
|
||||||
|
'payments' => array_merge($this->getPayments(), $this->getCredits()),
|
||||||
|
'documents' => $this->getDocuments(),
|
||||||
|
'expense_categories' => $this->getExpenseCategories(),
|
||||||
|
'task_statuses' => $this->getTaskStatuses(),
|
||||||
|
'expenses' => $this->getExpenses(),
|
||||||
|
'tasks' => $this->getTasks(),
|
||||||
|
'documents' => $this->getDocuments(),
|
||||||
];
|
];
|
||||||
|
|
||||||
$file = storage_path("migrations/{$fileName}.zip");
|
$file = storage_path("migrations/{$fileName}.zip");
|
||||||
|
@ -715,7 +715,7 @@ info("get company");
|
|||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
# code...
|
return 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1015,6 +1015,7 @@ info("get company");
|
|||||||
$transformed = [];
|
$transformed = [];
|
||||||
|
|
||||||
$payments = Payment::where('account_id', $this->account->id)
|
$payments = Payment::where('account_id', $this->account->id)
|
||||||
|
->where('payment_status_id', '!=', PAYMENT_STATUS_VOIDED)
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
|
@ -4140,6 +4140,9 @@ $LANG = array(
|
|||||||
|
|
||||||
//////////////////////////////////////
|
//////////////////////////////////////
|
||||||
'start_migration' => 'Start Migration',
|
'start_migration' => 'Start Migration',
|
||||||
|
'recurring_cancellation_request' => 'Request for recurring invoice cancellation from :contact',
|
||||||
|
'recurring_cancellation_request_body' => ':contact from Client :client requested to cancel Recurring Invoice :invoice',
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return $LANG;
|
return $LANG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user