mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 05:03:13 +00:00
Expand test coverage and improve transaction management code.
This commit is contained in:
24
public/v1/js/ff/recurring/edit.js
vendored
24
public/v1/js/ff/recurring/edit.js
vendored
@@ -184,13 +184,15 @@ function updateFormFields() {
|
||||
|
||||
if (transactionType === 'withdrawal') {
|
||||
// hide source account name:
|
||||
$('#source_name_holder').hide();
|
||||
// $('#source_name_holder').hide(); // no longer used
|
||||
$('#deposit_source_id_holder').hide();
|
||||
|
||||
// show source account ID:
|
||||
$('#source_id_holder').show();
|
||||
|
||||
// show destination name:
|
||||
$('#destination_name_holder').show();
|
||||
// $('#destination_name_holder').show(); // no longer used.
|
||||
$('#withdrawal_destination_id_holder').show();
|
||||
|
||||
// hide destination ID:
|
||||
$('#destination_id_holder').hide();
|
||||
@@ -203,18 +205,28 @@ function updateFormFields() {
|
||||
}
|
||||
|
||||
if (transactionType === 'deposit') {
|
||||
$('#source_name_holder').show();
|
||||
// $('#source_name_holder').show(); // no longer used
|
||||
$('#deposit_source_id_holder').show();
|
||||
|
||||
$('#source_id_holder').hide();
|
||||
$('#destination_name_holder').hide();
|
||||
|
||||
// $('#destination_name_holder').hide(); // no longer used
|
||||
$('#withdrawal_destination_id_holder').hide();
|
||||
|
||||
$('#destination_id_holder').show();
|
||||
$('#budget_id_holder').hide();
|
||||
$('#piggy_bank_id_holder').hide();
|
||||
}
|
||||
|
||||
if (transactionType === 'transfer') {
|
||||
$('#source_name_holder').hide();
|
||||
// $('#source_name_holder').hide(); // no longer used
|
||||
$('#deposit_source_id_holder').hide();
|
||||
|
||||
$('#source_id_holder').show();
|
||||
$('#destination_name_holder').hide();
|
||||
|
||||
// $('#destination_name_holder').hide(); // no longer used
|
||||
$('#withdrawal_destination_id_holder').show();
|
||||
|
||||
$('#destination_id_holder').show();
|
||||
$('#budget_id_holder').hide();
|
||||
$('#piggy_bank_id_holder').show();
|
||||
|
||||
Reference in New Issue
Block a user