From ab4da186c5865e17fd2708cdeb77b4182924632c Mon Sep 17 00:00:00 2001 From: lvessiller Date: Tue, 12 Oct 2021 15:52:59 +0200 Subject: [PATCH] FIX 2 columns for total labels --- htdocs/takepos/css/pos.css.php | 7 +++-- htdocs/takepos/pay.php | 54 ++++++++++++++++------------------ 2 files changed, 30 insertions(+), 31 deletions(-) diff --git a/htdocs/takepos/css/pos.css.php b/htdocs/takepos/css/pos.css.php index 395c786b232..e180dc33b3e 100644 --- a/htdocs/takepos/css/pos.css.php +++ b/htdocs/takepos/css/pos.css.php @@ -320,11 +320,12 @@ table.postablelines tr td { div.paymentbordline { - background-color: #888; + width:calc(50% - 16px); + background-color:#888; border-radius: 8px; - margin: 4px auto; + margin-bottom: 4px; + display: inline-block; padding: 5px; - width: calc(50% - 10px); } @media only screen and (max-aspect-ratio: 6/4) { diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php index 66d710c2a52..4bd20f33f4b 100644 --- a/htdocs/takepos/pay.php +++ b/htdocs/takepos/pay.php @@ -257,35 +257,33 @@ if ($conf->global->TAKEPOS_NUMPAD == 0) { } -
-
-
- trans('TotalTTC'); ?>: total_ttc, 1, '', 1, -1, -1, $invoice->multicurrency_code); ?> -
- total_ttc) { ?> -
- trans('RemainToPay'); ?>: multicurrency_code); ?> -
- -
- trans("Received"); ?>: multicurrency_code); ?> -
-
- trans("Change"); ?>: multicurrency_code); ?> -
- global->TAKEPOS_CAN_FORCE_BANK_ACCOUNT_DURING_PAYMENT)) { - require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; - print '
'; - $filter = ''; - $form = new Form($db); - print ''.$langs->trans("BankAccount").': '; - $form->select_comptes(0, 'accountid', 0, $filter, 1, ''); - print ajax_combobox('selectaccountid'); - print '
'; - } - ?> +
+
+ trans('TotalTTC'); ?>: total_ttc, 1, '', 1, -1, -1, $invoice->multicurrency_code); ?>
+ total_ttc) { ?> +
+ trans('RemainToPay'); ?>: multicurrency_code); ?> +
+ +
+ trans("Received"); ?>: multicurrency_code); ?> +
+
+ trans("Change"); ?>: multicurrency_code); ?> +
+ global->TAKEPOS_CAN_FORCE_BANK_ACCOUNT_DURING_PAYMENT)) { + require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; + print '
'; + $filter = ''; + $form = new Form($db); + print ''.$langs->trans("BankAccount").': '; + $form->select_comptes(0, 'accountid', 0, $filter, 1, ''); + print ajax_combobox('selectaccountid'); + print '
'; + } + ?>