Changes between Version 17 and Version 18 of carga_movimientos


Ignore:
Timestamp:
07/27/12 23:46:48 (12 years ago)
Author:
David
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • carga_movimientos

    v17 v18  
    5757
    5858{{{
     59#!text/x-sql
    5960 DELETE FROM <NOMBRE DE LA TABLA>
    6061}}}
     
    250251Tabla CN_TABLE_VIG_SEQ
    251252
    252 {{{
    253 
     253Vigencia 2010
     254
     255{{{
     256#!text/x-sql
    254257UPDATE CN_TABLE_VIG_SEQ
    255258set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2010 and id_cia=1  ),0 )
     
    263266set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2010 and id_cia=1  ),0 )
    264267WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2010;
    265 
     268}}}
     269
     270Vigencia 2011
     271
     272{{{
     273#!text/x-sql
    266274UPDATE CN_TABLE_VIG_SEQ
    267275set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2011 and id_cia=1  ),0 )
     
    275283set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2011 and id_cia=1  ),0 )
    276284WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2011;
    277 
     285}}}
     286
     287Vigencia 2012
     288
     289{{{
     290#!text/x-sql
    278291UPDATE CN_TABLE_VIG_SEQ
    279292set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2012 and id_cia=1  ),0 )
     
    287300set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2012 and id_cia=1  ),0 )
    288301WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2012;
    289 
    290302}}}
    291303
     
    314326 }}}
    315327
    316