From 3a883e67287cbf0c93a746bc2080b897f2c87bfa Mon Sep 17 00:00:00 2001 From: sed-odoo Date: Tue, 4 Sep 2018 08:34:41 +0200 Subject: [IMP] l10n_ch,account,website_sale: Add SwissQR Code on invoice and improve the SEPA QR Code usability Purpose ======= - Add the SwissQR Code on the invoice in aim to replace the actual ISR - Improve the settings of the SEPA QR Code to make it more user friendly Specifications ============== - ln_ch: - Add a SwissQR Code on the invoice to fit the Switzerland QR-Bill Format - Use the "partner_bank_id" field to generate the QR Code - Add function to get the address number out of the field "street" and "street2" - account: - Remove the SEPA QR Code's journal settings from the general setting - Display the "partner_bank_id" field on the invoice "Other info" page - Use the "partner_bank_id" field to generate the QR Code - website_sale: - Add a check box on the payment acquirers to use the SEPA QR Code on the e-commerce - Use the payment acquirer "journal_id" field to generate the SEPA QR Code --- addons/l10n_ch/static/src/img/CH-Cross_7mm.png | Bin 0 -> 14703 bytes addons/l10n_ch/static/src/scss/report_swissqr.css | 84 ++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100755 addons/l10n_ch/static/src/img/CH-Cross_7mm.png create mode 100644 addons/l10n_ch/static/src/scss/report_swissqr.css (limited to 'addons/l10n_ch/static') diff --git a/addons/l10n_ch/static/src/img/CH-Cross_7mm.png b/addons/l10n_ch/static/src/img/CH-Cross_7mm.png new file mode 100755 index 00000000000..41d3c5f9478 Binary files /dev/null and b/addons/l10n_ch/static/src/img/CH-Cross_7mm.png differ diff --git a/addons/l10n_ch/static/src/scss/report_swissqr.css b/addons/l10n_ch/static/src/scss/report_swissqr.css new file mode 100644 index 00000000000..9626c958887 --- /dev/null +++ b/addons/l10n_ch/static/src/scss/report_swissqr.css @@ -0,0 +1,84 @@ +.swissqr_content { + page-break-before: always; +} + +.swissqr_body { + position: relative; + background-color: white; + border-color:black; + border-width: 1pt 0pt 0pt 1pt; + border-style: solid; + height: 116mm; + width: 190mm; + top: 160mm; + left: 70mm; +} + +.swissqr{ + position: absolute; + height: 70mm; + width: 70mm; + top: 29.5mm; + left: 7mm; +} + +.ch_cross{ + position: absolute; + background-color: white; + height: 8.5mm; + width: 8.5mm; + top: 60.25mm; + left: 37.75mm; +} + +.swissqr_text{ + font-family: OCR-B, Arial, Frutiger, Helvetica; + color: black; +} + +.swissqr_text.title{ + font-size: 9pt; + font-weight: bold; +} + +.swissqr_text.title.title_zone{ + font-size: 11pt; + font-weight: bold; +} + +.swissqr_text.content{ + font-size: 11pt; +} + +.swissqr_column_left{ + position: absolute; + left: 12mm; +} + +.swissqr_column_right{ + position: absolute; + left: 83mm; + max-width: 90mm; +} + +.procedure_zone{ + top: 15mm; +} + +.title_zone{ + top: 5mm; +} + +.indication_zone{ + top: 10mm; +} + +.amount_zone{ + position: absolute; + top: 106mm; +} + +.amount{ + position: absolute; + left: 41mm; +} -- cgit v1.2.3