mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various fixes. Sorry, lazy day.
This commit is contained in:
@@ -205,12 +205,12 @@ class ReconcileController extends Controller
|
||||
$inverse = true;
|
||||
}
|
||||
|
||||
// reconciliation into account? then positive amount:
|
||||
if (TransactionType::RECONCILIATION === $journal['transaction_type_type']) {
|
||||
// opening balance into account? then positive amount:
|
||||
if (TransactionType::OPENING_BALANCE === $journal['transaction_type_type']
|
||||
&& $account->id === $journal['destination_account_id']) {
|
||||
$inverse = true;
|
||||
}
|
||||
|
||||
|
||||
if (true === $inverse) {
|
||||
$journal['amount'] = app('steam')->positive($journal['amount']);
|
||||
if (null !== $journal['foreign_amount']) {
|
||||
|
@@ -73,6 +73,8 @@ class BulkController extends Controller
|
||||
{
|
||||
$subTitle = (string)trans('firefly.mass_bulk_journals');
|
||||
|
||||
$this->rememberPreviousUri('transactions.bulk-edit.uri');
|
||||
|
||||
// make amounts positive.
|
||||
|
||||
// get list of budgets:
|
||||
@@ -127,8 +129,9 @@ class BulkController extends Controller
|
||||
* @param array $tags
|
||||
* @return bool
|
||||
*/
|
||||
public function updateJournalTags(TransactionJournal $journal, bool $ignoreUpdate, array $tags): bool
|
||||
private function updateJournalTags(TransactionJournal $journal, bool $ignoreUpdate, array $tags): bool
|
||||
{
|
||||
|
||||
if (true === $ignoreUpdate) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user