MMovement:

* getLines() should use trxName
* added calc. serialVersionUID
This commit is contained in:
teo_sarca 2009-01-26 07:43:05 +00:00
parent d5a5a6e1d5
commit 523a1f1b2d
1 changed files with 7 additions and 2 deletions

View File

@ -48,6 +48,11 @@ import org.eevolution.model.MDDOrderLine;
*/
public class MMovement extends X_M_Movement implements DocAction
{
/**
*
*/
private static final long serialVersionUID = -2900004259579407998L;
/**
* Standard Constructor
* @param ctx context
@ -98,8 +103,8 @@ public class MMovement extends X_M_Movement implements DocAction
return m_lines;
}
//
String whereClause = "M_Movement_ID=?";
List<MMovement> list = new Query(getCtx(), MMovementLine.Table_Name, whereClause, null)
final String whereClause = "M_Movement_ID=?";
List<MMovement> list = new Query(getCtx(), MMovementLine.Table_Name, whereClause, get_TrxName())
.setParameters(new Object[]{getM_Movement_ID()})
.setOrderBy(MMovementLine.COLUMNNAME_Line)
.list();