From 2c9bc10e518bfe7dd4aa266e3fd988c58f7cdfae Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 31 Dec 2019 06:17:32 +0100 Subject: [PATCH] Fix #2934 --- resources/views/v1/transactions/convert.twig | 23 ++------------------ 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/resources/views/v1/transactions/convert.twig b/resources/views/v1/transactions/convert.twig index 70adec3194..c5e691a581 100644 --- a/resources/views/v1/transactions/convert.twig +++ b/resources/views/v1/transactions/convert.twig @@ -64,10 +64,10 @@ {# ONE: WITHDRAWAL TO DEPOSIT #} {% if sourceType.type == 'Withdrawal' and destinationType.type == 'Deposit' %} {# NEW DESTINATION = Asset, SOURCE MUST BE [Revenue, Cash, Loan, Debt, Mortgage] #} - {% if - transaction.source_type == 'Asset account' %} + {% if transaction.source_type == 'Asset account' %} {{ Form.select('source_id['~transaction.transaction_journal_id~']', validDepositSources, null, {class: 'form-control'}) }} {% endif %} + {# NEW DESTINATION = [Loan, Debt, Mortgage], SOURCE MUST BE [Revenue] #} {% if transaction.source_type == 'Loan' or @@ -260,25 +260,6 @@ {% endfor %} - - - {# in case of withdrawal #} - {% if sourceType.type == "Withdrawal" %} - {{ ExpandedForm.staticText('source_account_asset', ''~sourceAccount.name|escape~'') }} - {# if destination is cash, show (cash) #} - {% if destinationAccount.accountType.type == "Cash account" %} - {{ ExpandedForm.staticText('destination_account_expense', '(cash)') }} - {% else %} - {{ ExpandedForm.staticText('destination_account_expense', ''~destinationAccount.name|escape~'') }} - {% endif %} - - {% endif %} - - {# in case of transfer #} - {% if sourceType.type == "Transfer" %} - {{ ExpandedForm.staticText('source_account_asset', ''~sourceAccount.name|escape~'') }} - {{ ExpandedForm.staticText('destination_account_asset', ''~destinationAccount.name|escape~'') }} - {% endif %}