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

  1. #DEFINICJE
  2. Rdok=substr(slownik("S_K","KOD_OPER  "+OBRGL->KOD_OPER),1,30)
  3. Rzak=slownik("S_K","ST        "+OBRGL->ST)
  4. Kd ="  "+KOD_DOK
  5. Nr =len10(ltrim(str(M->nr_dok,5)),8)
  6. Nrm=len10(M->kod_magaz+"/"+ltrim(str(M->nr_dok,5)),8)
  7. dn =dtoc(OBRGL->DATA)
  8. dns=dtoc(OBRGL->DATA_SPRZ)
  9. S  =str(M->str,3)
  10. Ok =if(M->_R_LBL,"        ",if(OBRGL->SW,"KOPIA   ","ORYGINA¥"))
  11. Ifg=if(M->_WFO,alltrim(OBRGL->INFO),"")
  12. Ifp=if(M->_WFO,"",alltrim(OBRGL->INFO))
  13. Kkn=KONTRAH->KONTRAHENT
  14. Np =len10(KONTRAH->NAZWA_PLAT,40)
  15. Ap =len10(KONTRAH->ADRES_PLAT,40)
  16. Npp=KONTRAH->NIP
  17. Szp=substr(slownik("S_K","FORMA_PLAT"+OBRGL->FORMA_PLAT),1,25)
  18. Tpt=dtoc(OBRGL->TERM_PLAT)
  19. V1 =str(S->VATP1,2)
  20. V2 =str(S->VATP2,2)
  21. V3 =str(S->VATP3,2)
  22. V4 =str(S->VATP4,2)
  23.  
  24. Pzv=if(OBRGL->ST="V","Podatek Wart.z podat.",space(22))
  25.  
  26. L  =str(Lpd,3)
  27. Naz=substr(INDEKS->NAZ_TOWARU,1,27)
  28. Opim=len10(substr(OPIS,1,27),27)
  29. Opn=if(M->_OPAK,"Il:w op. opak.","")
  30. Op1=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(INDEKS->PRZEL2,5,1),"     ")
  31. Op2=if(M->_OPAK.and.INDEKS->PRZEL2>0,str(M->ilosc_pocz/INDEKS->PRZEL2,6,1),"      ")
  32. Jm =substr(slownik("S_K","JM        "+INDEKS->JM),1,5)
  33. Ilo=if(M->_COMA,transform(M->ilosc_pocz,"@E 999999.99"),str(M->ilosc_pocz,9))
  34. Cn =transform(M->cp_op,"@E 9999,999.99")
  35. Wn =transform(M->wcp_op,"@E 999,999,999.99")
  36. V  =if(INDEKS->ZWOL,"Zw",str(VAT_P,2))+" "
  37. Vw =if(OBRGL->ST="V",transform(M->vat,"@E 9999,999.99"),space(11))
  38. Wzv=if(OBRGL->ST="V",transform(M->wcp_zv,"@E 999,999,999.99"),space(14))
  39. *cena sprzeda╛y z PZ 
  40. Cs =transform(if(M->_MPODAT,CENA/(1+VAT_P/100),CENA),"@E 9999,999.99")
  41. Csv=transform(cs_zv,"@E 9999,999.99")
  42.  
  43. RnettoFv=transform(OBRGL->VAT0+OBRGL->VAT1+OBRGL->VAT2+OBRGL->VAT3+OBRGL->VAT4,"@E 999,999,999.99") 
  44. Rvat    =if(OBRGL->ST="V",transform(OBRGL->PODAT,"@E 9999,999.99"),space(11))
  45. Rbrutto =if(OBRGL->ST="V",transform(OBRGL->VAT0+OBRGL->VAT1+OBRGL->VAT2+OBRGL->VAT3+OBRGL->VAT4+ OBRGL->PODAT,"@E 999,999,999.99"),space(14))
  46. Wag=len10(if(M->_WAG,"Waga towaru: "+str(M->waga,6,0)+" kG",""),30)
  47. Rnetto  =transform(M->swcp_op,"@E 999,999,999.99")
  48. RvatObl =if(OBRGL->ST="V",transform(M->svat7+M->svat12+M->svat22,"@E 9999,999.99"),space(11))
  49. RbrObl  =if(OBRGL->ST="V",transform(M->swcp_zv,"@E 999,999,999.99"),space(14))
  50. Rnetto22=transform(M->swcp_op22,"@E 999,999,999.99")
  51. Rvat22  =if(OBRGL->ST="V",transform(M->svat22,"@E 9999,999.99"),space(11))
  52. Rbrutto22=if(OBRGL->ST="V",transform(M->swcp_op22+M->svat22,"@E 999,999,999.99"),space(14))
  53. Rnetto12=transform(M->swcp_op12,"@E 999,999,999.99")
  54. Rvat12  =if(OBRGL->ST="V",transform(M->svat12,"@E 9999,999.99"),space(11))
  55. Rbrutto12=if(OBRGL->ST="V",transform(M->swcp_op12+M->svat12,"@E 999,999,999.99"),space(14))
  56. Rnetto7 =transform(M->swcp_op7,"@E 999,999,999.99")
  57. Rvat7   =if(OBRGL->ST="V",transform(M->svat7,"@E 9999,999.99"),space(11))
  58. Rbrutto7=if(OBRGL->ST="V",transform(M->swcp_op7+M->svat7,"@E 999,999,999.99"),space(14))
  59. Rnetto0 =transform(M->swcp_op0,"@E 999,999,999.99")
  60. Rbrutto0=if(OBRGL->ST="V",transform(M->swcp_op0,"@E 999,999,999.99"),space(14))
  61. RnettoZw=transform(M->swcp_opZw,"@E 999,999,999.99")
  62. RbruttoZw=if(OBRGL->ST="V",transform(M->swcp_opZw,"@E 999,999,999.99"),space(14))
  63. RnettoCs=transform(M->swcs,"@E 999,999,999.99")
  64. RbrutoCs=transform(M->swcs_zv,"@E 999,999,999.99")
  65. Opr     =substr(slownik("S_K",'SYMB_OPER '+OBRGL->SYMB_OPER),1,20)
  66.  
  67. #NAGLOWEK
  68. [M->ADR]
  69. NIP:[M->Nip     ]____________________________________________ Str:[S  ]_________________________________________________
  70.     [Rdok                        ]   [Kd] Nr:[Nrm   ]         Z dnia: [dn    ]    Data zakupu: [dns   ]
  71. Dot:[Rzak]   [Ok    ]
  72. [Ifg]
  73. DOSTAWCA: [Np                                    ]            Identyfikator : [Kkn   ]   NIP :[Npp        ]
  74. [repl("_",139)]
  75. Nr   Kod towaru   Nazwa towaru               j.m      Iloÿå      Cena         Wartoÿå  VAT%   [Pzv                 ] Cena netto Cena z VAT
  76. [repl("_",139)]
  77. [Ifp]
  78. #POZYCJE
  79. [L] [KOD_TOWARU ] [Naz                      ][Jm ][Ilo    ][Cn       ] [Wn          ] [V][Vw       ] [Wzv         ] [Cs       ] [Csv      ]
  80. #SUMY
  81. [repl("_",139)]
  82. [Wag                         ]                      Wyliczono  Razem: |[Rnetto      ]|  |[RvatObl  ]|[RbrObl      ]|                
  83.                                                                W tym: |[Rnetto22    ]|[V3]|[Rvat22   ]|[Rbrutto22   ]|
  84.                                                                       |[Rnetto12    ]|[V4]|[Rvat12   ]|[Rbrutto12   ]|
  85.                                                                       |[Rnetto7     ]|[V2]|[Rvat7    ]|[Rbrutto7    ]|
  86.                                                                       |[Rnetto0     ]|[V1]|           |[Rbrutto0    ]|
  87.                                                                       |[RnettoZw    ]|Zw|           |[RbruttoZw   ]|
  88.                                                          -----------------------------------------------------------
  89.                                                           DO ZAP¥ATY:  [RnettoFv    ] +  [Rvat     ]=[Rbrutto     ]
  90. [repl("-",116)]
  91. SporzÑdziê: [Opr               ]  PrzyjÑê:
  92. dn:........  podpis.....          dn:........  podpis.....
  93. #KONIEC
  94.