*--------------------------------------------------------------------------------------------------------------------------------------------------------
* (EN) AUTOGENERATED - ATTENTION!! - NOT INTENDED FOR EXECUTION!! USE ONLY FOR MERGING CHANGES AND STORING WITH SCM TOOLS!!
*--------------------------------------------------------------------------------------------------------------------------------------------------------
*< FOXBIN2PRG: Version="1.21" SourceFile="listgen.mnx" CPID="1252" /> (Solo para binarios VFP 9 / Only for VFP 9 binaries)
*
*<MenuType>4</MenuType>
*<MenuLocation>REPLACE</MenuLocation>

*<MenuCode>
DEFINE POPUP Listare SHORTCUT RELATIVE FROM MROW(),MCOL()
DEFINE BAR 1 OF Listare PROMPT "\<Balanta" ;
	MESSAGE 'Tiparirea balantei'
ON SELECTION BAR 1 OF Listare do viz_form_rapbal with "Balanta"

DEFINE BAR 2 OF Listare PROMPT "Balanta \<parteneri"
ON BAR 2 OF Listare ACTIVATE POPUP Balantapar

	*----------------------------------
	DEFINE POPUP Balantapar SHORTCUT RELATIVE
	DEFINE BAR 1 OF Balantapar PROMPT "Raport xls (luni pe coloane)"
	ON SELECTION BAR 1 OF Balantapar Do raport_bal_parteneri in oparteneri.prg

	DEFINE BAR 2 OF Balantapar PROMPT "Raport xls (luni pe linii)"
	ON SELECTION BAR 2 OF Balantapar Do alege_raport With 3, .F. In orapoarte_dinamice.prg

DEFINE BAR 3 OF Listare PROMPT "\-"
ON BAR 3 OF Listare ACTIVATE POPUP _3tp0yl37p

	*----------------------------------
	DEFINE POPUP _3tp0yl37p SHORTCUT RELATIVE
DEFINE BAR 4 OF Listare PROMPT "Rapoarte dinamice"
ON SELECTION BAR 4 OF Listare Do alege_raport With 2, .T. In orapoarte_dinamice.prg

DEFINE BAR 5 OF Listare PROMPT "\-"
ON BAR 5 OF Listare ACTIVATE POPUP _say0qhy8u

	*----------------------------------
	DEFINE POPUP _say0qhy8u SHORTCUT RELATIVE
DEFINE BAR 6 OF Listare PROMPT "\<Registrul jurnal" ;
	MESSAGE 'Tiparirea registrelor'
ON SELECTION BAR 6 OF Listare DO viz_form_rapjurnal with "Registrul jurnal"

DEFINE BAR 7 OF Listare PROMPT "\-"
ON BAR 7 OF Listare ACTIVATE POPUP _s7y0v26gq

	*----------------------------------
	DEFINE POPUP _s7y0v26gq SHORTCUT RELATIVE
