Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE `phieu_chi` (
- `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
- `id_khach_hang` int(11) NULL DEFAULT NULL COMMENT 'Lấy trong bảng danh mục khách hàng' ,
- `nguoi_nhan_tien` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'Nhập ô text' ,
- `ly_do` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'thông tin diễn giải phiếu chi' ,
- `id_tai_khoan_co` int(11) NOT NULL COMMENT 'Lấy trong bảng danh mục tài khoản' ,
- `so_phieu_chi` int(11) NULL DEFAULT NULL COMMENT 'Lấy trong danh mục quyển chứng từ' ,
- `ngay_lap` datetime NULL DEFAULT NULL ,
- `ngay_hoach_toan` datetime NULL DEFAULT NULL ,
- `id_tien_te` int(11) NULL DEFAULT NULL COMMENT 'Tỉ giá : lấy trong bảng danh mục tiền tệ' ,
- `trang_thai` tinyint(4) NULL DEFAULT NULL COMMENT '0: Lập chứng từ,1: chuểnKTTH ,2 : Chuyển sổ cái' ,
- `tien` float(11,0) NULL DEFAULT NULL COMMENT 'lấy tiền trong chi tiết' ,
- `thue_vat` int(10) NULL DEFAULT NULL ,
- `tong_tien` float(11,0) NULL DEFAULT NULL ,
- `ngay_tao` datetime NULL DEFAULT NULL ,
- `ngay_sua` datetime NULL DEFAULT NULL ,
- `nguoi_tao` int(11) NULL DEFAULT NULL ,
- `nguoi_sua` int(11) NULL DEFAULT NULL ,
- PRIMARY KEY (`id`)
- )
- ENGINE=MyISAM
- DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci
- AUTO_INCREMENT=1
- CHECKSUM=0
- ROW_FORMAT=DYNAMIC
- DELAY_KEY_WRITE=0
- ;
- //////////////////////////////////////////////////////
- CREATE TABLE `chi_tiet_phieu_chi` (
- `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,
- `id_phieu_chi` int(11) NOT NULL ,
- `id_tai_khoan_no` int(11) NOT NULL COMMENT 'lấy trong danh mục tài khoản' ,
- `tien` float(11,2) NULL DEFAULT NULL COMMENT 'Số tiền nợ' ,
- `dien_giai` varchar(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL ,
- `id_bo_phan` int(11) NULL DEFAULT NULL COMMENT 'lấy trong bảng danh mục nhân viên' ,
- `id_vu_viec` int(11) NULL DEFAULT NULL COMMENT 'lấy trong bảng danh mục vụ việc' ,
- `ngay_tao` datetime NULL DEFAULT NULL ,
- `ngay_sua` datetime NULL DEFAULT NULL ,
- `nguoi_tao` int(11) NULL DEFAULT NULL ,
- `nguoi_sua` int(11) NULL DEFAULT NULL ,
- PRIMARY KEY (`id`)
- )
- ENGINE=MyISAM
- DEFAULT CHARACTER SET=utf8 COLLATE=utf8_unicode_ci
- AUTO_INCREMENT=1
- CHECKSUM=0
- ROW_FORMAT=DYNAMIC
- DELAY_KEY_WRITE=0
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement