|
@if('Withdrawal' === $transaction['transaction_type_type'])
@endif
@if('Deposit' === $transaction['transaction_type_type'])
@endif
@if('Transfer' === $transaction['transaction_type_type'])
@endif
@if('Reconciliation' === $transaction['transaction_type_type'])
@endif
@if('Opening balance' === $transaction['transaction_type_type'])
@endif
@if('Liability credit' === $transaction['transaction_type_type'])
@endif
|
@if($transaction['reconciled'])
@endif
@if(count($transaction['attachments']) > 0)
@endif
@if(1 === $group['count'])
@endif
{{ $transaction['description'] }}
@if(1 === $group['count'])
@endif
|
{{-- deposit --}}
@if('Deposit' === $transaction['transaction_type_type'])
{{-- amount of deposit --}}
{{ formatAmountBySymbol($transaction['amount']*-1, $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
{{-- foreign amount of deposit --}}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount']*-1, $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
{{-- primary currency amount of deposit --}}
@if($convertToPrimary && 0 != $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount']*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{{-- transfer --}}
@elseif('Transfer' === $transaction['transaction_type_type'])
{{-- amount of transfer --}}
{{-- present as negative. --}}
@if($transaction['source_account_id'] === $account?->id)
neg {{ formatAmountBySymbol($transaction['amount'], $transaction['currency_symbol'], $transaction['currency_decimal_places'], false) }}
@endif
{{-- present as positive --}}
@if($transaction['source_account_id'] !== $account?->id)
{{ formatAmountBySymbol($transaction['amount']*-1, $transaction['currency_symbol'], $transaction['currency_decimal_places'], false) }}
@endif
{{-- foreign amount of transfer (negative) --}}
@if(null !== $transaction['foreign_amount'] && $transaction['source_account_id'] === $account?->id)
neg ({{ formatAmountBySymbol($transaction['foreign_amount'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places'], false) }})
@endif
{{-- foreign amount of transfer (positive) --}}
@if(null !== $transaction['foreign_amount'] && $transaction['source_account_id'] !== $account?->id)
({{ formatAmountBySymbol($transaction['foreign_amount']*-1, $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places'], false) }})
@endif
{{-- transfer in primary currency. Does not care about direction. --}}
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount']*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
{{-- opening balance --}}
@elseif('Opening balance' === $transaction['transaction_type_type'])
{{-- Is a positive opening balance, present as positive. --}}
@if('Initial balance account' === $transaction['source_account_type'])
{{ formatAmountBySymbol($transaction['amount']*-1, $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
{{-- opening balance may have foreign amount (also pos) --}}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount']*-1, $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
{{-- possibly, primary amount. --}}
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount']*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@else
{{-- withdrawal but also any other transaction type: --}}
{{ formatAmountBySymbol($transaction['amount'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount'], $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
@elseif('Reconciliation' === $transaction['transaction_type_type'])
{{-- Reconciliation positive--}}
@if('Reconciliation account' === $transaction['source_account_type'])
{{-- amount, also foreign and converted. --}}
{{ formatAmountBySymbol($transaction['amount']*-1, $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount']*-1, $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount']*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@else
{{-- Reconciliation negative --}}
{{ formatAmountBySymbol($transaction['amount'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount'], $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
@elseif('Liability credit' === $transaction['transaction_type_type'])
{{-- liability credit positive--}}
@if('Liability credit' === $transaction['source_account_type'])
{{ formatAmountBySymbol($transaction['amount'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount'], $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@else
{{ formatAmountBySymbol($transaction['amount']*-1, $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount']*-1, $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
@if($convertToPrimary && 0 !== $transaction['pc_amount'])
(~ {{ formatAmountBySymbol($transaction['pc_amount']*-1, $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
@else
{{-- THE REST most likely, withdrawal but also any other transaction type: --}}
{{ formatAmountBySymbol($transaction['amount'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
{{-- foreign amount of withdrawal --}}
@if(null !== $transaction['foreign_amount'])
({{ formatAmountBySymbol($transaction['foreign_amount'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }})
@endif
{{-- primary currency amount of withdrawal, if not in foreign currency --}}
@if($convertToPrimary && 0 !== $transaction['pc_amount'] && $primaryCurrency->id !== $transaction['foreign_currency_id'])
(~ {{ formatAmountBySymbol($transaction['pc_amount'], $primaryCurrency->symbol, $primaryCurrency->decimal_places) }})
@endif
@endif
|
@if(\FireflyIII\Support\Facades\AppConfiguration::get('use_running_balance', true))
{{-- RUNNING BALANCE --}}
@if((null === $transaction['balance_dirty'] || false === $transaction['balance_dirty']) && null !== $transaction['destination_balance_after'] && null !== $transaction['source_balance_after'])
@if('Deposit' === $transaction['transaction_type_type'])
@if($transaction['source_account_id'] == $account?->id)
{{ formatAmountBySymbol($transaction['source_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
@if('Revenue account' === $transaction['source_account_type'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }}
@endif
{{-- if this is a deposit from revenue account, use the destination account currency? For #12043 and #12169. Otherwise, keep at source account -}}
{{-- changed from normal currency_symbol to foreign_currency_symbol for #12043 --}}
@endif
@elseif('Withdrawal' === $transaction['transaction_type_type'])
{{-- withdrawal into a liability --}}
@if(in_array($transaction['destination_account_type'], ['Mortgage','Debt','Loan'], true))
@if($currency['id'] === $transaction['currency_id'])
@if($account?->id === $transaction['source_account_id'])
{{ formatAmountBySymbol($transaction['source_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@elseif($account?->id === $transaction['destination_account_id'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
-
@endif
@endif
@if($currency['id'] === $transaction['foreign_currency_id'] && null !== $transaction['destination_balance_after'] && null !== $transaction['destination_balance_after'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['foreign_currency_symbol'] ?? $transaction['currency_symbol'], $transaction['foreign_currency_decimal_places'] ?? $transaction['currency_decimal_places']) }}
@endif
{{-- withdrawal into an expense account --}}
@else
@if($account?->id === $transaction['source_account_id'])
{{ formatAmountBySymbol($transaction['source_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@elseif($account?->id === $transaction['destination_account_id'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
-
@endif
@endif
@elseif('Opening balance' === $transaction['transaction_type_type'])
@if($account?->id == $transaction['source_account_id'])
{{ formatAmountBySymbol($transaction['source_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@elseif($account?->id == $transaction['destination_account_id'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
-
@endif
@elseif('Transfer' === $transaction['transaction_type_type'])
@if($account?->id == $transaction['source_account_id'])
{{ formatAmountBySymbol($transaction['source_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@else
@if(null === $transaction['foreign_currency_id'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['currency_symbol'], $transaction['currency_decimal_places']) }}
@endif
@if(null !== $transaction['foreign_currency_id'])
{{ formatAmountBySymbol($transaction['destination_balance_after'], $transaction['foreign_currency_symbol'], $transaction['foreign_currency_decimal_places']) }}
@endif
@endif
@else
@endif
@endif
|
@endif
{{ $transaction['date']->isoFormat($monthAndDayFormat) }}
|
@if('Cash account' === $transaction['source_account_type'])
({{ __('firefly.cash') }})
@else
{{ $transaction['source_account_name'] }}
@endif
|
@if('Cash account' == $transaction['destination_account_type'])
({{ __('firefly.cash') }})
@else
{{ $transaction['destination_account_name'] }}
@endif
|
@if($showCategory)
@if(null !== $transaction['category_id'])
{{ $transaction['category_name'] }}
@endif
|
@endif
@if($showBudget)
@if(null !== $transaction['budget_id'])
{{ $transaction['budget_name'] }}
@endif
|
@endif
@if(1 === count($group))
|
@endif
@if(1 !== count($group))
|
@endif
@if($transaction['transaction_type_type'] !== 'Reconciliation' and $transaction['transaction_type_type'] !== 'Opening balance' and $transaction['transaction_type_type'] !== 'Liability credit')
@endif
|
@endforeach
@endforeach