From 3008f8b76835a13db1bb9d562558693eb28812fd Mon Sep 17 00:00:00 2001 From: Cem Aydin Date: Wed, 15 Dec 2021 16:52:16 +0100 Subject: [PATCH] =?utf8?q?Swiss=20QR-Bill:=20Controller=20f=C3=BCr=20BankA?= =?utf8?q?ccount=20Datenfelder?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/SimpleSystemSetting.pm | 2 ++ .../simple_system_setting/_bank_account_form.html | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/SL/Controller/SimpleSystemSetting.pm b/SL/Controller/SimpleSystemSetting.pm index 463d74fb3..633f68e1f 100644 --- a/SL/Controller/SimpleSystemSetting.pm +++ b/SL/Controller/SimpleSystemSetting.pm @@ -34,8 +34,10 @@ my %supported_types = ( { method => 'iban', title => t8('IBAN'), }, { method => 'bank', title => t8('Bank'), }, { method => 'bank_code', title => t8('Bank code'), }, + { method => 'bank_account_id', title => t8('Bank Account Id Number (Swiss)'), }, { method => 'bic', title => t8('BIC'), }, { title => t8('Use for Factur-X/ZUGFeRD'), formatter => sub { $_[0]->use_for_zugferd ? t8('yes') : t8('no') } }, + { title => t8('Use for Swiss QR-Bill'), formatter => sub { $_[0]->use_for_qrbill ? t8('yes') : t8('no') } }, { method => 'reconciliation_starting_date_as_date', title => t8('Date'), align => 'right' }, { method => 'reconciliation_starting_balance_as_number', title => t8('Balance'), align => 'right' }, ], diff --git a/templates/webpages/simple_system_setting/_bank_account_form.html b/templates/webpages/simple_system_setting/_bank_account_form.html index 0270326f9..2d364aa33 100644 --- a/templates/webpages/simple_system_setting/_bank_account_form.html +++ b/templates/webpages/simple_system_setting/_bank_account_form.html @@ -27,6 +27,10 @@ [% LxERP.t8('Bank code') %] [%- L.input_tag("object.bank_code", SELF.object.bank_code, style=style) %] + + [% LxERP.t8('Bank Account Id Number (Swiss)') %] + [%- L.input_tag("object.bank_account_id", SELF.object.bank_account_id, style=style) %] + [% LxERP.t8('Chart') %] [% P.chart.picker('object.chart_id', SELF.object.chart_id, type='AR_paid,AP_paid', category='A,L,Q', choose=1, style=style, "data-validate"="required", "data-title"=LxERP.t8("Chart")) %] @@ -35,6 +39,10 @@ [% LxERP.t8('Use for Factur-X/ZUGFeRD') %] [% L.checkbox_tag('object.use_for_zugferd', checked = SELF.object.use_for_zugferd, for_submit=1) %] + + [% LxERP.t8('Use for Swiss QR-Bill') %] + [% L.checkbox_tag('object.use_for_qrbill', checked = SELF.object.use_for_qrbill, for_submit=1) %] + [% LxERP.t8('Obsolete') %] [% L.checkbox_tag('object.obsolete', checked = SELF.object.obsolete, for_submit=1) %] -- 2.20.1