BF [ 2076298 ] undeletable uncompleted order lines

This commit is contained in:
teo_sarca 2008-08-27 12:33:10 +00:00
parent 35ca25e2ee
commit 2dbcaa9f4a
1 changed files with 2 additions and 5 deletions

View File

@ -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