Fix bug in [1883270] - Enhance Document No Formatting

Found postgres bug ->
https://sourceforge.net/tracker/index.php?func=detail&aid=1883270&group_id=176962&atid=879335
org.postgresql.util.PSQLException: ERROR: la relación «ad_sequence_no» en la cláusula FOR UPDATE/SHARE no fue encontrada en la cláusula FROM; State=42P01; ErrorCode=0
	at org.compiere.model.MSequence.getDocumentNo(MSequence.java:838)
This commit is contained in:
Carlos Ruiz 2009-04-16 15:32:28 +00:00
parent 9a00abbe2b
commit 1cb36f8773
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ public class MSequence extends X_AD_Sequence
+ "AND y.CalendarYear = ? " + "AND y.CalendarYear = ? "
+ "AND s.IsActive='Y' AND s.IsTableID='N' AND s.IsAutoSequence='Y' " + "AND s.IsActive='Y' AND s.IsTableID='N' AND s.IsAutoSequence='Y' "
+ "ORDER BY s.AD_Client_ID DESC " + "ORDER BY s.AD_Client_ID DESC "
+ "FOR UPDATE OF AD_Sequence_No"; + "FOR UPDATE OF y";
} else { } else {
selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, DecimalPattern, AD_Sequence_ID " selectSQL = "SELECT CurrentNext, CurrentNextSys, IncrementNo, Prefix, Suffix, DecimalPattern, AD_Sequence_ID "
+ "FROM AD_Sequence " + "FROM AD_Sequence "