DEFINE BAR 8 OF Listare PROMPT "\<Declaratii"
ON BAR 8 OF Listare ACTIVATE POPUP Declaratii

	*----------------------------------
	DEFINE POPUP Declaratii SHORTCUT RELATIVE
	DEFINE BAR 1 OF Declaratii PROMPT "Declaratia 094"
	ON SELECTION BAR 1 OF Declaratii do viz_decl094 in oproceduri_decont.prg

	DEFINE BAR 2 OF Declaratii PROMPT "\-"
	ON BAR 2 OF Declaratii ACTIVATE POPUP _68o0pehf9

		*----------------------------------
		DEFINE POPUP _68o0pehf9 SHORTCUT RELATIVE
	DEFINE BAR 3 OF Declaratii PROMPT "Declaratia 097 Notificare aplicare TVA la incasare"
	ON SELECTION BAR 3 OF Declaratii do viz_decl097 in oproceduri_decont.prg

	DEFINE BAR 4 OF Declaratii PROMPT "\-"
	ON BAR 4 OF Declaratii ACTIVATE POPUP _3mf0pcv1z

		*----------------------------------
		DEFINE POPUP _3mf0pcv1z SHORTCUT RELATIVE
	DEFINE BAR 5 OF Declaratii PROMPT "Declaratia 100 lunar"
	ON SELECTION BAR 5 OF Declaratii DO BAR_5_OF_Declaratii_FB2P

	DEFINE BAR 6 OF Declaratii PROMPT "Declaratia 100 trimestrial"
	ON SELECTION BAR 6 OF Declaratii DO BAR_6_OF_Declaratii_FB2P

	DEFINE BAR 7 OF Declaratii PROMPT "\-"
	ON BAR 7 OF Declaratii ACTIVATE POPUP _43n0uzq2y

		*----------------------------------
		DEFINE POPUP _43n0uzq2y SHORTCUT RELATIVE
	DEFINE BAR 8 OF Declaratii PROMPT "Declaratia 102 lunar"
	ON SELECTION BAR 8 OF Declaratii DO viz_decl100_102 with 102 IN oproceduri_decont.prg

	DEFINE BAR 9 OF Declaratii PROMPT "Declaratia 102 trimestrial"
	ON SELECTION BAR 9 OF Declaratii DO viz_decl100_102 with 102,.T. IN oproceduri_decont.prg

	DEFINE BAR 10 OF Declaratii PROMPT "\-"
	ON BAR 10 OF Declaratii ACTIVATE POPUP _35h0sf9ek

		*----------------------------------
		DEFINE POPUP _35h0sf9ek SHORTCUT RELATIVE
	DEFINE BAR 11 OF Declaratii PROMPT "Declaratia 101 - Impozit pe profit"
	ON SELECTION BAR 11 OF Declaratii DO viz_decl101 in oproceduri_decont.prg

	DEFINE BAR 12 OF Declaratii PROMPT "\-"
	ON BAR 12 OF Declaratii ACTIVATE POPUP _35h0sf9el

		*----------------------------------
		DEFINE POPUP _35h0sf9el SHORTCUT RELATIVE
	DEFINE BAR 13 OF Declaratii PROMPT "Declaratia 205 Impozit dividende"
	ON SELECTION BAR 13 OF Declaratii DO viz_decl205 in oproceduri_decont.prg

	DEFINE BAR 14 OF Declaratii PROMPT "\-"
	ON BAR 14 OF Declaratii ACTIVATE POPUP _6jj0o8j7k

		*----------------------------------
		DEFINE POPUP _6jj0o8j7k SHORTCUT RELATIVE
	DEFINE BAR 15 OF Declaratii PROMPT "Declaratia 300 Decont TVA"
	ON SELECTION BAR 15 OF Declaratii DO viz_decontTVA IN oproceduri_decont.prg

	DEFINE BAR 16 OF Declaratii PROMPT "\-"
	ON BAR 16 OF Declaratii ACTIVATE POPUP _35h0sf9em

		*----------------------------------
		DEFINE POPUP _35h0sf9em SHORTCUT RELATIVE
	DEFINE BAR 17 OF Declaratii PROMPT "Declaratia 390 Achizitii/Livrari intracomunitare"
	ON SELECTION BAR 17 OF Declaratii DO viz_decl390 in oproceduri_decont.prg

	DEFINE BAR 18 OF Declaratii PROMPT "\-"
	ON BAR 18 OF Declaratii ACTIVATE POPUP _3zr0t5rm0

		*----------------------------------
		DEFINE POPUP _3zr0t5rm0 SHORTCUT RELATIVE
	DEFINE BAR 19 OF Declaratii PROMPT "Declaratia 392" ;
		SKIP FOR gnLuna <> 12
	ON SELECTION BAR 19 OF Declaratii DO viz_decl392 in oproceduri_decont.prg

	DEFINE BAR 20 OF Declaratii PROMPT "\-"
	ON BAR 20 OF Declaratii ACTIVATE POPUP _3bi0q7h2b

		*----------------------------------
		DEFINE POPUP _3bi0q7h2b SHORTCUT RELATIVE
	DEFINE BAR 21 OF Declaratii PROMPT "Declaratia 394 Achizitii/Livrari intern"
	ON SELECTION BAR 21 OF Declaratii DO viz_decl394 in oproceduri_decont.prg

	DEFINE BAR 22 OF Declaratii PROMPT "\-"
	ON BAR 22 OF Declaratii ACTIVATE POPUP _66m0xszxw

		*----------------------------------
		DEFINE POPUP _66m0xszxw SHORTCUT RELATIVE
	DEFINE BAR 23 OF Declaratii PROMPT "D406" ;
		SKIP FOR !(TYPE('GND406')<>'U' AND m.GND406=1)
	ON SELECTION BAR 23 OF Declaratii do viz_saft_d406 in saft_d406.prg

DEFINE BAR 9 OF Listare PROMPT "\-"
ON BAR 9 OF Listare ACTIVATE POPUP _53d0xiczb

	*----------------------------------
	DEFINE POPUP _53d0xiczb SHORTCUT RELATIVE
DEFINE BAR 10 OF Listare PROMPT "\<TVA Defalcat"
ON BAR 10 OF Listare ACTIVATE POPUP NewItem

	*----------------------------------
	DEFINE POPUP NewItem SHORTCUT RELATIVE
	DEFINE BAR 1 OF NewItem PROMPT "Raport incasari banca lei TVA defalcat"
	ON SELECTION BAR 1 OF NewItem do TVADefalcatIncasariPlati with '5121' , "INCASARI" in orapoarte.prg

	DEFINE BAR 2 OF NewItem PROMPT "\-"
	ON BAR 2 OF NewItem ACTIVATE POPUP _55i0mgind

		*----------------------------------
		DEFINE POPUP _55i0mgind SHORTCUT RELATIVE
	DEFINE BAR 3 OF NewItem PROMPT "Raport incasari casa lei TVA defalcat"
	ON SELECTION BAR 3 OF NewItem do TVADefalcatIncasariPlati with '5311' , "INCASARI" in orapoarte.prg

	DEFINE BAR 4 OF NewItem PROMPT "Raport plati casa lei TVA Defalcat"
	ON SELECTION BAR 4 OF NewItem do TVADefalcatIncasariPlati with '5311' , "PLATI" in orapoarte.prg
ACTIVATE POPUP Listare

*</MenuCode>

*<Procedures>
PROCEDURE BAR_5_OF_Declaratii_FB2P
	IF gnAn>=2016
		DO viz_decl100 with 100 IN oproceduri_decont.prg
	ELSE 	
		DO viz_decl100_102 with 100 IN oproceduri_decont.prg
	ENDIF 	
ENDPROC && BAR_5_OF_Declaratii_FB2P

PROCEDURE BAR_6_OF_Declaratii_FB2P
	IF gnAn >= 2016
		DO viz_decl100 with 100, .T. IN oproceduri_decont.prg
	ELSE
		DO viz_decl100_102 with 100,.T. IN oproceduri_decont.prg	
	ENDIF 	
ENDPROC && BAR_6_OF_Declaratii_FB2P

*</Procedures>
