[ 1886731 ] org.compiere.model.MSequence looking for nonexistant columns

This commit is contained in:
Heng Sin Low 2008-02-05 07:56:12 +00:00
parent 8c427dbb6c
commit 1873121a4e
1 changed files with 3 additions and 3 deletions

View File

@ -464,7 +464,7 @@ public class MSequence extends X_AD_Sequence
if (DB.isOracle() == false || DB.isRemoteObjects())
{
if (isStartNewYear) {
selectSQL = "SELECT y.CurrentNext, s.IncrementNo, s.CurrentNextSys, s.Prefix, s.Suffix, s.AD_Sequence_ID "
selectSQL = "SELECT y.CurrentNext, s.CurrentNextSys, s.IncrementNo, s.Prefix, s.Suffix, s.AD_Sequence_ID "
+ "FROM AD_Sequence_No y, AD_Sequence s "
+ "WHERE y.AD_Sequence_ID = s.AD_Sequence_ID "
+ "AND s.Name = ? "
@ -474,7 +474,7 @@ public class MSequence extends X_AD_Sequence
+ "ORDER BY s.AD_Client_ID DESC "
+ "FOR UPDATE OF AD_Sequence_No";
} else {
selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, AD_Sequence_ID "
selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, AD_Sequence_ID "
+ "FROM AD_Sequence "
+ "WHERE Name = ? "
+ "AND AD_Client_ID = ? "
@ -487,7 +487,7 @@ public class MSequence extends X_AD_Sequence
else
{
if (isStartNewYear) {
selectSQL = "SELECT y.CurrentNext, s.IncrementNo, s.CurrentNextSys, Prefix, Suffix, s.AD_Sequence_ID "
selectSQL = "SELECT y.CurrentNext, s.CurrentNextSys, s.IncrementNo, Prefix, Suffix, s.AD_Sequence_ID "
+ "FROM AD_Sequence_No y, AD_Sequence s "
+ "WHERE y.AD_Sequence_ID = s.AD_Sequence_ID "
+ "AND s.Name = ? "