mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for user locale
This commit is contained in:
parent
814ac115e8
commit
08f13cba2a
@ -132,6 +132,7 @@ class BaseExport
|
||||
];
|
||||
|
||||
protected array $invoice_report_keys = [
|
||||
'name' => 'client.name',
|
||||
"invoice_number" => "invoice.number",
|
||||
"amount" => "invoice.amount",
|
||||
"balance" => "invoice.balance",
|
||||
|
@ -660,7 +660,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
|
||||
public function getLocale()
|
||||
{
|
||||
$locale = $this->language->locale ?? false;
|
||||
$locale = $this->language->locale ?? null;
|
||||
|
||||
if($locale)
|
||||
App::setLocale($locale);
|
||||
|
@ -90,7 +90,6 @@ class RecurringExpenseTransformer extends EntityTransformer
|
||||
'currency_id' => (string) $recurring_expense->currency_id ?: '',
|
||||
'category_id' => $this->encodePrimaryKey($recurring_expense->category_id),
|
||||
'payment_type_id' => (string) $recurring_expense->payment_type_id ?: '',
|
||||
'recurring_recurring_expense_id' => (string) $recurring_expense->recurring_recurring_expense_id ?: '',
|
||||
'is_deleted' => (bool) $recurring_expense->is_deleted,
|
||||
'should_be_invoiced' => (bool) $recurring_expense->should_be_invoiced,
|
||||
'invoice_documents' => (bool) $recurring_expense->invoice_documents,
|
||||
|
Loading…
Reference in New Issue
Block a user