Merge pull request #14915 from ptibogxiv/patch-380

Fix reload display when invoice deleting in takepos
This commit is contained in:
Laurent Destailleur 2020-10-05 16:43:55 +02:00 committed by GitHub
commit 44ecc15a07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,7 +402,11 @@ if ($action == "deleteline") {
$invoice->deleteline($deletelineid);
$invoice->fetch($placeid);
}
if (count($invoice->lines) == 0) $invoice->delete($user);
if (count($invoice->lines) == 0) {
$invoice->delete($user);
header("Location: ".DOL_URL_ROOT."/takepos/invoice.php");
exit;
}
}
if ($action == "delete") {