fa -- 固定资产
darknight @ 2009-6-11 14:20:00
CREATE TABLE [fa] (
[ccode] text(20) not null CONSTRAINT [PK_faid] PRIMARY KEY ,
[nodeid] text(200) not null ,
[cname] text(200) not null ,
[cunit] text(200) null ,
[cmodel] text(200) null ,
[cspec] text(200) null ,
[ccolor] text(200) null ,
[cfrom] text(200) null ,
[cpack] text(200) null ,
[cstructure] text(200) null ,
[cproducer] text(200) null ,
[cuser] text(200) null ,
[cplace] text(200) null ,
[cmanager] text(200) null ,
[remark] Memo null ,
[acid] text(200) null ,
[cdate] datetime null ,
[depm] text(50) null ,
[depy] Long null ,
[balance] Currency null ,
[isdepthismonth] INTEGER default 0,
[ac_voucher] memo null ,
[YorM] INTEGER default 0,
[S1] text(20) null ,
[S2] text(100) null ,
[S3] text(200) null ,
[I1] INTEGER null ,
[I2] INTEGER null ,
[I3] INTEGER null
);
说明:
1). [ccode]固定资产的编码,如:“FA0001”。
2). [depm] 折旧方法有如下几种:
a. 平均年限
b. 年数总和
c. 双倍余额递减
d. 等值摊销(适合长期待摊费用管理)
3). [nodeid] 我们以一个表来保存“树”的全部结构,这个字段表示了当前记录所在的树的节点位置,这个字段的值必须是唯一,节点的父子之间关系用小数点分割。
4). [ac_voucher] 记录科目与金额的对应。