BF [ 1890206 ] getLines without reload not assigning trx - fixed for MPaySelectionCheck

This commit is contained in:
teo_sarca 2008-02-13 18:03:59 +00:00
parent e6ffe66916
commit 79cfb4f56b
1 changed files with 3 additions and 1 deletions

View File

@ -720,8 +720,10 @@ public final class MPaySelectionCheck extends X_C_PaySelectionCheck
*/
public MPaySelectionLine[] getPaySelectionLines (boolean requery)
{
if (m_lines != null && !requery)
if (m_lines != null && !requery) {
set_TrxName(m_lines, get_TrxName());
return m_lines;
}
ArrayList<MPaySelectionLine> list = new ArrayList<MPaySelectionLine>();
String sql = "SELECT * FROM C_PaySelectionLine WHERE C_PaySelectionCheck_ID=? ORDER BY Line";
PreparedStatement pstmt = null;