home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / testsoft / vatman / vatman.lzh / PZ_MALY.DOK < prev    next >
Text File  |  1996-12-12  |  3KB  |  66 lines

  1. *PZ typu M+,N+,Ni
  2. #DEFINICJE
  3. Rdok=substr(slownik("S_K","KOD_OPER  "+OBRGL->KOD_OPER),1,30)
  4. Rdk =substr(slownik("S_K","KOD_DOK   "+OBRGL->KOD_DOK),1,30)
  5. Kd ="  "+KOD_DOK
  6. Nrm=len10(M->kod_magaz+"/"+ltrim(str(M->nr_dok,5)),8)
  7. dn =dtoc(OBRGL->DATA)
  8. S  =str(M->str,3)
  9. Ok =if(M->_R_LBL,"        ",if(OBRGL->SW,"KOPIA   ","ORYGINA¥"))
  10. Ifg=if(M->_WFO,alltrim(OBRGL->INFO),"")
  11. Ifp=if(M->_WFO,"",alltrim(OBRGL->INFO))
  12. Np =if(KOD_DOK="M+","Z MAGAZYNU:"+slownik("S_K","KOD_MAGAZ "+OBRGL->KONTRAHENT),"KONTRAHENT:"+len10(KONTRAH->NAZWA_PLAT,40))
  13. Ap =if(KOD_DOK="M+","","ADRES     :"+len10(KONTRAH->ADRES_PLAT,40))
  14.  
  15. L  =str(NR_POZ,3)
  16. Naz=len10(substr(INDEKS->NAZ_TOWARU,1,50),50)
  17. Opim=len10(substr(OPIS,1,27),27)
  18. Opn=if(M->_OPAK,"Il:w op. opak.","")
  19. Op1=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(INDEKS->PRZEL2,5,1),"     ")
  20. Op2=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(ILOSC_POCZ/INDEKS->PRZEL2,6,1),"      ")
  21. Jm =substr(slownik("S_K","JM        "+INDEKS->JM),1,5)
  22. Ilo=if(M->_COMA,transform(ILOSC_POCZ,"@E 9999.99"),str(ILOSC_POCZ,7))
  23. Cn =transform(M->cp_op,"@E 9999,999.99")
  24. Wn =transform(M->wcp_op,"@E 999,999,999.99")
  25. V  =if(INDEKS->ZWOL,"Zw",str(VAT_P,2))+" "
  26. Cs =transform(CENA,"@E 9999,999.99")
  27. Csv=transform(M->cs_zv,"@E 9999,999.99")
  28. Wce=transform(M->wcs,"@E 999,999,999.99")
  29. Wcv=transform(M->wcs_zv,"@E 999,999,999.99")
  30.  
  31. Wag=len10(if(M->_WAG,"Waga towaru: "+str(M->waga,6,0)+" kG",""),30)
  32. Rnetto  =transform(M->swcp_op,"@E 999,999,999.99")
  33. Rvat    =transform(M->svat7+M->svat12+M->svat22,"@E 9999,999.99")
  34. Rbrutto =transform(M->swcp_zv,"@E 999,999,999.99")
  35. Rnetto22=transform(M->swcp_op22,"@E 999,999,999.99")
  36. Rvat22  =transform(M->svat22,"@E 9999,999.99")
  37. Rbrutto22=transform(M->swcp_op22+M->svat22,"@E 999,999,999.99")
  38. Rnetto12=transform(M->swcp_op12,"@E 999,999,999.99")
  39. Rvat12  =transform(M->svat12,"@E 9999,999.99")
  40. Rbrutto12=transform(M->swcp_op12+M->svat12,"@E 999,999,999.99")
  41. Rnetto7 =transform(M->swcp_op7,"@E 999,999,999.99")
  42. Rvat7   =transform(M->svat7,"@E 9999,999.99")
  43. Rbrutto7=transform(M->swcp_op7+M->svat7,"@E 999,999,999.99")
  44. Rnetto0 =transform(M->swcp_op0,"@E 999,999,999.99")
  45. Rbrutto0=transform(M->swcp_op0,"@E 999,999,999.99")
  46. RnettoZw=transform(M->swcp_opZw,"@E 999,999,999.99")
  47. RbruttoZw=transform(M->swcp_opZw,"@E 999,999,999.99")
  48. RnettoCs=transform(M->swcs,"@E 999,999,999.99")
  49. RbrutoCs=transform(M->swcs_zv,"@E 999,999,999.99")
  50. Opr     =substr(slownik("S_K",'SYMB_OPER '+OBRGL->SYMB_OPER),1,20)
  51. #NAGLOWEK
  52. [M->ADR] NIP:[M->Nip     ] Str:[S  ]
  53.     [Rdok                        ]   [Kd] Nr:[Nrm   ]         Z dnia: [dn    ]   [Np]
  54. [repl("_",128)]
  55. Poz. Kod towaru   Nazwa towaru                                     Opis                        Iloÿå        Cena        WARTOùÅ
  56. [repl("_",128)]
  57. [Ifp]
  58. #POZYCJE
  59. [L] [KOD_TOWARU ] [Naz                                             ][OPIm                     ][Ilo  ][Cn       ] [Wn          ]
  60. #SUMY
  61. [repl("_",128)]
  62. [Wag                         ]                                                                            Razem:  [Rnetto      ]
  63. SporzÑdziê: [Opr               ]  Wydaê:                    Odebraê:
  64. dn:........  podpis.....          dn:........ podpis.....   dn:........  podpis.....
  65. #KONIEC
  66.