Revision 04a484b3
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 |
$('[name=' + proposal_id + ']').remove();
|
|
16 |
$('[data-proposal-id=' + proposal_id + ']').hide();
|
|
17 | 17 |
|
18 | 18 |
$.ajax({ |
19 | 19 |
url: 'controller.pl?action=BankTransaction/ajax_payment_suggestion&bt_id=' + bank_transaction_id + '&prop_id=' + proposal_id, |
... | ... | |
25 | 25 |
|
26 | 26 |
ns.delete_invoice = function(bank_transaction_id, proposal_id) { |
27 | 27 |
$( "#" + bank_transaction_id + "\\." + proposal_id ).remove(); |
28 |
$('[data-proposal-id=' + proposal_id + ']').show(); |
|
28 | 29 |
}; |
29 | 30 |
|
30 | 31 |
ns.create_invoice = function(bank_transaction_id) { |
templates/webpages/bank_transactions/tabs/all.html | ||
---|---|---|
91 | 91 |
[% END %] |
92 | 92 |
<td> |
93 | 93 |
[% FOREACH prop = bt.proposals %] |
94 |
<div name='[% prop.id %]'>
|
|
94 |
<div data-proposal-id="[% prop.id %]">
|
|
95 | 95 |
<a href=# onclick="kivi.BankTransaction.add_invoices('[% bt.id %]', '[% prop.id %]');" |
96 | 96 |
title="<table><tr><th></th><th>[% 'Suggested invoice' | $T8 %][% IF !prop.is_sales %] ([% 'AP' | $T8 %])[% END %]</th><th>[% 'Bank transaction' | $T8 %]</th></tr><tr><th>[% 'Amount' | $T8 %]</th><td>[% prop.realamount %] ([% 'open' | $T8 %]: [% LxERP.format_amount(prop.open_amount, 2) %])</td><td>[% LxERP.format_amount(bt.amount, 2) %]</td></tr>[% IF prop.skonto_date %]<tr><th>[% 'Payment terms' | $T8 %]</th><td>[% LxERP.format_amount(prop.amount_less_skonto, 2) %] [% 'until' | $T8 %] [% HTML.escape(prop.skonto_date.to_kivitendo) %] ([% prop.percent_skonto * 100 %] %)</td><td></td></tr>[% END %]<tr><th>[% 'Customer/Vendor' | $T8 %]</th><td>[% HTML.escape(prop.customer.displayable_name) %][% HTML.escape(prop.vendor.displayable_name) %]</td><td>[% HTML.escape(bt.remote_name) %]</td></tr><tr><th>[% 'Invoice Date' | $T8 %]</th><td>[% HTML.escape(prop.transdate_as_date) %]</td><td>[% HTML.escape(bt.transdate_as_date) %] ([% HTML.escape(bt.transdate.utc_rd_days - prop.transdate.utc_rd_days) %])</td></tr><tr><th>[% 'Invoice Number' | $T8 %]</th><td>[% HTML.escape(prop.invnumber) %]</td><td>[% HTML.escape(bt.purpose) %]</td></tr></table>" |
97 | 97 |
class="[% IF bt.agreement >= 5 %]green[% ELSIF bt.agreement < 5 and bt.agreement >= 3 %]orange[% ELSE %]red[% END %] tooltipster-html">←[% HTML.escape(prop.invnumber)%]</a></div> |
Auch abrufbar als: Unified diff
Kontoauszug verbuchen: aus Zuweisung entfernen zeigt Rechnung wieder in Vorschlägen