Merge pull request #14463 from andreubisquerra/develop
Avoid empty sales and orders when all lines are removed.
This commit is contained in:
commit
1d18c83439
@ -398,6 +398,7 @@ if ($action == "deleteline") {
|
|||||||
$invoice->deleteline($deletelineid);
|
$invoice->deleteline($deletelineid);
|
||||||
$invoice->fetch($placeid);
|
$invoice->fetch($placeid);
|
||||||
}
|
}
|
||||||
|
if (count($invoice->lines)==0) $invoice->delete($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == "delete") {
|
if ($action == "delete") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user