Merge pull request #14463 from andreubisquerra/develop

Avoid empty sales and orders when all lines are removed.
This commit is contained in:
Laurent Destailleur 2020-08-14 02:48:48 +02:00 committed by GitHub
commit 1d18c83439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,6 +398,7 @@ if ($action == "deleteline") {
$invoice->deleteline($deletelineid);
$invoice->fetch($placeid);
}
if (count($invoice->lines)==0) $invoice->delete($user);
}
if ($action == "delete") {