Sei sulla pagina 1di 8

{$N+,E+} {CONTABILIDAD 4.

1} Unit Tipo; Interface Const KC KD KI KF KR KM KN Tc Ks KT KA Kl KIV Type Str255 Str80 Str50 Str40 Str25 Str15 Str10 Str8 Str6 StrS Stri Strc Bcd StrA3 = = = = = = = = = = = = String[255]; String[ 80]; String[ 50]; String[ 40]; String[ 25]; String[ 15]; String[ 10]; String[ 08]; String[ 6]; String[ Ks]; String[ 5]; String[22]; = = = = = = = = = = = = = 22; 8; 5; 6; 10; KD + KC + Kr; 40; 15; 30; 4; 8; 30; 15; { Cuenta } { Comprobante } { Indices } { Referencia } { Comprobante + Cuenta + Ref}

= Extended; = Array[1..3] of String[kn]; = Record {Scconf.dat} Status : LongInt; PeriodoActual, InicioEjercicio, CierreEjercicio : String[8]; MaskSaldos : Byte; Separador : Char; FormatoCuenta, CtaSuperavit, { Utilidad acumulada } CtaDeficit, { Perdidas acumuladas } CtaUtilidad : Strc; {utilidad ejercicio} CtaPerdida, CtaUtilidadAjuste, CtaPerdidaAjuste, CtaSuperavitAjuste, CtaDeficitAjuste : Strc; Ndebitos, Ncreditos : Real; Tdebitos,

RegSystema

Tcreditos NxCompte NsinMovto, NInt, Ndec Configurado Cautomatico UltComprobante NComprobante UltCompDep Ncierre Cierres: ,

: Bcd; : Real; : : : : : : : Integer; Boolean; Char; String[kd]; Longint; String[Kd]; Byte; Array[1..05] of Record FechaInicio FechaCierre

:String[8]; end; NameEmp : IpcFecha : SiFecha, Consolida : CodConsolida : Esconsolidadora : NxCertify : LockMes : Version : ValidarBase, ValidarCentro, ValidarEfectivo : SimbolMoney : NameMoney : SimbolMoneyEx : NameMoneyEx : FactorMoney : Dummy : End; {RegSystema} String[40]; Integer; {nueva} Boolean; String[6]; Boolean; Integer; Array[1..13] of Boolean; Byte; {4.0} Boolean; String[3]; {v3.6} String[8]; String[3]; String[8]; Bcd; Array[1..163] of Byte;

