Pricefull from supermag.SVPriceCard
FROM supermag.SMPrices
Pricefull from supermag.SVPriceCard
OlegON: |
Новые вопросы заводите в новых темах! |
create or replace view svpricecard as select t.Article Article, t.Name Name , t.CardComment CardComment, t.Country Country, t.Price Price, t1.UnitName UnitName, t1.Qty Qty, t1.QtyPrint QtyPrint, t1.BarCode BarCode, t1.IsScale IsScale, t1.PLU PLU, russianspell.PriceCardString(0,t.Price) RubSum, russianspell.PriceCardString(1) RubName, russianspell.PriceCardString(2,t.Price) KopSum, russianspell.PriceCardString(3) KopName, russianspell.PriceCardString(4,t.Price) PriceShort, russianspell.PriceCardString(5,t.Price) PriceFull, to_number(russianspell.PriceCardString(6)) PricePrec from TTPriceCard t, TTPriceCard1 t1 where t.article = t1.article;
RepOracleRunner.ExecuteProcedure(host.Connection,"Supermag.russianspell.LoadPriceCard",
Pricefull from supermag.SVPriceCard
FROM supermag.SMPrices
Pricefull from supermag.SVPriceCard
// заполнение временных таблиц данными для ценников RepOracleRunner.ExecuteProcedure(host.Connection,"Supermag.russianspell.LoadPriceCard", Report.GetParameterValue("P_COPIES"), Report.GetParameterValue("P_ARTICLE"), "", Report.GetParameterValue("P_DOC_TYPE"), Report.GetParameterValue("P_DOC_ID"), Report.GetParameterValue("P_LOC"), Report.GetParameterValue("P_PRICE_TYPE"), Report.GetParameterValue("P_NAME"), Report.GetParameterValue("P_QTY"), Report.GetParameterValue("P_TYPE"), 1, // печать штрихового кода артикула штрихами (0 - печать ШК цифрами, -1 - без печати ШК) 1 // печать в ценнике кол-ва артикула, за которое выводится цена );
SELECT t.ARTICLE, t.NAME, t.COUNTRY, t.UNITNAME, t.RUBSUM||','||t.KOPSUM PRICE, t.BARCODE, t.QTYPRINT, decode(t.PLU,null,'','Весы: '||t.PLU) PLU, (select supermag.russianspell.PriceCardString(0,p.SavedPrice)||','||supermag.russianspell.PriceCardString(2,p.SavedPrice) FROM supermag.SMPrices p where p.Article=t.Article and p.StoreLoc=:pLoc and p.PriceType=:pPriceType and p.SavedPrice is not null) OldPrice FROM SUPERMAG.SVPRICECARD t order by 1
SELECT t.ARTICLE, t.NAME, t.COUNTRY, t.UNITNAME, t.RUBSUM||','||t.KOPSUM PRICE, t.BARCODE, t.QTYPRINT, decode(t.PLU,null,'','Весы: '||t.PLU) PLU, (select case DECODE(bitand(s.Flags,4),0,0,1) when 1 then (select p.SavedPrice / 10 FROM supermag.SMPrices p where p.Article=t.Article and p.StoreLoc=:pLoc and p.PriceType=:pPriceType and p.SavedPrice is not null) when 0 then (select p.SavedPrice FROM supermag.SMPrices p where p.Article=t.Article and p.StoreLoc=:pLoc and p.PriceType=:pPriceType and p.SavedPrice is not null) end from supermag.smcard s where s.article=t.article) oldprice FROM SUPERMAG.SVPRICECARD t order by 1
SELECT t.ARTICLE, t.NAME, t.COUNTRY, t.UNITNAME, t.RUBSUM||','||t.KOPSUM PRICE, t.BARCODE, t.QTYPRINT, decode(t.PLU,null,'','Весы: '||t.PLU) PLU, (select p.SavedPrice / DECODE(bitand(s.Flags,4),0,1,10) from supermag.smcard s, supermag.SMPrices p where s.article=t.article and p.Article=s.Article and p.StoreLoc=:pLoc and p.PriceType=:pPriceType and p.SavedPrice is not null) oldprice FROM SUPERMAG.SVPRICECARD t order by 1