FIX Avoid move line to the same place in TakePOS

This commit is contained in:
andreubisquerra 2021-12-02 23:08:22 +01:00 committed by GitHub
parent c23914f367
commit 2b5bcda8d8
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;