RegCuenta = Record {sccta.dat} Status : LongInt; Codigo : StrC; Descripcion : Array[1..2] of String[KN]; DeMovimiento, Presupuesto : Char; SaldoAnterior : Bcd; SaldoAPorMovimiento, { Estas indican si los saldos son} SaldoPorMovimiento: Boolean; { normales o a traves de movtos } Reservada : Real; { Reservada para uso del sistema.} TipoActividad : Char; {#0 = Normal E.fectivo O.peracional I.nversion F.inanciamiento} Saldo_Nit : Char; { N=No pasa los saldos S=Si pasa sald os } SaldoAnteriorA : Bcd; Saldos : Array[1..13] of Record Debitos, Creditos:Bcd; end; SaldosAjuste : Array[1..13] of Record Debitos,

Creditos:Bcd; end; Presupuestos : Array[1..13] of Bcd; {12} Movcta : Array[1..13] of Record Ndebito, Ncredito:Integer; end; UltMovimiento: Record Fecha : String[8]; {String[6]} Concepto1, {Compte+Detalle} Concepto2 : String[Kn]; {Ref+Descrip} Monto : Bcd End; FechaApertura, FechaModify : String[8]; {String[6]} OkMarca : Boolean; {seleccionar para importar} Clase : Char; {M_onetaria N_o monetaria O_otras} Ajustable : Char; {Si/No} UsaTerceros : Char; {SI/No} UsaBases : Char; {Si/No} TipoCuenta : Char; {C_orrecc. A_justes N_ormal Utilida_ajuste} Version : Word; EnDolar : Char; {si o no } Moneda : String[2]; FactorCambio : Real; UsaCentro : Boolean; CentroFijo : Boolean; CodCentro : Integer; CuentaUnion : Strc; PorcPresup : Single; CuentaAjuste, CuentaCorreccion: Strc; Dummy2: Array[1..50] of byte; End; RegCentroCosto = Record {scctos.dat} Status : Longint; CodigoCto : Strc; DescripcionCto, DescripcionRef : String[Kn]; CodGrupo, CodSubGrupo : Strc; CodUnion: Strc; SaldoCto : Bcd; TipoCto : Char; {G.rupo S.ub C.entro} Pertenece : Char; Depresupuesto : Char; {Si o No} Clase : Byte; PresupuestoCto : Array[1..13] of bcd; NoperacionCto : Array[1..13] of word; Version : Word; Dummy : Array[1..150] of byte; End; RegTercero = Record {scterc.dat} Status : LongInt; CodIden : String[tc]; {Iden. o Nit} Descripcion,

Descripcion2 : String[Kn]; FechaApertura : String[8]; CiudadT : String[20]; Direccion1T, Direccion2T : String[kn]; Fax, TelefonoT : String[kn]; TipoTercero : Char; PersonaRef, TelefonoRef : String[kn]; Temporal : boolean; {Solo para los cheque pagados a como beneficiario} Saldos : Array[1..12] of Real; UltimaTrc : Record {false=contab true=banco} tipo : Boolean; Fecha : String[8]; Documento : String[KD]; Banco : String[20]; Beneficiario, Concepto1, Concepto2 : String[KN]; MontoT : Real; End; CtaDefecto : Boolean; KeyCuenta : String[KC]; Concepto1, Concepto2, Concepto3 : String[KN]; Monto : Real; Version : Byte; Ajuste : Boolean; {ajustable si o no} Dummy : array[1..39] of byte; End; RegComprobante {sccom.dat, sccom_.dat} = Record Status : LongInt; Bandera : Char; {'x' 'a'} Numero : String[KD]; Concepto : String[KN]; Fecha : String[8]; {String[6]} Debe, Haber : Bcd; NrAsiento : Integer; Temporal : Char; {s/n} Tildado : Boolean; CodConf : String[6]; Reservado : byte; dumm : byte; Tipo : byte; {0=normal 1=ajuste 2=sdo inicial 3=sdo ini ajute} Error_data, {datos completos} Error_cta, {inconsistencia los datos} Si_Efectivo, {Mueve efectivo o equivalentes} Ok_SaldoEfectivo: Boolean; SaldoEfectivo: Double; {Si Ok=true, tiene el sald si no tiene la diferencia del efectivo}

o db o cr

Dummy End; RegMovimiento

: Array[1..5] Of Byte;

= Record {scmov.dat, scmov_.dat} Status : LongInt; CodigoCuenta : StrC; NCompte : String[KD]; Ref : String[10]; DetalleM : StrA3; FechaM : String[8]; LineaM : String[4]; MontoM : Bcd; CodIdenM : String[tc]; BaseM : Bcd; Reserved : Byte; Estado : byte; {0=n 1=d 2=N} FechaRef : Longint; TipoM : Byte; {0=normal 1=ajuste 2=sdo inicial} CodCostoM : Longint; Cerrado : Boolean; MtoEfectivoM : Double; TipoEfectivoM: Byte; {0=no efect,1=si mueve 2=cta efectivo} {0=no 1=si} End;

RegEmpresas = Record {scemp.dat} Status : Longint; Codigo : String[6]; Nombre, Direccion1, Direccion2, Telefonos : String[kn]; Rifs : String[tc]; Disco : Char; SubDir : String[60]; Catalogo : Char; Precierre : Boolean; Acceso : String[10]; Version : Word; CodigoAdmon : String[6]; Ciudad : String[20]; EsConsolida : Boolean; Dummy : Array[1..200 {169}] of byte; {V4.0} End;

RegCuentaH

= Record {scctah.dat} Status: LongInt; CodigoH: Strc; DescripcionH: String[kn]; DeMovimientoH: Char; SaldoAnteriorH: Array[1..5] of Bcd; SaldoAnteriorHA:Array[1..5] of Bcd; SaldoH: SaldoHA:

{ajuste inflaci

on} Array[1..5,1..13] of Bcd; Array[1..5,1..13] of Bcd; {ajuste inflaci on}

FechaH: tr6} Clase Version Dummy End;

