Merge branch 'akaunting:master' into master
This commit is contained in:
commit
91bc935e02
@ -387,18 +387,18 @@ class Transaction extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isIncome()) {
|
if ($this->isIncome()) {
|
||||||
if ($this->document->type != 'invoice') {
|
if (! empty($this->document) && $this->document->type != 'invoice') {
|
||||||
return $this->getRouteFromConfig();
|
return $this->getRouteFromConfig();
|
||||||
} else {
|
} else {
|
||||||
return !empty($this->document_id) ? 'invoices.show' : 'revenues.show';
|
return ! empty($this->document_id) ? 'invoices.show' : 'revenues.show';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->isExpense()) {
|
if ($this->isExpense()) {
|
||||||
if ($this->document->type != 'bill') {
|
if (! empty($this->document) && $this->document->type != 'bill') {
|
||||||
return $this->getRouteFromConfig();
|
return $this->getRouteFromConfig();
|
||||||
} else {
|
} else {
|
||||||
return !empty($this->document_id) ? 'bills.show' : 'payments.show';
|
return ! empty($this->document_id) ? 'bills.show' : 'payments.show';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,15 +10,15 @@ return [
|
|||||||
|
|
||||||
'minor' => '1',
|
'minor' => '1',
|
||||||
|
|
||||||
'patch' => '34',
|
'patch' => '35',
|
||||||
|
|
||||||
'build' => '',
|
'build' => '',
|
||||||
|
|
||||||
'status' => 'Stable',
|
'status' => 'Stable',
|
||||||
|
|
||||||
'date' => '26-April-2021',
|
'date' => '27-April-2021',
|
||||||
|
|
||||||
'time' => '12:00',
|
'time' => '14:00',
|
||||||
|
|
||||||
'zone' => 'GMT +3',
|
'zone' => 'GMT +3',
|
||||||
|
|
||||||
|
@ -6,4 +6,6 @@ return [
|
|||||||
|
|
||||||
'message' => 'Žao nam je, trenutno smo na održavanju. Molimo pokušajte ponovo kasnije!',
|
'message' => 'Žao nam je, trenutno smo na održavanju. Molimo pokušajte ponovo kasnije!',
|
||||||
|
|
||||||
|
'read_only' => 'Omogućen je samo režim za čitanje. Dozvoljen vam je pregled, ali ništa ne možete mijenjati!',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -6,4 +6,6 @@ return [
|
|||||||
|
|
||||||
'message' => 'Sorry, we\'re down for maintenance. Please, try again later!',
|
'message' => 'Sorry, we\'re down for maintenance. Please, try again later!',
|
||||||
|
|
||||||
|
'read_only' => 'Read-only mode is enabled. You are allowed to view but not change anything!',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -6,4 +6,6 @@ return [
|
|||||||
|
|
||||||
'message' => 'Lo sentimos, estamos en mantenimiento. Por favor, inténtalo de nuevo más tarde!',
|
'message' => 'Lo sentimos, estamos en mantenimiento. Por favor, inténtalo de nuevo más tarde!',
|
||||||
|
|
||||||
|
'read_only' => 'El modo de solo lectura está activo. Puede ver pero no hacer cambios.',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
@ -6,6 +6,6 @@ return [
|
|||||||
|
|
||||||
'message' => 'Desculpe, estamos em manutenção. Por favor, tente novamente mais tarde!',
|
'message' => 'Desculpe, estamos em manutenção. Por favor, tente novamente mais tarde!',
|
||||||
|
|
||||||
'read_only' => 'Modo somente leitura está ativado. Você poderá visualizar, mas não pode alterar nada!',
|
'read_only' => 'O modo somente leitura está ativado. É permitido visualizar, mas não altera nada!',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user