
CREATE PROCEDURE [dbo].[sp_Api5_venDocumentosRead]
    @coddoc INT,
	@grudoc INT
AS
BEGIN
    SELECT 
        codsii,
        grudoc,
        nomdoc,
        operac,
        afecto,
        Doc_Ref1,
        Doc_Ref2,
        Doc_Ref3,
        stock,
        op_stock,
        glosa_ref1,
        glosa_ref2,
        glosa_ref3,
        lineas_detalle
    FROM 
        vendocumentos 
    WHERE 
        coddoc = @coddoc
		and grudoc=@grudoc
END;
