home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / testsoft / vatman / vatman.lzh / PR.DOK < prev    next >
Text File  |  1997-02-02  |  4KB  |  88 lines

  1. *PZ reklamacje
  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. V1 =str(S->VATP1,2)
  15. V2 =str(S->VATP2,2)
  16. V3 =str(S->VATP3,2)
  17. V4 =str(S->VATP4,2)
  18.  
  19. L  =str(NR_POZ,3)
  20. Naz=substr(INDEKS->NAZ_TOWARU,1,70)
  21. Fak=str(NR_DOK_Z,5)
  22. Opim=len10(substr(OPIS,1,27),27)
  23. Opn=if(M->_OPAK,"Il:w op. opak.","")
  24. Op1=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(INDEKS->PRZEL2,5,1),"     ")
  25. Op2=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(ILOSC_POCZ/INDEKS->PRZEL2,6,1),"      ")
  26. Jm =substr(slownik("S_K","JM        "+INDEKS->JM),1,5)
  27. Ilo=if(M->_COMA,transform(ILOSC_POCZ,"@E 999999.99"),str(ILOSC_POCZ,9))
  28. Cn =transform(M->cp_op,"@E 9999,999.99")
  29. Wn =transform(M->wcp_op,"@E 999,999,999.99")
  30. V  =if(INDEKS->ZWOL,"Zw",str(VAT_P,2))+" "
  31. Cs =transform(if(M->_MPODAT,CENA/(1+VAT_P/100),CENA),"@E 9999,999.99")
  32. Csv=transform(M->cs_zv,"@E 9999,999.99")
  33. Vw =transform(M->vat,"@E 9999,999.99")
  34. Wzv=transform(M->wcp_zv,"@E 999,999,999.99")
  35. Wce=transform(M->wcs,"@E 999,999.99")
  36. Wcv=transform(M->wcs_zv,"@E 999,999.99")
  37. Wag=len10(if(M->_WAG,"Waga towaru: "+str(M->waga,6,0)+" kG",""),30)
  38. Rnetto  =transform(M->swcp_op,"@E 999,999,999.99")
  39. Rvat    =transform(M->svat7+M->svat12+M->svat22,"@E 9999,999.99")
  40. Rbrutto =transform(M->swcp_zv,"@E 999,999,999.99")
  41. Rnetto22=transform(M->swcp_op22,"@E 999,999,999.99")
  42. Rvat22  =transform(M->svat22,"@E 9999,999.99")
  43. Rbrutto22=transform(M->swcp_op22+M->svat22,"@E 999,999,999.99")
  44. Rnetto12=transform(M->swcp_op12,"@E 999,999,999.99")
  45. Rvat12  =transform(M->svat12,"@E 9999,999.99")
  46. Rbrutto12=transform(M->swcp_op12+M->svat12,"@E 999,999,999.99")
  47. Rnetto7 =transform(M->swcp_op7,"@E 999,999,999.99")
  48. Rvat7   =transform(M->svat7,"@E 9999,999.99")
  49. Rbrutto7=transform(M->swcp_op7+M->svat7,"@E 999,999,999.99")
  50. Rnetto0 =transform(M->swcp_op0,"@E 999,999,999.99")
  51. RnettoZw=transform(M->swcp_opZw,"@E 999,999,999.99")
  52. Opr     =substr(slownik("S_K",'SYMB_OPER '+OBRGL->SYMB_OPER),1,20)
  53. *W c.sprzeda╛y
  54. RnettoCs=transform(M->swcs,"@E 999,999.99")
  55. RbrutoCs=transform(M->swcs_zv,"@E 999,999.99")
  56.  
  57. #NAGLOWEK
  58. [M->ADR]
  59. NIP:[M->Nip     ]____________________________________________ Str:[S  ]_________________________________________________
  60.     [Rdok                        ]   [Kd] Nr:[Nrm   ]         Z dnia: [dn    ]
  61.     [Rdk                         ]   [Ok    ]
  62. [Ifg]
  63. [Np]
  64. [Ap]
  65. [repl("_",146)]
  66.      Kod towaru   SWW           Nazwa towaru                                                           [Opn         ] Rozliczenie w cenach sprzeda╛y
  67. Poz.              Nr faktury    j.m     Iloÿå       Cena         Wartoÿå VAT%   Podatek Wart.z podat.  Cena: netto    brutto  Wart.netto   brutto
  68. [repl("_",146)]
  69. [Ifp]
  70. #POZYCJE
  71. [L] [KOD_TOWARU ] [INDEKS->SWW] [Naz                                                                 ] [Op1 ]  [Op2 ]
  72.                   [Fak]         [Jm ][Ilo    ][Cn       ] [Wn          ] [V][Vw       ] [Wzv         ] [Cs       ] [Csv      ][Wce     ][Wcv     ]
  73. #SUMY
  74. [repl("_",146)]
  75. [Wag                         ]         Wyliczono  Razem: |[Rnetto      ]|  |[Rvat     ]|[Rbrutto     ]|                       [RnettoCs][RbrutoCs]
  76.                                                   W tym: |[Rnetto22    ]|[V3]|[Rvat22   ]|[Rbrutto22   ]|
  77.                                                          |[Rnetto12    ]|[V4]|[Rvat12   ]|[Rbrutto12   ]|
  78.                                                          |[Rnetto7     ]|[V2]|[Rvat7    ]|[Rbrutto7    ]|
  79.                                                          |[Rnetto0     ]|[V1]|           |[Rnetto0     ]|
  80. Wartoÿå dokumentu: [Rnetto      ]                        |[RnettoZw    ]|Zw|           |[RnettoZw    ]|
  81. [repl("-",120)]
  82. [len10(slownie(M->swcp_op),120)]
  83. [repl("-",120)]
  84. SporzÑdziê: [Opr               ]  Wydaê:                    Odebraê(os.uprawniona):
  85. dn:........  podpis.....          dn:........ podpis.....   dn:........  podpis.....
  86. SporzÑdzono w systemie PC VATMAN (C) ZTK BITAM
  87. #KONIEC
  88.