X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/28fee2e2ebc6746bcfeb47c0318e79789ba1c850..6a12a968761127af91e9da8db7579be2836bcaaa:/templates/webpages/reconciliation/_linked_transactions.html diff --git a/templates/webpages/reconciliation/_linked_transactions.html b/templates/webpages/reconciliation/_linked_transactions.html new file mode 100644 index 000000000..29eaa08e0 --- /dev/null +++ b/templates/webpages/reconciliation/_linked_transactions.html @@ -0,0 +1,94 @@ +[%- USE T8 %] +[%- USE HTML %] +[%- USE L %] +[%- USE LxERP %] + +[% IF !SELF.LINKED_TRANSACTIONS.size %] + +

[% 'No data was found.' | $T8 %]

+ +[% ELSE %] + [% FOREACH link = SELF.LINKED_TRANSACTIONS %] + [% IF link.type == 'Link' %] + + [% FOREACH bt = link.BT %] + + [% IF loop.count == 1 %] + + [% L.button_tag('delete_reconciliation(' _ link.rec_group _ ')', LxERP.t8("X")) %] + + [% END %] + + + [% 'Bank Transaction' | $T8 %] + [% HTML.escape(bt.id) %] + [% HTML.escape(bt.transdate_as_date) %] + [% HTML.escape(bt.amount_as_number) %] + + [% HTML.escape(bt.remote_name) %] + [% HTML.escape(bt.purpose) %] + [% HTML.escape(bt.remote_account_number) %] + [% HTML.escape(bt.remote_bank_code) %] + + + [% END %] + [% FOREACH bb = link.BB %] + +
+ [% 'Acc Transaction' | $T8 %] + [% HTML.escape(bb.acc_trans_id) %] + [% HTML.escape(bb.transdate_as_date) %] + + [% LxERP.format_amount(-1 * bb.amount, 2) %] + [% HTML.escape(bb.get_transaction.customer.name) %][% HTML.escape(bb.get_transaction.vendor.name) %][% HTML.escape(bb.get_transaction.description) %] + [% bb.get_transaction.link %] + + + [% HTML.escape(bb.source) %] + + [% END %] + + [% ELSE %] + + [% FOREACH bt = link.BT %] + + + [%- L.checkbox_tag('bt_ids[]', value=link.id, onchange='update_reconciliation_table();') %] + + + + [% 'Bank Transaction' | $T8 %] + [% HTML.escape(bt.id) %] + [% HTML.escape(bt.transdate_as_date) %] + [% HTML.escape(bt.amount_as_number) %] + + [% HTML.escape(bt.remote_name) %] + [% HTML.escape(bt.purpose) %] + [% HTML.escape(bt.remote_account_number) %] + [% HTML.escape(bt.remote_bank_code) %] + + + [% END %] + [% FOREACH bb = link.BB %] + + + [%- L.checkbox_tag('bb_ids[]', value=link.id, onchange='update_reconciliation_table();') %] + + +
+ [% 'Acc Transaction' | $T8 %] + [% HTML.escape(bb.acc_trans_id) %] + [% HTML.escape(bb.transdate_as_date) %] + + [% LxERP.format_amount(-1 * bb.amount, 2) %] + [% HTML.escape(bb.get_transaction.customer.name) %][% HTML.escape(bb.get_transaction.vendor.name) %][% HTML.escape(bb.get_transaction.description) %] + [% bb.get_transaction.link %] + + + [% HTML.escape(bb.source) %] + + [% END %] + + [% END %] + [% END %] +[% END %]