Avoid empty sales and orders when all lines are removed.

This commit is contained in:
andreubisquerra 2020-08-12 07:07:18 +02:00 committed by GitHub
parent a53f7ff9c9
commit 8c5a86cb72
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") {