diff --git a/htdocs/langs/en_US/cashdesk.lang b/htdocs/langs/en_US/cashdesk.lang
index 7ddbc71f3e9..d4355566872 100644
--- a/htdocs/langs/en_US/cashdesk.lang
+++ b/htdocs/langs/en_US/cashdesk.lang
@@ -91,3 +91,4 @@ TakeposConnectorMethodDescription=External module with extra features. Posibilit
PrintMethod=Print method
ReceiptPrinterMethodDescription=Powerful method with a lot of parameters. Full customizable with templates. Cannot print from the cloud.
ByTerminal=By terminal
+TakeposNumpadUsePaymentIcon=Use payment icon on numpad
diff --git a/htdocs/langs/fr_FR/cashdesk.lang b/htdocs/langs/fr_FR/cashdesk.lang
index d14acc778df..03ca0155daa 100644
--- a/htdocs/langs/fr_FR/cashdesk.lang
+++ b/htdocs/langs/fr_FR/cashdesk.lang
@@ -82,3 +82,4 @@ ReceiptName=Nom du reçu
ProductSupplements=Suppléments de produit
SupplementCategory=Catégorie des suppléments
SortProductField=Champ pour le tri des produits
+TakeposNumpadUsePaymentIcon=Utilisation d'icônes sur les touches des modes de règlement du pavé numérique
diff --git a/htdocs/takepos/admin/setup.php b/htdocs/takepos/admin/setup.php
index 0e8ba28e0bb..9dd398d5240 100644
--- a/htdocs/takepos/admin/setup.php
+++ b/htdocs/takepos/admin/setup.php
@@ -201,6 +201,13 @@ $array = array(0=>$langs->trans("Numberspad"), 1=>$langs->trans("BillsCoinsPad")
print $form->selectarray('TAKEPOS_NUMPAD', $array, (empty($conf->global->TAKEPOS_NUMPAD) ? '0' : $conf->global->TAKEPOS_NUMPAD), 0);
print "\n";
+// Numpad use payment icons
+print '
';
+print $langs->trans('TakeposNumpadUsePaymentIcon');
+print ' ';
+print ajax_constantonoff("TAKEPOS_NUMPAD_USE_PAYMENT_ICON", array(), $conf->entity, 0, 0, 1, 0);
+print " \n";
+
// Direct Payment
print '';
print $langs->trans('DirectPaymentButton');
diff --git a/htdocs/takepos/css/pos.css.php b/htdocs/takepos/css/pos.css.php
index 8a75549ce0c..eaccb791b30 100644
--- a/htdocs/takepos/css/pos.css.php
+++ b/htdocs/takepos/css/pos.css.php
@@ -101,6 +101,7 @@ button.calcbutton {
/* border-color: unset; */
border-width: 0;
margin: 1px;
+ font-size: 14pt;
}
button.calcbutton2 {
@@ -118,6 +119,8 @@ button.calcbutton2 {
width: calc(25% - 2px);
height: calc(25% - 2px);
font-weight: bold;
+ font-size: 8pt;
+ margin: 1px;
}
button.calcbutton3 {
@@ -128,10 +131,11 @@ button.calcbutton3 {
cursor: pointer;
vertical-align: middle;
text-align: center;
- font-size:120%;
overflow: visible; /* removes extra width in IE */
width: calc(25% - 2px);
height: calc(25% - 2px);
+ font-size: 14pt;
+ margin: 1px;
}
button.actionbutton {
@@ -468,12 +472,6 @@ div.description_content {
}
@media screen and (min-width: 892px) {
- .calcbutton{
- font-size: 18px;
- }
- .calcbutton2{
- font-size: 14px;
- }
.actionbutton{
font-size: 13px;
}
@@ -486,12 +484,6 @@ div.description_content {
}
@media (max-width: 891px) and (min-width: 386px) {
- .calcbutton{
- font-size: 12px;
- }
- .calcbutton2{
- font-size: 9px;
- }
.actionbutton{
font-size: 12px;
}
@@ -504,12 +496,6 @@ div.description_content {
}
@media screen and (max-width: 385px){
- .calcbutton{
- font-size: 8px;
- }
- .calcbutton2{
- font-size: 7px;
- }
.actionbutton{
font-size: 10px;
}
diff --git a/htdocs/takepos/pay.php b/htdocs/takepos/pay.php
index ec619015496..ce2a4943b84 100644
--- a/htdocs/takepos/pay.php
+++ b/htdocs/takepos/pay.php
@@ -233,7 +233,7 @@ else print "var received=0;";
-
+
"parent.$.colorbox.close();",
- "span" => "id='printtext'",
- "text" => $langs->trans("Cancel"),
+ "span" => "id='printtext' style='font-weight: bold; font-size: 18pt;'",
+ "text" => "X",
"class" => "poscolordelete"
),
);
$numpad = $conf->global->TAKEPOS_NUMPAD;
+
+print '' . ($numpad == 0 ? '7' : '10') . ' ';
+print '' . ($numpad == 0 ? '8' : '20') . ' ';
+print '' . ($numpad == 0 ? '9' : '50') . ' ';
?>
-);">
-);">
-);">
0) {
$paycode = $paiements[0]->code;
- if ($paycode == 'LIQ') $paycode = 'cash';
- if ($paycode == 'CB') $paycode = 'card';
- if ($paycode == 'CHQ') $paycode = 'cheque';
- ?>
-trans("PaymentTypeShort".$paiements[0]->code); ?>
-
-trans("NoPaimementModesDefined"); ?>
-
-);">
-);">
-);">
+ $payIcon = '';
+ if ($paycode == 'LIQ') {
+ $paycode = 'cash';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
+ } elseif ($paycode == 'CB') {
+ $paycode = 'card';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
+ } elseif ($paycode == 'CHQ') {
+ $paycode = 'cheque';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
+ }
+
+ print '' . (!empty($payIcon) ? ' ' : $langs->trans("PaymentTypeShort".$paiements[0]->code)) . ' ';
+} else {
+ print '' . $langs->trans("NoPaimementModesDefined") . ' ';
+}
+
+print '' . ($numpad == 0 ? '4' : '1') . ' ';
+print '' . ($numpad == 0 ? '5' : '2') . ' ';
+print '' . ($numpad == 0 ? '6' : '5') . ' ';
+?>
1) {
$paycode = $paiements[1]->code;
- if ($paycode == 'LIQ') $paycode = 'cash';
- if ($paycode == 'CB') $paycode = 'card';
- if ($paycode == 'CHQ') $paycode = 'cheque';
- ?>
-trans("PaymentTypeShort".$paiements[1]->code); ?>
-
- ">>
-
-);">
-);">
-);">
+ $payIcon = '';
+ if ($paycode == 'LIQ') {
+ $paycode = 'cash';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
+ } elseif ($paycode == 'CB') {
+ $paycode = 'card';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
+ } elseif ($paycode == 'CHQ') {
+ $paycode = 'cheque';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
+ }
+
+ print ''. (!empty($payIcon) ? ' ' : $langs->trans("PaymentTypeShort".$paiements[1]->code)) . ' ';
+} else {
+ $button = array_pop($action_buttons);
+ print '' . $button["text"] . ' ';
+}
+
+print '' . ($numpad == 0 ? '1' : '0.10') . ' ';
+print '' . ($numpad == 0 ? '2' : '0.20') . ' ';
+print '' . ($numpad == 0 ? '3' : '0.50') . ' ';
+?>
2) {
$paycode = $paiements[2]->code;
- if ($paycode == 'LIQ') $paycode = 'cash';
- if ($paycode == 'CB') $paycode = 'card';
- if ($paycode == 'CHQ') $paycode = 'cheque';
- ?>
-trans("PaymentTypeShort".$paiements[2]->code); ?>
-global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
+ } elseif ($paycode == 'CB') {
+ $paycode = 'card';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
+ } elseif ($paycode == 'CHQ') {
+ $paycode = 'cheque';
+ if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
+ }
+
+ print '' . (!empty($payIcon) ? ' ' : $langs->trans("PaymentTypeShort".$paiements[2]->code)) . ' ';
+} else {
$button = array_pop($action_buttons);
- ?>
- ">>
-
-);">
-);">
-);">
-' . $button["text"] . ' ';
+}
+
+print '' . ($numpad == 0 ? '0' : '0.01') . ' ';
+print '' . ($numpad == 0 ? '000' : '0.02') . ' ';
+print '' . ($numpad == 0 ? '.' : '0.05') . ' ';
+
$i = 3;
while ($i < count($paiements)) {
- ?>
-trans("PaymentTypeShort".$paiements[$i]->code); ?>
- trans($paiements[$i]->code).'\');">' . $langs->trans("PaymentTypeShort".$paiements[$i]->code) . '';
$i = $i + 1;
}
@@ -320,9 +346,7 @@ if ($conf->global->TAKEPOS_ENABLE_SUMUP) {
$class = ($i == 3) ? "calcbutton3" : "calcbutton2";
foreach ($action_buttons as $button) {
$newclass = $class.($button["class"] ? " ".$button["class"] : "");
- ?>
- ">>
- '.$button["text"].' ';
}
?>