Fix reload display when invoice deleting

This commit is contained in:
ptibogxiv 2020-10-04 15:54:23 +02:00 committed by GitHub
parent 257012aa19
commit fac60bdf24
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") {