Merge pull request #19542 from andreubisquerra/develop

FIX Avoid move line to the same place in TakePOS
This commit is contained in:
Laurent Destailleur 2021-12-08 19:16:40 +01:00 committed by GitHub
commit 4e744dec65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,7 @@ if ($action=="split") {
$db->query($sql);
} elseif ($split==0) { // Unsplit line
$invoice = new Facture($db);
if ($place=="SPLIT") $place="0"; // Avoid move line to the same place (from SPLIT to SPLIT place)
$ret = $invoice->fetch('', '(PROV-POS'.$_SESSION["takeposterminal"].'-'.$place.')');
if ($ret > 0) {
$placeid = $invoice->id;
@ -137,7 +138,7 @@ if ($invoiceid > 0) {
}
}
$arrayofcss = array('/takepos/css/pos.css.php', '/takepos/css/split.css.php');
$arrayofcss = array('/takepos/css/pos.css.php');
$arrayofjs = array();
$head = '';
@ -225,4 +226,4 @@ $( document ).ready(function() {
</div>
</body>
</html>
</html>