Array[1..5] of

Record FechaInicioH, FechaCierreH:Str8; {s

end; : Char; {M_onetaria N_o monetaria O_otras} : Word; : Array[1..50] of byte;

RegSerial

= Record Status: CodeS: CodeA: end;

{scser.dat} LongInt; String[ks]; String[ka]; {Cod Activo+serial}

RegDepartamento

= Record {scdep.dat} Status : LongInt; CodigoD : String[10]; NombreD : String[Kn]; Dummy : Array[1..100] of byte; End; = Record {sctip.dat} Status : LongInt; CodigoT : String[10]; NombreT : String[Kn]; CuentaDep, CuentaAct : Strc; CtaGeneral : Char; CuentaReal : strc; Tdepreciable: char; CtaAjuste : Strc; CtaCorreDep : Strc; CtoCosto : Str8; Dummy : Array[1..21] of byte; end; = Record {scact.dat} Status : LongInt; Code : String[15]; {Aumentar} Nombre : Array[1..3] of String[Kn]; Cantidad : Integer; Depto : String[10]; FechaIncorp, FechaCompra, UltimaDep : Str8; UndProduccion, Costo, VidaUtil, ValorResidual, Cuota, PenDepAcumulada, DepAcumulada, PenMesesDepreciados, MesesDepreciados, MtoUltDeprec : Bcd;

RegTipoActivo

RegActivo

Metodo : TipoDep : Diaspormes : FechaPenUltima, FechaUltDeprec : CtaContable, CtaDepreciacion: FlgAjuste : UsaSerial :

Integer; Char; {Mensual o Diaria} Integer; Str8; {cta dep acumulada real } Strc; {cta de gasto } Boolean; Char;

(* Var de Ajustes por Inflacin *) API : Record CostoNetoReexp, DepNetoAcumuladaReexp: Bcd; FechaInicial, AjusteDesde, AjusteHasta: Str8; MesesDepInicial, MesesAjustados, MtoUltDepReexp: Bcd; end; CostoOriginal : Bcd; {Costo adquisicin} Depreciable : char; {Si o No} CtaActivo : Strc; {Cta Real del activo} version : word; CostoAnteriorA, {Ajuste/CostoNetoReaj} DepAnteriorA, {dep ejercicio aj.} UltCorreccion : Bcd; A_Inicial : Boolean; {uso interno} Dummy : Array[1..49] of byte; end; {reg activo} RegSaldoInicial = Record (* scsdoi.dat saldo inicial de terceros por ctas *) Status : Longint; Ajuste : Boolean; {de ajuste si o no} Nit : String[tc]; CodCta : Strc; SaldoI : Bcd; BaseI : Bcd; Dummy : array[1..30] of byte; {V4.0} End; RegPartida = Record {scpresu.dat} Status Codigo Descrip1 Monto Fecha Dummy MtoReservado case tipo:char : Longint; : StrC; : Str40; : Bcd; : Str8; : array[1..100] of byte; : Bcd; of {0=Part,1=Part:Ctro,2=Ctro:Cta} {9=nulo} '0': {partida} ( TieneAdd : Boolean; Descrip2 : Str40; Adicion : array[1..5] of record Acode : str10; ADetalle : str40; AFecha : str8; AMonto : Bcd;

end;); '1','2': {centro y cuenta} ( CodPartida : Str10; CodAux : Strc; NoEqual : Boolean {Reservado}); end; {RegPartida} implementation end.

Potrebbero piacerti anche