From 1873121a4ebb71676750cbb7ae5efd39e8e68c76 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 5 Feb 2008 07:56:12 +0000 Subject: [PATCH] [ 1886731 ] org.compiere.model.MSequence looking for nonexistant columns --- base/src/org/compiere/model/MSequence.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/src/org/compiere/model/MSequence.java b/base/src/org/compiere/model/MSequence.java index 30a29fa971..e8c0fd37a8 100644 --- a/base/src/org/compiere/model/MSequence.java +++ b/base/src/org/compiere/model/MSequence.java @@ -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 = ? "