Revision e9775242
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
js/kivi.BankTransaction.js | ||
---|---|---|
13 | 13 |
}; |
14 | 14 |
|
15 | 15 |
ns.add_invoices = function(bank_transaction_id, proposal_id) { |
16 |
$('[data-proposal-id=' + proposal_id + ']').hide(); |
|
17 | 16 |
|
18 | 17 |
$.ajax({ |
19 | 18 |
url: 'controller.pl?action=BankTransaction/ajax_payment_suggestion&bt_id=' + bank_transaction_id + '&prop_id=' + proposal_id, |
20 | 19 |
success: function(data) { |
21 |
$('#assigned_invoices_' + bank_transaction_id).append(data.html); |
|
20 |
$('#assigned_invoices_' + bank_transaction_id + "_" + proposal_id).html(data.html); |
|
21 |
$('#sources_' + bank_transaction_id + "_" + proposal_id + ',' + |
|
22 |
'#memos_' + bank_transaction_id + "_" + proposal_id).show(); |
|
23 |
$('[data-proposal-id=' + proposal_id + ']').hide(); |
|
24 |
|
|
22 | 25 |
ns.update_invoice_amount(bank_transaction_id); |
23 | 26 |
} |
24 | 27 |
}); |
25 | 28 |
}; |
26 | 29 |
|
27 | 30 |
ns.delete_invoice = function(bank_transaction_id, proposal_id) { |
28 |
$( "#" + bank_transaction_id + "\\." + proposal_id ).remove(); |
|
31 |
var $inputs = $('#sources_' + bank_transaction_id + "_" + proposal_id + ',' + |
|
32 |
'#memos_' + bank_transaction_id + "_" + proposal_id); |
|
33 |
|
|
29 | 34 |
$('[data-proposal-id=' + proposal_id + ']').show(); |
35 |
$('#assigned_invoices_' + bank_transaction_id + "_" + proposal_id).html(''); |
|
36 |
$('#extra_row_' + bank_transaction_id + '_' + proposal_id).remove(); |
|
37 |
|
|
38 |
$inputs.hide(); |
|
39 |
$inputs.val(''); |
|
40 |
|
|
30 | 41 |
ns.update_invoice_amount(bank_transaction_id); |
31 | 42 |
}; |
32 | 43 |
|
... | ... | |
59 | 70 |
$.ajax({ |
60 | 71 |
url: url, |
61 | 72 |
success: function(new_html) { |
62 |
$('#assigned_invoices_' + bank_transaction_id).append(new_html);
|
|
73 |
$('#bt_rows_' + bank_transaction_id).append(new_html);
|
|
63 | 74 |
$('#assign_invoice_window').dialog('close'); |
64 | 75 |
ns.update_invoice_amount(bank_transaction_id); |
65 | 76 |
} |
Auch abrufbar als: Unified diff
Kontoauszug verbuchen: Beleg/Memo bei »Alle Buchungen« angeben können