27.02.2013, 18:46 | #24 |
Участник
|
Если расскоментировать мой код в 3 селекте, ошибка простая
X++: Msg 207, Level 16, State 1, Line 31
Invalid column name 'PAYMPURPOSE_ZTR'. Куски кода: X++: substring(' ',1,140) as n, isnull(country.name, '') as name1, case ---> 3780 26.02.2013 -- when (Journaltype = 10) --then substring(LedgerjournalTrans.PAYMPURPOSE_ZTR,1,1000) --<- X++: isNull(CodeId_ZTR, '') as Dimension, --(select CompanyGroup from Dimensions (nolock) where Dimensions.Num = custtrans.Dimension) as Dimension, custtrans.RContractCode, custtrans.accountnum, substring(custtable.name,1, 100), (select FinalDelvCustName_ZTR from SalesTable where SalesTable.SalesId = custtrans.DocId_ZTR) as n, isnull(country.name, '') as name1, case --->3780 26.02.2013 when (Journaltype = 10) then substring(LedgerjournalTrans.PAYMPURPOSE_ZTR,1,500) --<- |
|