Changes between Version 17 and Version 18 of carga_movimientos
- Timestamp:
- 07/27/12 23:46:48 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
carga_movimientos
v17 v18 57 57 58 58 {{{ 59 #!text/x-sql 59 60 DELETE FROM <NOMBRE DE LA TABLA> 60 61 }}} … … 250 251 Tabla CN_TABLE_VIG_SEQ 251 252 252 {{{ 253 253 Vigencia 2010 254 255 {{{ 256 #!text/x-sql 254 257 UPDATE CN_TABLE_VIG_SEQ 255 258 set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2010 and id_cia=1 ),0 ) … … 263 266 set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2010 and id_cia=1 ),0 ) 264 267 WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2010; 265 268 }}} 269 270 Vigencia 2011 271 272 {{{ 273 #!text/x-sql 266 274 UPDATE CN_TABLE_VIG_SEQ 267 275 set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2011 and id_cia=1 ),0 ) … … 275 283 set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2011 and id_cia=1 ),0 ) 276 284 WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2011; 277 285 }}} 286 287 Vigencia 2012 288 289 {{{ 290 #!text/x-sql 278 291 UPDATE CN_TABLE_VIG_SEQ 279 292 set seq = nvl( (select max(id_documento) from cn_documento where id_vigencia = 2012 and id_cia=1 ),0 ) … … 287 300 set seq = nvl( (select max(id_mov_cont) from cn_movimiento_contable where id_vigencia = 2012 and id_cia=1 ),0 ) 288 301 WHERE NOM_ENTIDAD='CN_MOVIMIENTO_CONTABLE' AND ID_CIA=1 and ID_VIGENCIA = 2012; 289 290 302 }}} 291 303 … … 314 326 }}} 315 327 316