Avoid empty sales and orders when all lines are removed.
This commit is contained in:
parent
a53f7ff9c9
commit
8c5a86cb72
@ -398,6 +398,7 @@ if ($action == "deleteline") {
|
||||
$invoice->deleteline($deletelineid);
|
||||
$invoice->fetch($placeid);
|
||||
}
|
||||
if (count($invoice->lines)==0) $invoice->delete($user);
|
||||
}
|
||||
|
||||
if ($action == "delete") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user