BF [ 2076298 ] undeletable uncompleted order lines
This commit is contained in:
parent
35ca25e2ee
commit
2dbcaa9f4a
|
@ -1128,11 +1128,8 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
if (isProcessed())
|
||||
return false;
|
||||
|
||||
getLines();
|
||||
for (int i = 0; i < m_lines.length; i++)
|
||||
{
|
||||
if (!m_lines[i].beforeDelete())
|
||||
return false;
|
||||
for (MOrderLine line : getLines()) {
|
||||
line.deleteEx(true);
|
||||
}
|
||||
return true;
|
||||
} // beforeDelete
|
||||
|
|
Loading…
Reference in New Issue