NEW add const TAKEPOS_NUMPAD_USE_PAYMENT_ICON to use icons on payment buttons
This commit is contained in:
parent
e2a918b9d2
commit
fc4a98b29c
@ -91,3 +91,4 @@ TakeposConnectorMethodDescription=External module with extra features. Posibilit
|
|||||||
PrintMethod=Print method
|
PrintMethod=Print method
|
||||||
ReceiptPrinterMethodDescription=Powerful method with a lot of parameters. Full customizable with templates. Cannot print from the cloud.
|
ReceiptPrinterMethodDescription=Powerful method with a lot of parameters. Full customizable with templates. Cannot print from the cloud.
|
||||||
ByTerminal=By terminal
|
ByTerminal=By terminal
|
||||||
|
TakeposNumpadUsePaymentIcon=Use payment icon on numpad
|
||||||
|
|||||||
@ -82,3 +82,4 @@ ReceiptName=Nom du reçu
|
|||||||
ProductSupplements=Suppléments de produit
|
ProductSupplements=Suppléments de produit
|
||||||
SupplementCategory=Catégorie des suppléments
|
SupplementCategory=Catégorie des suppléments
|
||||||
SortProductField=Champ pour le tri des produits
|
SortProductField=Champ pour le tri des produits
|
||||||
|
TakeposNumpadUsePaymentIcon=Utilisation d'icônes sur les touches des modes de règlement du pavé numérique
|
||||||
|
|||||||
@ -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 $form->selectarray('TAKEPOS_NUMPAD', $array, (empty($conf->global->TAKEPOS_NUMPAD) ? '0' : $conf->global->TAKEPOS_NUMPAD), 0);
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
|
|
||||||
|
// Numpad use payment icons
|
||||||
|
print '<tr class="oddeven"><td>';
|
||||||
|
print $langs->trans('TakeposNumpadUsePaymentIcon');
|
||||||
|
print '<td colspan="2">';
|
||||||
|
print ajax_constantonoff("TAKEPOS_NUMPAD_USE_PAYMENT_ICON", array(), $conf->entity, 0, 0, 1, 0);
|
||||||
|
print "</td></tr>\n";
|
||||||
|
|
||||||
// Direct Payment
|
// Direct Payment
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans('DirectPaymentButton');
|
print $langs->trans('DirectPaymentButton');
|
||||||
|
|||||||
@ -260,13 +260,13 @@ print '<button type="button" class="calcbutton" onclick="addreceived('.($numpad
|
|||||||
$payIcon = '';
|
$payIcon = '';
|
||||||
if ($paycode == 'LIQ') {
|
if ($paycode == 'LIQ') {
|
||||||
$paycode = 'cash';
|
$paycode = 'cash';
|
||||||
$payIcon = 'coins';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
|
||||||
} elseif ($paycode == 'CB') {
|
} elseif ($paycode == 'CB') {
|
||||||
$paycode = 'card';
|
$paycode = 'card';
|
||||||
$payIcon = 'credit-card';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
|
||||||
} elseif ($paycode == 'CHQ') {
|
} elseif ($paycode == 'CHQ') {
|
||||||
$paycode = 'cheque';
|
$paycode = 'cheque';
|
||||||
$payIcon = 'money-check';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">' . (!empty($payIcon) ? '<span class="fa fa-2x fa-' . $payIcon . '"></span>' : $langs->trans("PaymentTypeShort".$paiements[0]->code)) . '</button>';
|
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">' . (!empty($payIcon) ? '<span class="fa fa-2x fa-' . $payIcon . '"></span>' : $langs->trans("PaymentTypeShort".$paiements[0]->code)) . '</button>';
|
||||||
@ -283,13 +283,13 @@ print '<button type="button" class="calcbutton" onclick="addreceived('.($numpad
|
|||||||
$payIcon = '';
|
$payIcon = '';
|
||||||
if ($paycode == 'LIQ') {
|
if ($paycode == 'LIQ') {
|
||||||
$paycode = 'cash';
|
$paycode = 'cash';
|
||||||
$payIcon = 'coins';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
|
||||||
} elseif ($paycode == 'CB') {
|
} elseif ($paycode == 'CB') {
|
||||||
$paycode = 'card';
|
$paycode = 'card';
|
||||||
$payIcon = 'credit-card';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
|
||||||
} elseif ($paycode == 'CHQ') {
|
} elseif ($paycode == 'CHQ') {
|
||||||
$paycode = 'cheque';
|
$paycode = 'cheque';
|
||||||
$payIcon = 'money-check';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">'. (!empty($payIcon) ? '<span class="fa fa-2x fa-'.$payIcon.'"></span>' : $langs->trans("PaymentTypeShort".$paiements[1]->code)) . '</button>';
|
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">'. (!empty($payIcon) ? '<span class="fa fa-2x fa-'.$payIcon.'"></span>' : $langs->trans("PaymentTypeShort".$paiements[1]->code)) . '</button>';
|
||||||
@ -307,13 +307,13 @@ print '<button type="button" class="calcbutton" onclick="addreceived('.($numpad
|
|||||||
$payIcon = '';
|
$payIcon = '';
|
||||||
if ($paycode == 'LIQ') {
|
if ($paycode == 'LIQ') {
|
||||||
$paycode = 'cash';
|
$paycode = 'cash';
|
||||||
$payIcon = 'coins';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'coins';
|
||||||
} elseif ($paycode == 'CB') {
|
} elseif ($paycode == 'CB') {
|
||||||
$paycode = 'card';
|
$paycode = 'card';
|
||||||
$payIcon = 'credit-card';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'credit-card';
|
||||||
} elseif ($paycode == 'CHQ') {
|
} elseif ($paycode == 'CHQ') {
|
||||||
$paycode = 'cheque';
|
$paycode = 'cheque';
|
||||||
$payIcon = 'money-check';
|
if (!empty($conf->global->TAKEPOS_NUMPAD_USE_PAYMENT_ICON)) $payIcon = 'money-check';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">' . (!empty($payIcon) ? '<span class="fa fa-2x fa-'.$payIcon.'"></span>' : $langs->trans("PaymentTypeShort".$paiements[2]->code)) . '</button>';
|
print '<button type="button" class="calcbutton2" onclick="Validate(\''.$langs->trans($paycode).'\');">' . (!empty($payIcon) ? '<span class="fa fa-2x fa-'.$payIcon.'"></span>' : $langs->trans("PaymentTypeShort".$paiements[2]->code)) . '</button>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user