home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 February
/
CHIP_2_98.iso
/
software
/
testsoft
/
vatman
/
vatman.lzh
/
RAS.DOK
< prev
next >
Wrap
Text File
|
1997-11-15
|
6KB
|
106 lines
*SPOZ
#DEFINICJE
Bon=chr(27)+chr(69)
Bof=chr(27)+chr(70)
Nr =len10(ltrim(str(M->nr_dok,5)),8)
Nrm=len10(M->kod_magaz+"/"+ltrim(str(M->nr_dok,5)),8)
Rdk=substr(slownik("S_K","KOD_DOK "+OBRGL->KOD_DOK),1,20)
dn =dtoc(OBRGL->DATA)
dns=rtrim(slownik("S_K","MIESIACE "+str(month(OBRGL->DATA_SPRZ),2)))+' '+substr(dtos(OBRGL->DATA_SPRZ),1,4)
*dns=dtoc(OBRGL->DATA_SPRZ)
S =str(M->str,3)
Ok =if(M->_R_LBL," ",if(OBRGL->SW,"KOPIA ","ORYGINA¥"))
Ifg=if(M->_WFO,alltrim(OBRGL->INFO),"")
Ifp=if(M->_WFO.or.empty(OBRGL->INFO)," | | | | |",alltrim(OBRGL->INFO))
Bnk=len10(M->_S0,43)
Knt=len10(M->_S1,40)
Kkn=KONTRAH->KONTRAHENT
Np =len10(KONTRAH->NAZWA_PLAT,50)
Ap =len10(KONTRAH->ADRES_PLAT,50)
Npp=KONTRAH->NIP
No =len10(KONTRAH->NAZWA_KONT,50)
Ao =len10(KONTRAH->ADRES_KONT,46)
Szp=substr(slownik("S_K","FORMA_PLAT"+OBRGL->FORMA_PLAT),1,25)
Tpt=dtoc(OBRGL->TERM_PLAT)
Cdp=if(S->HL,"C.det.z VAT","")
Ups=if(OBRGL->MARZA_D<>0,"z"+str(OBRGL->MARZA_D,5,1)+"%upus.","------------")
Ntb=if(_MPODAT,"BRUTTO","NETTO ")
Brn=if(_MPODAT,"netto","z pod.")
Y =if(_MPODAT," - "," + ")
V1 =str(S->VATP1,2)
V2 =str(S->VATP2,2)
V3 =str(S->VATP3,2)
V4 =str(S->VATP4,2)
L =str(Lpd,3)
Naz=len10(substr(INDEKS->NAZ_TOWARU,1,59),59)
Opn=if(M->_OPAK,"Il:w op. opak."," Uwagi")
Op1=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(INDEKS->PRZEL2,5,1)," ")
Op2=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(M->ilosc_pocz/INDEKS->PRZEL2,6,1),"")
Jm =substr(slownik("S_K","JM "+INDEKS->JM),1,5)
Ilo=if(M->_COMA,transform(M->ilosc_pocz,"@E 999999.99"),str(M->ilosc_pocz,9))
Mrp=transform(MARZA_P,"@E 999.9")
Cbm=transform(M->cp_bm,"@E 9999,999.99")
Cn =transform(M->cp_op,"@E 9999,999.99")
Wn =transform(M->wcp_op,"@E 999,999,999.99")
V =if(INDEKS->ZWOL,"Zw",str(VAT_P,2))+" "
Vw =transform(M->vat,"@E 9999,999.99")
Czv=transform(if(_MPODAT,M->cp_zv/(1+VAT_P/100),M->cp_zv),"@E 999,999.99")
Wzv=transform(M->wcp_zv,"@E 99,999,999.99")
Wag=len10(if(M->_WAG,"Waga towaru: "+str(M->waga,6,0)+" kG",""),30)
Rnetto =transform(M->swcp_op,"@E 999,999,999.99")
Rvat =transform(M->svat7+M->svat12+M->svat22,"@E 9999,999.99")
Rbrutto =transform(M->swcp_zv,"@E 999,999,999.99")
Rnetto22=transform(M->swcp_op22,"@E 99,999,999.99")
Rvat22 =transform(M->svat22,"@E 9999,999.99")
Rbrutto22=transform(M->swcp_op22+M->svat22,"@E 99,999,999.99")
Rnetto7 =transform(M->swcp_op7,"@E 99,999,999.99")
Rvat7 =transform(M->svat7,"@E 9999,999.99")
Rbrutto7=transform(M->swcp_op7+M->svat7,"@E 99,999,999.99")
Rnetto0 =transform(M->swcp_op0,"@E 999,999,999.99")
RnettoZw=transform(M->swcp_opZw,"@E 9999,999.99")
Opr =substr(slownik("S_K",'SYMB_OPER '+OBRGL->SYMB_OPER),1,22)
Rwf=if(kod_dok$"KSKU",if(M->swcp_zv>0,"Kwota zwi⌐kszenia wartoÿci :","Kwota zmniejszenia wartoÿci:"),"")
Rwp=if(kod_dok$"KSKU",if(M->swcp_zv>0,"Kwota zwi⌐kszenia podatku :","Kwota zmniejszenia podatku :"),"")
Kwf=if(kod_dok$"KSKU",transform(abs(M->swcp_zv),"@E 9999,999,999.99")+" zê","")
Kwp=if(kod_dok$"KSKU",transform(abs(M->svat7+M->svat12+M->svat22),"@E 9999,999.99")+" zê","")
Kop=if(OBRGL->MARZA_D<>0,"Opust :"+transform(M->swcp-M->swcp_op,"@E 999,999,999.99"),"")
#NAGLOWEK
SPRZEDAWCA:__________________________________________________ NIP:[M->Nip ]_____________________________________________[Bon]
[M->ADR]
[M->ADR1]
[Bof]____________________________________________________________ Str:[S ]_________________________________________________
[Bon][Rdok ]Nr:[Nrm ][Bof] Z dnia: [dn ] Data sprzeda╛y: [dns ]
[Ok ]
[Ifg]
NABYWCA : [Np ] Identyfikator : [Kkn ] NIP :[Npp ]
[Ap ] REGON:[KONTRAH->REGON]
ODBIORCA: [No ] [Ao ]
Sposób zapêaty : [Szp ] Termin pêatnoÿci: [Tpt ]
Bank : [Bnk ] Konto: [Knt ]
[repl("_",125)]
|Kod towaru SWW |Nazwa towaru |[Opn ]
Poz|Opis |j.m Iloÿå Cena Rab.% CENA [Ntb ] WART.[Ntb ]|VAT%| Podatek |Cena [Brn]
---|---------------------------|--------------------------------[Ups ]---------------|----|-----------|---------------
[Ifp]
#POZYCJE
[L]|[KOD_TOWARU ] [INDEKS->SWW]|[Naz ]| | |[Op1 ] [Op2 ]
|[len10(OPIS,27) ]|[Jm ][Ilo ] [Cbm ] [Mrp] [Cn ] [Wn ]| [V]|[Vw ]|[Czv ]
#SUMY
___|___________________________|___________________________________________________________|____|___________|
|________[V3]%__|________[V2]%__|_________[V1]%__|______Zw.__| Razem :[Rnetto ]|
Net|[Rnetto22 ]|[Rnetto7 ]|[Rnetto0 ]|[RnettoZw ]| [y]VAT : [Rvat ]|
VAT| [Rvat22 ]| [Rvat7 ]| | |________________________________|
Bru|[Rbrutto22 ]|[Rbrutto7 ]|[Rnetto0 ]|[RnettoZw ]| Do zapêaty :[Bon][Rbrutto ][Bof] [Kop ]
|_____________|_____________|______________|___________|
[Wag ] [Rwp ][Kwp ] [Rwf ][Kwf ]
[repl("-",120)]
[len10(slownie(M->swcp_zv),132)]
[repl("-",120)]
Osoba upowa╛niona do wystawienia Wydaê : Odebraêem i akceptuj⌐ powy╛szy dokument(osoba upowa╛niona)
[Rdk]
[Opr ] podpis................. podpis...... [No ]
SporzÑdzono w systemie PC VATMAN (C) ZTK BITAM
#KONIEC