DROP PROC op_obtenercabezeratransgrabadas
GO

CREATE PROC op_obtenercabezeratransgrabadas
@corr integer
as
select DOCTYPEID,NBRDOCUMENT,DATEDOC,custidss,taxregnbr,CUSTNAME,ADDR1,businesstype,SALESPERID from tmp_op_salescstore where corrnbr=@corr
go

exec op_obtenercabezeratransgrabadas 353

--select * from op_docseries
--SELECT DOCTYPEID,DESCR FROM VW_TDOCMANUAL