Forum

Welcome Guest! To enable all features please try to register or login.
Goran S
#1 Posted: : 23 December 2010 19:51:28(UTC)
Goran S

Rank: PA User

You have been a member since:: 05/11/2009(UTC)
Objave: 25

Pozdrav svima,

kako da napravim deklaraciju koja pored Prodajne cijene
bez PDV-a i Prodajne cijene sa PDV-om ispisuje i iznos
PDV-a?

Za Prod. cijenu bez PDV-a koristim (anRTprice) a za
cijenu sa PDV-om (anSalePrice) i dobijem OK ispis.

Cijena bez PDV-a- [SQLexp('select anRTPrice from tHE_SetItemPriceForWrh where acWarehouse='''+ 'Veleprodajno skladište' + '''' + ' and acIdent=''' + <qReportIzpis."acIdent">+'''')]

Iznos PDV-a- ???

Cijena sa PDV-om- [SQLexp('select anSalePrice from tHE_SetItemPriceForWrh where acWarehouse='''+ 'Veleprodajno skladište' + '''' + ' and acIdent=''' + <qReportIzpis."acIdent">+'''')]

Ako ništa drugo, kako bar da oduzmem jednu od druge?
HARUN.S
#2 Posted: : 25 December 2010 17:55:49(UTC)
HARUN.S

Rank: Datalab

You have been a member since:: 24/04/2009(UTC)
Objave: 132

Pozdrav Gorane,

Rezultat funkcije koju koristiš je STRING sto znaci da matematika u tom slučaju otpada ali ako napravis konverziju u FLOAT onda no problemo.
Znaci [STRTOFLOAT(SQLEXP('select....'))]

i onda mozes ih oduzimati easy, klasika, samo stavi minus, znaci [STRTOFLOAT(SQLEXP('select...')) - STRTOFLOAT(SQLEXP('select ...')) ]

Varijanta 2, konverzija izraza za cijenu bez PDV i onda još * 17/100.

LP
Goran S
#3 Posted: : 25 December 2010 23:23:02(UTC)
Goran S

Rank: PA User

You have been a member since:: 05/11/2009(UTC)
Objave: 25

Harune,

zahvaljujem, radi ok!

Reci mi, molim te, kako da na istoj deklaraciji povučem zemlju porijekla?

U šifrantu artikli na osnovnim podacima postoje carinski podaci
i među njima porijeklo, izjava, itd.

Za izjavu koristim acDECLARFORORIGINORIGIN i on povuče ono što je tamo
upisano, međutim za porijeklo koristim acORIGIN, a on povuče šifru zemlje a ne
njen naziv!

Pozdrav!
MARKOTUK
#4 Posted: : 30 December 2010 12:41:39(UTC)
MARKOTUK

Rank: DL Partner

You have been a member since:: 24/04/2009(UTC)
Objave: 51

naziv možeš da dobiješ u tabeli the_setcountry

SQLexp('selec acCountry from the_SetCountry where acOrigin = '''+<qReportIzpis."acOrigin">+'''')
Goran S
#5 Posted: : 31 December 2010 14:02:44(UTC)
Goran S

Rank: PA User

You have been a member since:: 05/11/2009(UTC)
Objave: 25

Hvala lijepo MARKOTUK!

Imam još jedno pitanje. U šifrantu artikli na ispisu
artikala
, oblik ispisa tj. deklaracija koju sam napravio
vuče sve šifre otvorene u Pantheonu.

Pitanje je, kako ograničiti ispis na šifre koje
su trenutno na stanju, tj. lageru određenog skladišta?

P.S. Mislim da je Harun na poslednjoj konferenciji
pokazao ovako nešto.


Srećna Nova, pozdrav svima!

Goran
goran.office@yahoo.com
HARUN.S
#6 Posted: : 14 February 2011 18:25:37(UTC)
HARUN.S

Rank: Datalab

You have been a member since:: 24/04/2009(UTC)
Objave: 132

Pozdrav Gorane,

Dodaj na izvjestaj text object da dobijes zalihu artikla na odredjenom skladistu npr:

[IIF(SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' ') >'0', SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' '), 0.00)]

Pazi da je u nazivu skladišta tačan naziv kako je šifrirano u PANTHEONu

I onda u kodu ispisa u okviru procedure DetailOnBeforePrint dodaj ovo:
detail.visible:= IIF(SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' ') >'0', SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' '), 0)>0;

otprilike da ovako izgleda:

procedure DetailOnBeforePrint(Sender: TfrxComponent);
begin
CallQRBeforeBandPrint(Sender, TfrxBand(sender).visible);
detail.visible:= IIF(SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' ') >'0', SQLEXP('select anstock from the_stock where acident='''+<qMSIzpisCenik."acident">+''' and acwarehouse='''+'VELEPRODAJA VC'+''' '), 0)>0;

end;

Dobices samo one artikle koji imaju zalihu veću od nule na imenovanom skladistu, i spasen si cjenika na 100 strana:)
Ako printas po skladistima trebas napraviti zasebne ispise za svako skladište.

LP
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Orange-Grey Theme Created by Ingo Herbote (WatchersNET.de)
Powered by YAF 1.9.6.1 Under DNN | YAF © 2003-2026, Yet Another Forum.NET
This page was generated in 0.464 seconds.