Skip to content

Commit

Permalink
Debug v20
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 10, 2024
1 parent d591289 commit 6c26562
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions htdocs/takepos/reduction.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2018 Andreu Bisquerra <[email protected]>
* Copyright (C) 2023 Christophe Battarel <[email protected]>
* Copyright (C) 2023 Christophe Battarel <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -91,6 +91,7 @@
?>
<link rel="stylesheet" href="css/pos.css.php">
</head>

<body>

<script>
Expand Down Expand Up @@ -217,14 +218,19 @@ function formvalid(type) {
}
return false;
}

// console.log("Set initial focus");
// $("#reduction_total").focus();
</script>

<div style="position:absolute; top:2%; left:5%; width:91%;">
<center>
<?php
print '<input type="text" class="takepospay width100" id="reduction_total" name="reduction_total" placeholder="'.$langs->trans('Reduction').'" autofocus>';
print '<input type="text" class="takepospay width125" id="reduction_total" name="reduction_total" placeholder="'.$langs->trans('Reduction').'" autofocus>';
if (getDolGlobalString('TAKEPOS_ADD_BUTTON_TO_ENTER_DISCOUNT_WITH_KEYBOARD')) {
print '<input type="button" class="butAction" value="'.$langs->trans('AmountTTC').'" onclick="return formvalid(\'amount\');">';
print '<input type="button" class="butAction" value="'.$langs->trans('Percentage').'" onclick="return formvalid(\'percent\');">';
}
?>
</center>
</div>
Expand Down

0 comments on commit 6c26562

Please sign in to comment.