mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 22:22:32 +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 = [
|
protected array $invoice_report_keys = [
|
||||||
|
'name' => 'client.name',
|
||||||
"invoice_number" => "invoice.number",
|
"invoice_number" => "invoice.number",
|
||||||
"amount" => "invoice.amount",
|
"amount" => "invoice.amount",
|
||||||
"balance" => "invoice.balance",
|
"balance" => "invoice.balance",
|
||||||
|
@ -660,7 +660,7 @@ class User extends Authenticatable implements MustVerifyEmail
|
|||||||
|
|
||||||
public function getLocale()
|
public function getLocale()
|
||||||
{
|
{
|
||||||
$locale = $this->language->locale ?? false;
|
$locale = $this->language->locale ?? null;
|
||||||
|
|
||||||
if($locale)
|
if($locale)
|
||||||
App::setLocale($locale);
|
App::setLocale($locale);
|
||||||
|
@ -90,7 +90,6 @@ class RecurringExpenseTransformer extends EntityTransformer
|
|||||||
'currency_id' => (string) $recurring_expense->currency_id ?: '',
|
'currency_id' => (string) $recurring_expense->currency_id ?: '',
|
||||||
'category_id' => $this->encodePrimaryKey($recurring_expense->category_id),
|
'category_id' => $this->encodePrimaryKey($recurring_expense->category_id),
|
||||||
'payment_type_id' => (string) $recurring_expense->payment_type_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,
|
'is_deleted' => (bool) $recurring_expense->is_deleted,
|
||||||
'should_be_invoiced' => (bool) $recurring_expense->should_be_invoiced,
|
'should_be_invoiced' => (bool) $recurring_expense->should_be_invoiced,
|
||||||
'invoice_documents' => (bool) $recurring_expense->invoice_documents,
|
'invoice_documents' => (bool) $recurring_expense->invoice_documents,
|
||||||
|
Loading…
Reference in New Issue
Block a user