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


<TABLE>
	<MemoFile></MemoFile>
	<CodePage>1252</CodePage>
	<LastUpdate></LastUpdate>
	<Database></Database>
	<FileType>0x00000030</FileType>
	<FileType_Descrip>Visual FoxPro</FileType_Descrip>

	<FIELDS>
		<FIELD>
			<Name>ID_SEL</Name>
			<Type>I</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>CSELECT</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>CFROM</Name>
			<Type>C</Type>
			<Width>25</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>CANTITATE</Name>
			<Type>C</Type>
			<Width>5</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>CWHERE</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>CSCHEMA</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>TITLU_COL</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>NUME_COL</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>MASK_COL</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>FILTRUORIG</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>FILTRU</Name>
			<Type>C</Type>
			<Width>20</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>ORDINE</Name>
			<Type>C</Type>
			<Width>20</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>TITLU_GRID</Name>
			<Type>C</Type>
			<Width>100</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>DESCRIERE</Name>
			<Type>C</Type>
			<Width>70</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>FPFILTRUOR</Name>
			<Type>M</Type>
			<Width>4</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
		<FIELD>
			<Name>FPFILTRU</Name>
			<Type>C</Type>
			<Width>20</Width>
			<Decimals>0</Decimals>
			<Null>.F.</Null>
			<NoCPTran>.F.</NoCPTran>
			<Field_Valid_Exp></Field_Valid_Exp>
			<Field_Valid_Text></Field_Valid_Text>
			<Field_Default_Value></Field_Default_Value>
			<Table_Valid_Exp></Table_Valid_Exp>
			<Table_Valid_Text></Table_Valid_Text>
			<LongTableName></LongTableName>
			<Ins_Trig_Exp></Ins_Trig_Exp>
			<Upd_Trig_Exp></Upd_Trig_Exp>
			<Del_Trig_Exp></Del_Trig_Exp>
			<TableComment></TableComment>
			<Autoinc_Nextval>0</Autoinc_Nextval>
			<Autoinc_Step>0</Autoinc_Step>
		</FIELD>
	</FIELDS>



	<RECORDS>

		<RECORD>
			<ID_SEL>1</ID_SEL>
			<CSELECT><![CDATA[select *]]></CSELECT>
			<CFROM>vnom_articole</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,U.M.,Grupa,Subgrupa,Cont,Analitic,Cod Furnizor,Conditii pastrare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire;codmat;um;grupa;subgrupa;cont;acont;codmatf;conditii_pastrare;]]></NUME_COL>
			<MASK_COL></MASK_COL>
			<FILTRUORIG><![CDATA['inactiv = 0 and cont in (select cont from ' + gcs + '.VCORESP_CONT_TIPGEST where id_tipgest = ?gnTipGest )']]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>CATALOG DE MATERIALE SI MARFURI</TITLU_GRID>
			<DESCRIERE>Selectie din nomenclatorul de materiale unde 2=2 - vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>2</ID_SEL>
			<CSELECT><![CDATA[select  v.*, v.id_gestiune as id_gestin, v.nume_gestiune as gestin]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Cont,Analitic,Gest,Pret unit.achizitie,TVA unit.achizitie,Procent TVA,Valoare achizitie,Valoare TVA,Sectie,Cod furnizor,Lot,Data expirare,Lucrare rez.,Part. rez.,Cod Bare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cant; cont; acont; cgest; pret; tva; proc_tva; round(pret*cant,gnPC); round(round(pret*cant,gnPC)*(proc_tva-1),gnPc); sectie;codmatf;lot;adata_expirare;nrord_rez;part_rez;codbare;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(6,gnPCANT); [5]=; [6]= ;[7]=; [8]=get_mask(12,gnPpret); [9]=get_mask(12,gnPpret); [10]=get_mask(3,2); [11]=get_mask(12,gnPa); [12]=get_mask(12,gnPa); [13]=; [14]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>NIR</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - NIR achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>3</ID_SEL>
			<CSELECT><![CDATA[select v.*, v.id_gestiune as id_gestin, v.nume_gestiune as gestin]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Cont,Analitic,Gest,Pret unit.achizitie,TVA unit.achizitie,Proc.TVA achi,Pret unit.vanzare,TVA unit.vanzare,Proc.TVA vanz,Valoare achizitie,Val.TVA achi,Adaos,Valoare vanzare,Val.TVA vanz,Sectie,Cod furnizor,Lot,Data expirare,Lucrare rez.,Part. rez.]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cant; cont; acont; cgest; pret; tva; proc_tva; pretv; tvav; proc_tvav; round(pret*cant,gnPC);  round(round(pret*cant,gnPC)*(proc_tva-1),gnPc); procent; round(pretv*cant,gnPC); round(round(pretv*cant,gnPC)*(proc_tvav-1),gnPc);sectie;codmatf;lot;adata_expirare;nrord_rez;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=; [6]=; [7]=; [8]=get_mask(12,gnPpret); [9]=get_mask(12,gnPpret); [10]=get_mask(5,2); [11]=get_mask(12,gnPpret); [12]=get_mask(12,gnPpret); [13]=get_mask(5,2); [14]=get_mask(12,gnPA); [15]=get_mask(12,gnPA); [16]=get_mask(12,gnPA); [17]=get_mask(12,gnPA); [18]=get_mask(12,gnPA)]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>NIR</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - NIR vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>4</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,serie,pretd,id_valuta,codmatf,lot,adata_expirare,part_rez,nrord_rez,id_lucrare_rez,id_part_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,U.M.,Serie,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;um;serie;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=;[18]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)),"cants+cant-cante<>0 and id_gestiune= ?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna))) + IIF(Empty(gcCondSucursala) and glEMama," and id_sucursala is null",gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MATERIALE</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>5</ID_SEL>
			<CSELECT><![CDATA[select  v.*, v.id_gestiune as id_gestout, v.nume_gestiune as gestout]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Pret unitar,Valoare,Cont,Analitic,Gestiune,Lucrare,Sectie,Cod furnizor,Lot,Data expirare,Lucrare rez.,Part. rez.]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cante; pret; round(pret*cante,gnPc); cont; acont; cgest; nrord; Sectie;codmatf;lot;adata_expirare;nrord_rez;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(5,gnPcant);[5]=get_mask(12,gnPpret);[6]=get_mask(12,gnPA);[7]=;[8]=;[9]=;[10]=; [11]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>BON DE CONSUM</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - BON achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>6</ID_SEL>
			<CSELECT><![CDATA[select v.*, v.id_gestiune as id_gestout, v.nume_gestiune as gestout]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Cont,Analitic,Gest,Pret unit.achizitie,Pret unit.vanzare,TVA unit.vanzare,Proc.TVA vanz,Valoare achizitie,Adaos,Valoare vanzare,Val.TVA vanz,Lucrarea,Sectie,Cod furnizor,Lot,Data expirare,Lucrare rez.,Part. rez.]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cante; cont; acont; cgest; pret; pretv; tvav; proc_tvav; round(pret*cante,gnPC); procent; round(pretv*cante,gnPC); round(round(pretv*cante,gnPC)*(proc_tvav-1),gnPc); nrord; Sectie;codmatf;lot;adata_expirare;nrord_rez;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(6,gnPcant);[5]=; [6]=; [7]=; [8]=get_mask(12,gnPpret); [9]=get_mask(12,gnPpret); [10]=get_mask(12,gnPPRET); [11]=get_mask(3,2); [12]=get_mask(12,gnPA); [13]=get_mask(3,2); [14]=get_mask(12,gnPA); [15]=get_mask(12,gnPA); [16]=; [17]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>BON DE CONSUM</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - BON vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>7</ID_SEL>
			<CSELECT><![CDATA[select distinct sum(cante) over (partition by id_articol,id_gestiune,cont,acont,pret,pretv,proc_tvav,id_lucrare,id_lucrare_rez,id_part_rez,id_fact,id_valuta,pretd,nume_val) as cantitate,denumire,codmat,serie,um,cont,acont,cgest,pret,id_articol,id_gestiune,id_lucrare,nrord,id_fact, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,nume_gestiune,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez,id_valuta,pretd,nume_val, in_stoc, in_crm]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA><![CDATA[cantitate n(12,4),denumire c(100),codmat c(50),serie c(100),um c(6), cont c(4), acont c(4),cgest c(4), pret n(16,4),id_articol N(18),id_gestiune N(18),id_lucrare N(18),nrord c(50),id_fact n(18),id_jtva_coloana n(10),taxcode n(6),id_rul_aux n(10),tva n(16,4),nume_gestiune c(50),codmatf c(50),lot c(20),adata_expirare d,id_part_rez N(10),part_rez C(100),id_lucrare_rez N(10),nrord_rez c(50),id_valuta N(10),pretd n(16,4),nume_val c(50), in_stoc N(1), in_crm N(1)]]></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,Cant iesita,U.M.,Pret achizitie,Gestiunea,Cont,Analitic,Lucrare,Cod furnizor,Lot,Data expirare,Part. rez.,Lucrare rez.,Pret ach. val.,Valuta]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat; denumire; serie; cantitate; um; pret; cgest; cont; acont; nrord;codmatf;lot;adata_expirare;part_rez;nrord_rez;pretd;nume_val;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=; [4]=get_mask(6,gnPcant);[5]=; [6]=get_mask(12,gnPpret); [7]=; [8]=; [9]=; [10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=get_mask(14,gnPVal);[17]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"v.cante<>0 and v.an*12+v.luna<=?gnAn*12+?gnLuna","v.cante<>0 and v.id_gestiune=?pcobj.id_gestout and v.an*12+v.luna<=?gnAn*12+?gnLuna")+IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>MATERIALE IESITE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul pt retur bon unde cante&lt;&gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>8</ID_SEL>
			<CSELECT><![CDATA[select distinct codmat,denumire,serie,sum(cante) over (partition by id_articol,id_gestiune,cont,acont,pret,pretv,proc_tvav,id_lucrare,id_lucrare_rez,id_part_rez,id_fact,id_valuta,pretd,nume_val) as cantitate,um,cont,acont,cgest,pret,id_articol,id_gestiune,id_lucrare,nrord,id_fact, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,nume_gestiune,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez,id_valuta,pretd,nume_val, in_stoc, in_crm]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA><![CDATA[codmat c(50),denumire c(100),serie c(100),cantitate n(12,4),um c(6), cont c(4), acont c(4),cgest c(4), pret n(16,4),id_articol N(18),id_gestiune N(18),id_lucrare N(18),nrord c(50),id_fact n(18),id_jtva_coloana n(10),taxcode n(6),id_rul_aux n(10),tva n(16,4),nume_gestiune c(50),codmatf c(50),lot c(20),adata_expirare d,id_part_rez N(10),part_rez C(100),id_lucrare_rez N(10),nrord_rez C(50),id_valuta N(10),pretd N(16,4),nume_val C(50), in_stoc N(1), in_crm N(1)]]></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,Cant iesita,U.M.,Pret achizitie,Gestiunea,Cont,Analitic,Lucrarea,Cod furnizor,Lot,Data expirare,Part. rez.,Lucrare rez.,Pret ach.in valuta,Valuta]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat; denumire; serie; cantitate; um; pret; cgest; cont; acont; nrord;codmatf;lot;adata_expirare;part_rez;nrord_rez;pretd;nume_val;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=; [6]=get_mask(12,gnPpret); [7]=; [8]=; [9]=; [10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=get_mask(16,gnPVal);[17]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' and type('pcobj.id_lucrare')='U' ,"cante<>0 and an*12+luna<=?gnAn*12+?gnLuna","cante<>0 and id_gestiune=?pcobj.id_gestout and an*12+luna<=?gnAn*12+?gnLuna and id_lucrare=?pcobj.id_lucrare")+IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>MATERIALE IESITE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul pt retur bon dupa lucrare unde cante&lt;&gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>9</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,serie,cants+cant-cante as cantitate,um,cant_bax,um2,grupa,subgrupa,pret,pretv,tvav,proc_tvav,cgest,cont,acont,datain,id_articol,id_gestiune, dnf, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,pretd,id_valuta,codmatf,lot,adata_expirare,id_lucrare_rez,nrord_rez,id_part_rez,part_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Pret vanz cu TVA,Pret vanzare, Tva Vanz,ProcTva vanz,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat; denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;  pretv+tvav; pretv; tvav; proc_tvav; cgest; cont; acont; datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=; [4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=; [11]=get_mask(12,gnPpret); [12]=get_mask(12,gnPpret); [13]=get_mask(12,gnPPRET); [14]=get_mask(3,2); [15]=; [16]=; [17]=; [18]=; [19]=; [20]=; [21]=;[22]=;[23]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)),"cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)))+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MARFURI</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>10</ID_SEL>
			<CSELECT><![CDATA[select distinct codmat,denumire,serie,sum(cante) over (partition by id_articol,id_gestiune,cont,acont,pret,pretv,tvav,proc_tvav,id_lucrare,id_lucrare_rez,id_part_rez,id_fact,id_valuta,pretd,nume_val) as cantitate,um,cont,acont,cgest,pret,id_articol,id_gestiune,id_lucrare,nrord,pretv,tvav,proc_tvav,id_fact, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,nume_gestiune,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez,id_valuta,pretd,nume_val, in_stoc, in_crm]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,Cant iesita,U.M.,Pret vanz cu TVA,Pret achizitie,Pret vanzare,Tva vanzare,Proc.Vanz,Gestiunea,Cont,Analitic,Lucrarea,Cod furnizor,Lot,Data expirare,Part. rez.,Lucrare rez.,Pret ach.in valuta,Valuta]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat; denumire; serie; cantitate; um; pretv+tvav; pret; pretv; tvav; proc_tvav; cgest; cont; acont; nrord;codmatf;lot;adata_expirare;part_rez;nrord_rez;pretd;nume_val;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(6,gnPcant);[5]=;[6]=get_mask(12,gnPpret); [7]=get_mask(12,gnPpret); [8]=get_mask(12,gnPpret); [9]=get_mask(12,gnPPRET); [10]=get_mask(3,2); [11]=; [12]=; [13]=; [14]=;[15]=;[16]=;[17]=;[18]=;[19]=;[20]=get_mask(16,gnPVal);[21]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_lucrare')='U' ,"v.cante<>0 and v.an*12+v.luna<=?gnAn*12+?gnLuna","v.cante<>0 and v.id_lucrare=?pcobj.id_lucrare and v.an*12+v.luna<=?gnAn*12+?gnLuna")+IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>MARFURI IESITE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul pt retur bon dupa lucrare unde cante&lt;&gt;0 - vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>11</ID_SEL>
			<CSELECT><![CDATA[select  v.*, v.id_gestiune as id_gestin, v.nume_gestiune as gestin, v.id_gestiune as id_gestout, v.nume_gestiune as gestout]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod Material,Denumire,Serie,Cantitate,Pret unit.achizitie,Valoare achizitie,Cod furnizor,Lot,Data expirare,Lucrare,Part. rezervare]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat; denumire; serie; cant; pret; round(pret*cant,gnPC);codmatf;lot;adata_expirare;nrord;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=get_mask(12,gnPpret); [6]=get_mask(12,gnPA)]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>NIR-TRANSFER</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - NIR achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>12</ID_SEL>
			<CSELECT><![CDATA[select v.*, v.id_gestiune as id_gestin, v.nume_gestiune as gestin,v.id_gestiune as id_gestout, v.nume_gestiune as gestout]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Pret unit.achizitie,Pret unit.vanz. cu TVA,Pret unit.vanzare,TVA unit.vanzare,Proc.TVA vanz,Valoare achizitie,Adaos,Valoare vanzare,Val.TVA vanz,Cod furnizor,Data expirare,Lucrare,Part. rezervare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cant; pret;pretv+tvav;pretv; tvav; proc_tvav; round(pret*cant,gnPC); procent; round(pretv*cant,gnPC);  round(round(pretv*cant,gnPC)*(proc_tvav-1),gnPc);codmatf;lot;adata_expirare;nrord;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=get_mask(12,gnPpret); [6]=get_mask(12,gnPpret); [7]=get_mask(12,gnPpret); [8]=get_mask(12,gnPPRET); [9]=get_mask(3,2); [10]=get_mask(12,gnPA); [11]=get_mask(3,2); [12]=get_mask(12,gnPA); [13]=get_mask(12,gnPA)]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>NIR-TRANSFER</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - NIR vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>13</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,serie,cante as cantitate,um,cont,acont,cgest,pret,pretv-discunitar as pretv,tvav-discount_tva as tvav,proc_tvav,dataout,id_articol,id_gestiune,procent,id_lucrare,nrord, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,nume_gestiune,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez,id_valuta,pretd,nume_val, in_stoc, in_crm]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA><![CDATA[codmat c(50),denumire c(100),serie c(100),cantitate n(12,4),um c(6), cont c(4), acont c(4),cgest c(4), pret n(16,4),pretv n(16,4),tvav n(16,4),proc_tvav n(5,2),dataout d,id_articol N(18),id_gestiune N(18),procent n(7,3),id_lucrare n(18),nrord c(50),id_jtva_coloana n(10),taxcode n(6),id_rul_aux n(10),tva n(16,4),nume_gestiune c(50),codmatf c(50),lot c(20),adata_expirare d,id_part_rez N(10),part_rez C(100),id_lucrare_rez N(10),nrord_rez C(50),id_valuta N(10),pretd N(16,4),nume_val C(50), in_stoc N(1), in_crm N(1)]]></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,Cant iesita,U.M.,Pret achizitie,Pret vanz,TVA vanz,ProcTVA,Gestiunea,Cont,Analitic,Lucrare,Data iesirii,Cod furnizor,Data expirare,Part. rez.,Lucrare rez.,Pret de ach. in valuta,Valuta]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire; serie; cantitate; um; pret; pretv; tvav; proc_tvav; cgest; cont; acont; nrord; dataOUT;codmatf;lot;adata_expirare;part_rez;nrord_rez;pretd;nume_val;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=; [4]=get_mask(6,gnPcant);[5]=; [6]=get_mask(12,gnPpret); [7]=get_mask(12,gnPpret); [8]=get_mask(12,gnPPRET); [9]=get_mask(3,2); [10]=; [11]=; [12]=; [13]=; [14]=;[15]=;[16]=;[17]=;[18]=;[19]=;[20]=get_mask(16,gnPVal);[21]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA['id_fact in( '+pcListaFacturi+') and cante<>0 and nr_pag'+IIF(gnTipGest=6,'=6','<>6')+' and id_tip_rulaj=0' +IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>MATERIALE IESITE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul pt id_fact unde cante&lt;&gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>14</ID_SEL>
			<CSELECT><![CDATA[select distinct id_lucrare,nrord,codmat,denumire,serie,um,sum(cante) over (partition by id_articol,id_gestiune,cont,acont,pret,pretv,tvav,proc_tvav,id_lucrare,id_lucrare_rez,id_part_rez,id_fact,id_valuta,pretd,nume_val) as cantitate,cont,acont,cgest,pret,id_articol,id_gestiune,pretv,tvav,proc_tvav,id_fact, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,nume_gestiune,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez,id_valuta,pretd,nume_val, in_stoc, in_crm]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Lucrarea,Cod material,Denumire,Serie,Cant iesita,U.M.,Pret vanz cu TVA,Pret achizitie,Pret vanzare,Tva vanzare,Proc.Vanz,Gestiunea,Cont,Analitic,Cod furnizor,Data expirare,Part. rez.,Lucrare rez.,Pret ach.in valuta,Valuta]]></TITLU_COL>
			<NUME_COL><![CDATA[ nrord;codmat;denumire; serie; cantitate;um; pretv+tvav; pret; pretv; tvav; proc_tvav; cgest; cont; acont;codmatf;lot;adata_expirare;nrord;part_rez;nrord_rez;pretd;nume_val;]]></NUME_COL>
			<MASK_COL><![CDATA[ [1]=;[2]=;[3]=;[4]=; [5]=get_mask(6,gnPcant);[6]=;[7]=get_mask(12,gnPpret); [8]=get_mask(12,gnPpret); [9]=get_mask(12,gnPpret); [10]=get_mask(12,gnPPRET); [11]=get_mask(3,2); [12]=; [13]=; [14]=;[15]=;[16]=;[17]=;[18]=;[19]=;[20]=get_mask(16,gnPVal);[21]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cante<>0 and an*12+luna<=?gnAn*12+?gnLuna","cante<>0 and id_gestiune=?pcobj.id_gestout and an*12+luna<=?gnAn*12+?gnLuna")+IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>nrord</ORDINE>
			<TITLU_GRID>MATERIALE IESITE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul pt retur bon unde cante&lt;&gt;0 - achizitie,aleg lucrare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>15</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,serie,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, dnf, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,tva,pretd,id_valuta,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)),"cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)))+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE OBIECTE DE INVENTAR</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>16</ID_SEL>
			<CSELECT><![CDATA[select v.*,v.id_gestiune as id_gestin, v.nume_gestiune as gestin, v.id_gestiune as id_gestout, v.nume_gestiune as gestout, 0 as id_jtva_coloana,0 as taxcode,rpad(' ',50,' ') as codmatf, v.lot as lot_obinv, to_date('') as adata_expirare, v.serie as serie_obinv]]></CSELECT>
			<CFROM>vrul_obinv v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod Material,Denumire,Serie,Cantitate,Pret unitar,Valoare,Responsabil, Sectie,Durata folosinta,Data PIF]]></TITLU_COL>
			<NUME_COL><![CDATA[ codmat; denumire;serie;cant; pret; round(pret*cant,gnPC);nresp;sectie;DNS_luni;ttod(datapif)]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=get_mask(12,gnPpret); [6]=get_mask(12,gnPA); [7]=; [8]=; [9]=; [10]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>TRANSFER IN FOLOSINTA</TITLU_GRID>
			<DESCRIERE>Selectie din vrul_obinv unde 1=2 - ObInv : Dare in folosinta</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>17</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,cants+cant-cante as cantitate,um,cant_bax,um2,grupa,subgrupa,pret,cgest,cont,acont,datapif,id_articol,id_gestiune,id_responsabil,nresp,dns_luni, dnf,data_expirare, 0 as id_jtva_coloana,0 as taxcode,serie,tva,id_rul_aux,nume_gestiune,rpad(' ',50,' ') as codmatf, serie, lot, to_date('') as adata_expirare, in_stoc, in_crm]]></CSELECT>
			<CFROM>vstoc_obinv</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,Cant in folosinta,U.M.,Cant 2,U.M.2,Grupa,Subgrupa,Pret ,Gestiunea,Cont,Analitic,Responsabil,Data darii in folosinta,Durata ramasa (luni),DNF (luni),Data expirare]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;cantitate;um;cant_bax;um2;grupa;subgrupa;pret;cgest;cont;acont;nresp;ttod(datapif);dns_luni;dnf;ttod(data_expirare)]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=; [4]=get_mask(6,gnPcant);[5]=;[6]=get_mask(6,gnPcant);[7]=;[8]=;[9]=;[10]=get_mask(12,gnPpret);[11]=;[12]=;[13]=;[14]=;[15]=;[16]=get_mask(6,0)]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an=?gnAn and luna=?gnLuna and  ((nvl(?pcObj.Id_responsabil,0) <> 0 and  id_responsabil = ?pcObj.Id_responsabil)  OR (NVL(?pcObj.Id_responsabil,0) = 0))","cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an=?gnAn and luna=?gnLuna and ((nvl(?pcObj.Id_responsabil,0) <> 0 and  id_responsabil = ?pcObj.Id_responsabil)  OR (NVL(?pcObj.Id_responsabil,0) = 0))")+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE OBIECTE DE INVENTAR AFLATE IN FOLOSINTA</TITLU_GRID>
			<DESCRIERE>Selectie din vstoc_obinv dupa gestiune, responsabil si cantitate &gt;0 -</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>18</ID_SEL>
			<CSELECT><![CDATA[select v.*,v.id_gestiune as id_gestin, v.nume_gestiune as gestin, v.id_gestiune as id_gestout, v.nume_gestiune as gestout, 0 as id_jtva_coloana,0 as taxcode,rpad(' ',50,' ') as codmatf, v.lot as lot_obinv, to_date('') as adata_expirare, v.serie as serie_obinv]]></CSELECT>
			<CFROM>vrul_obinv v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod Material,Denumire,Serie,Cantitate,Pret unitar,Valoare,Responsabil, Sectie,Durata folosinta,Data PIF]]></TITLU_COL>
			<NUME_COL><![CDATA[ codmat;denumire; serie; cante; pret; round(pret*cante,gnPC);nresp;sectie;DNS_luni;ttod(datapif)]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=get_mask(12,gnPpret); [6]=get_mask(12,gnPA); [7]=; [8]=; [9]=; [10]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>RETUR DIN FOLOSINTA</TITLU_GRID>
			<DESCRIERE>Selectie din vrul_obinv unde 1=2 - ObInv : Retur din folosinta</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>19</ID_SEL>
			<CSELECT><![CDATA[select v.denumire,v.cantitate,v.id_lucrare,v.cont,v.analitic,v.codmat,0 as id_reteta,'' as reteta,v.id_articol, 0 as id_jtva_coloana,0 as taxcode,null as id_rul_aux,null as serie,0 as tva, in_stoc, in_crm]]></CSELECT>
			<CFROM>vlucrari_elemente v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE><![CDATA[v.id_lucrare = ?poAct.id_lucrare]]></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Cantitate,Cont,Analitic]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;Denumire;Cantitate;Cont;Analitic]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=;[4]=;[5]=;]]></MASK_COL>
			<FILTRUORIG><![CDATA['2=2 and v.id_lucrare = ?poAct.id_lucrare']]></FILTRUORIG>
			<FILTRU></FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>ARTICOLE DIN LUCRAREA ??POACT.NRORD??</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>20</ID_SEL>
			<CSELECT><![CDATA[select  v.*, v.id_gestiune as id_gestin, v.nume_gestiune as gestin,v.reteta,v.id_reteta]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cant</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod Material,Denumire,Serie,Cantitate,Cont,Analitic,Gest,Pret unit.achizitie,Reteta,TVA unit.achizitie,Procent TVA,Valoare achizitie,Valoare TVA,Sectie,Cod furnizor,Data expirare]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;cant; cont; acont; cgest; pret;reteta; tva; proc_tva; round(pret*cant,gnPC); round(round(pret*cant,gnPC)*(proc_tva-1),gnPc); sectie;codmatf;lot;adata_expirare;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=; [4]=get_mask(6,gnPCANT); [5]=; [6]= ;[7]=; [8]=get_mask(12,gnPpret);[9]=; [10]=get_mask(12,gnPpret); [11]=get_mask(3,2); [12]=get_mask(12,gnPa); [13]=get_mask(12,gnPa); [14]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>PRODUSE</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - NIR achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>21</ID_SEL>
			<CSELECT><![CDATA[select v.*,v.id_gestiune as id_gestin, v.nume_gestiune as gestin, v.id_gestiune as id_gestout, v.nume_gestiune as gestout, 0 as id_jtva_coloana,0 as taxcode,rpad(' ',50,' ') as codmatf, rpad(' ',50,' ') as lot, to_date('') as adata_expirare]]></CSELECT>
			<CFROM>vrul_obinv v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod Material,Denumire,Serie,Cantitate,Pret unitar,Valoare,Responsabil, Sectie,Durata folosinta,Data PIF]]></TITLU_COL>
			<NUME_COL><![CDATA[ codmat; denumire; serie; cante; pret; round(pret*cante,gnPC);nresp;sectie;DNS_luni;ttod(datapif)]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=; [4]=get_mask(6,gnPcant); [5]=get_mask(12,gnPpret); [6]=get_mask(12,gnPA); [7]=; [8]=; [9]=; [10]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,'v.id_sucursala is null',substr(STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]),5))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>CASARE DIN FOLOSINTA</TITLU_GRID>
			<DESCRIERE>Selectie din vrul_obinv unde 1=2 - ObInv : Casare (din folosinta)</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>22</ID_SEL>
			<CSELECT><![CDATA[select *]]></CSELECT>
			<CFROM>vnom_articole</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Cod bare,U.M.,Cont,Grupa,Subgrupa,Analitic,Cod Furnizor,Conditii pastrare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire;codmat;codbare;um;cont;grupa;subgrupa;acont;codmatf;conditii_pastrare]]></NUME_COL>
			<MASK_COL></MASK_COL>
			<FILTRUORIG><![CDATA['inactiv = 0']]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>CATALOG DE MATERIALE SI MARFURI</TITLU_GRID>
			<DESCRIERE>Selectie din nomenclatorul de materiale unde 2=2 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>23</ID_SEL>
			<CSELECT><![CDATA[select v.nume_articol as denumire, v.pretftva, v.pretctva, v.codmat, v.id_articol, v.id_pol, v.cont, 0 as id_jtva_coloana,0 as taxcode,null as id_rul_aux,null as serie, in_stoc, in_crm]]></CSELECT>
			<CFROM>vcrm_politici_pret_art v</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE><![CDATA[v.id_pol = ?poAct.id_pol]]></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Pret fara TVA,Pret cu TVA,Cont ]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;Denumire;Pretftva;Pretctva;Cont]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=; [2]=; [3]=;|4|=;|5|=]]></MASK_COL>
			<FILTRUORIG><![CDATA['2=2 and v.id_pol = ?poAct.id_pol']]></FILTRUORIG>
			<FILTRU></FILTRU>
			<ORDINE>nume_articol</ORDINE>
			<TITLU_GRID>ARTICOLE DIN POLITICA DE PRETURI</TITLU_GRID>
			<DESCRIERE>Selectie din Lista de preturi</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>24</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,serie,tva,pretd,id_valuta,codmatf,lot,adata_expirare,id_lucrare_rez,nrord_rez,id_part_rez,part_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=; [5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)) + " and cont like '34%' ","cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)) + " and cont like '34%'")+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MATERIALE</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>25</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,serie,tva,pretd,id_valuta,codmatf,lot,adata_expirare,id_lucrare_rez,nrord_rez,id_part_rez,part_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)) + "  and (cont like '34%' or cont = '381')","cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)) + " and (cont like '34%' or cont = '381')")+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MATERIALE</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>26</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,serie,tva, pretd,id_valuta,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)),"cants+cant-cante<>0 and id_gestiune=?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)))+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MATERIALE</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>27</ID_SEL>
			<CSELECT><![CDATA[select codmat,denumire,um,cants+cant-cante as cantitate,pret,cant_bax,um2,grupa,subgrupa,cgest,cont,acont,datain,id_articol,id_gestiune, 0 as id_jtva_coloana,0 as taxcode,id_rul_aux,serie,tva, pretd,id_valuta,codmatf,lot,adata_expirare,id_part_rez,part_rez,id_lucrare_rez,nrord_rez, in_stoc, in_crm,id_furnizor,furnizor]]></CSELECT>
			<CFROM>vstoc</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Cod material,Denumire,Serie,U.M.,Cant in stoc,Pret achizitie,Cant 2,U.M.2,Grupa,Subgrupa,Gestiunea,Cont,Analitic,Data intrarii,Cod Furnizor,Lot,Data Expirare,Lucrare rez.,Part. rez.,Furnizor]]></TITLU_COL>
			<NUME_COL><![CDATA[codmat;denumire;serie;um;cantitate;pret;cant_bax;um2;grupa;subgrupa;cgest;cont;acont;datain;serie;codmatf;lot;adata_expirare;nrord_rez;part_rez;furnizor;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=;[5]=get_mask(6,gnPcant);[6]=get_mask(12,gnPpret);[7]=get_mask(6,gnPcant);[8]=;[9]=;[10]=;[11]=;[12]=;[13]=;[14]=;[15]=;[16]=;[17]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[iif(type('pcobj.id_gestout')='U' or empty(pcobj.id_gestout),"cants+cant-cante<>0 and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)),"cants+cant-cante<>0 and id_gestiune= ?pcobj.id_gestout and an= " + allt(str(m.gnAn)) + " and luna= " + allt(str(m.gnLuna)) + " and id_articol in (select id_articol from vcomenzi_elemente where id_comanda=?pnId_comanda)")+IIF(Empty(gcCondSucursala) and glEMama,' and id_sucursala is null',gcCondSucursala)]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>STOC DE MATERIALE</TITLU_GRID>
			<DESCRIERE>Selectie din stoc dupa gestiune si cantitate &gt;0 - achizitie</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>28</ID_SEL>
			<CSELECT><![CDATA[select  v.*, v.id_gestiune as id_gestout, v.nume_gestiune as gestout,0 as curs,0 as pretvval,0 as tvaval,0 as id_valuta_vanz]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Pret unitar valuta,Valoare valuta,Pret unitar,Valoare,Cont,Analitic,Gestiune,Lucrare,Sectie,Cod furnizor,Data expirare,Lucrare,Part. rezervare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cante; pretvval; round(pretvval*cante,gnPVal); pret; round(pret*cante,gnPc); cont; acont; cgest; nrord; Sectie;codmatf;lot;adata_expirare;nrord;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(5,gnPcant);[5]=get_mask(14,gnPVal);[6]=get_mask(14,gnPVal);[7]=get_mask(12,gnPpret);[8]=get_mask(12,gnPA);[9]=;[10]=;[11]=;[12]=; [13]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>BON DE CONSUM</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - BON achizitie valuta</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>29</ID_SEL>
			<CSELECT><![CDATA[select v.*, v.id_gestiune as id_gestout, v.nume_gestiune as gestout,0 as curs,0 as pretvval,0 as tvaval,0 as id_valuta_vanz]]></CSELECT>
			<CFROM>vrul v</CFROM>
			<CANTITATE>cante</CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Serie,Cantitate,Cont,Analitic,Gest,Pret vanzare valuta,Valoare valuta,Pret unit.achizitie,Pret unit.vanzare,TVA unit.vanzare,Proc.TVA vanz,Valoare achizitie,Adaos,Valoare vanzare,Val.TVA vanz,Lucrarea,Sectie,Cod furnizor,Data expirare,Lucrare,Part. rezervare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire; codmat; serie; cante; cont; acont; cgest; pretvval; round(pretvval*cante,gnPVal); pret; pretv; tvav; proc_tvav; round(pret*cante,gnPC); procent; round(pretv*cante,gnPC); round(round(pretv*cante,gnPC)*(proc_tvav-1),gnPc); nrord; Sectie;codmatf;lot;adata_expirare;nrord;part_rez;]]></NUME_COL>
			<MASK_COL><![CDATA[[1]=;[2]=;[3]=;[4]=get_mask(6,gnPcant);[5]=; [6]=; [7]=; [8]=get_mask(14,gnPVal); [9]=get_mask(14,gnPVal); [10]=get_mask(12,gnPpret); [11]=get_mask(12,gnPpret); [12]=get_mask(12,gnPPRET); [13]=get_mask(3,2); [14]=get_mask(12,gnPA); [15]=get_mask(3,2); [16]=get_mask(12,gnPA); [17]=get_mask(12,gnPA); [18]=; [19]=]]></MASK_COL>
			<FILTRUORIG><![CDATA[IIF(Empty(gcCondSucursala) and glEMama,' and v.id_sucursala is null',STRTRAN(gcCondSucursala,[id_sucursala],[v.id_sucursala]))]]></FILTRUORIG>
			<FILTRU>1=2</FILTRU>
			<ORDINE>denumire</ORDINE>
			<TITLU_GRID>BON DE CONSUM</TITLU_GRID>
			<DESCRIERE>Selectie din vrul unde 1=2 - BON vanzare valuta</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>1=2</FPFILTRU>
		</RECORD>

		<RECORD>
			<ID_SEL>30</ID_SEL>
			<CSELECT><![CDATA[select *]]></CSELECT>
			<CFROM>vnom_articole_dep_nir</CFROM>
			<CANTITATE></CANTITATE>
			<CWHERE></CWHERE>
			<CSCHEMA></CSCHEMA>
			<TITLU_COL><![CDATA[Denumire,Cod Material,Cantitate,U.M.,Grupa,Subgrupa,Cont,Analitic,Cod Furnizor,Conditii pastrare]]></TITLU_COL>
			<NUME_COL><![CDATA[denumire;codmat;cantitate;um;grupa;subgrupa;cont;acont;codmatf;conditii_pastrare;]]></NUME_COL>
			<MASK_COL></MASK_COL>
			<FILTRUORIG><![CDATA['inactiv = 0 and numaract = ?poAct.nract and TRUNC(dataact) = ?poAct.dataact']]></FILTRUORIG>
			<FILTRU></FILTRU>
			<ORDINE>nd_id</ORDINE>
			<TITLU_GRID>CATALOG DE MATERIALE SI MARFURI</TITLU_GRID>
			<DESCRIERE>Selectie din nomenclatorul de materiale unde 2=2 - vanzare</DESCRIERE>
			<FPFILTRUOR><![CDATA[2=2]]></FPFILTRUOR>
			<FPFILTRU>2=2</FPFILTRU>
		</RECORD>

	</RECORDS>


</TABLE>

