PARAM operace, ktery_text
IF EMPTY(m.ktery_text)
	m.ktery_text=""
ELSE
	IF VARTYPE(m.ktery_text)=="C" AND LOWER(m.ktery_text)<>"_uzav"
		m.ktery_text=""
	ENDIF 
ENDIF 
DO CASE
	CASE ISNULL(m.operace)
		RETURN jaz("prg_lng_oper_pohyb") + " NULL" &&"Pohyb " + m.operace

	CASE m.operace = "VE"
		RETURN jaz("prg_lng_oper_ve"+m.ktery_text)	&&"Výdej externí"

	CASE m.operace = "VV"
		RETURN jaz("prg_lng_oper_vv"+m.ktery_text) &&"Výdej interní"

	CASE m.operace = "VR"
		RETURN jaz("prg_lng_oper_vr"+m.ktery_text) &&"Vratka"

	CASE m.operace = "VK"
		RETURN jaz("prg_lng_oper_vk"+m.ktery_text) &&"Výdej kasou"

	CASE m.operace = "PE"
		RETURN jaz("prg_lng_oper_pe"+m.ktery_text) &&"Příjem externí"

	CASE m.operace = "PV"
		RETURN jaz("prg_lng_oper_pv"+m.ktery_text) &&"Příjem interní"

	CASE m.operace = "PI"
		RETURN jaz("prg_lng_oper_pi"+m.ktery_text) &&"Inventurní vyrovnání"

	CASE m.operace = "PO"
		RETURN jaz("prg_lng_oper_po"+m.ktery_text) &&"Počáteční stav"

	CASE m.operace = "PR"
		RETURN jaz("prg_lng_oper_pr"+m.ktery_text) &&"Převod z archivace"

	CASE m.operace = "VP" .AND. !EMPTY(m.ktery_text)
		RETURN jaz("prg_lng_oper_vp"+m.ktery_text) &&"Polotovary"

	CASE m.operace = "PP" .AND. !EMPTY(m.ktery_text)
		RETURN jaz("prg_lng_oper_pp"+m.ktery_text) &&"Polotovary"

	CASE m.operace = "VP" .OR. operace = "PP"
		RETURN jaz("prg_lng_oper_vp_pp"+m.ktery_text) &&"Polotovary"

	CASE m.operace = "VB" .AND. !EMPTY(m.ktery_text)
		RETURN jaz("prg_lng_oper_vb"+m.ktery_text) &&"Bourání"

	CASE m.operace = "PB" .AND. !EMPTY(m.ktery_text)
		RETURN jaz("prg_lng_oper_pb"+m.ktery_text) &&"Bourání"

	CASE m.operace = "VB" .OR. operace = "PB"
		RETURN jaz("prg_lng_oper_vb_pb"+m.ktery_text) &&"Bourání"

	CASE m.operace = "VC" .OR. operace = "PC"
		RETURN jaz("prg_lng_oper_vc_pc"+m.ktery_text) &&"Přecenění"

	CASE m.operace = "ZV"
		RETURN jaz("prg_lng_oper_zv"+m.ktery_text) &&"Žádanka"

	CASE m.operace = "ZE"
		RETURN jaz("prg_lng_oper_ze"+m.ktery_text) &&"Objednávka"

	CASE m.operace = "ZO"
		RETURN jaz("prg_lng_oper_ze"+m.ktery_text)+" EDI" &&"Objednávka"

	CASE m.operace = "SF"
		RETURN jaz("prg_lng_oper_sf"+m.ktery_text) &&"sberna faktura"

	CASE m.operace = "II"
		RETURN jaz("prg_lng_oper_pi"+m.ktery_text) &&"inventura"

	CASE m.operace = "AA" OR m.operace="PS"
		RETURN jaz("prg_lng_oper_po"+m.ktery_text) &&"Počáteční stav"

	CASE m.operace="KS"
		RETURN jaz("prg_lng_oper_ko"+m.ktery_text) &&"Konečný stav"

	CASE m.operace = "ER"
		RETURN jaz("prg_lng_oper_er"+m.ktery_text) &&"Chyby opravami dokladov"

	CASE m.operace = "EX"
		RETURN jaz("prg_lng_oper_int_poh"+m.ktery_text) &&"Chyby v internýc pohyboch"

	CASE m.operace = "ZZ"
		RETURN jaz("prg_lng_oper_pi"+m.ktery_text) &&"inventura"

	OTHER
		RETURN jaz("prg_lng_oper_pohyb") + " " + m.operace &&"Pohyb " + m.operace
ENDCASE
