HOSxP 3.51.9.16
Checking structure phase 2
ALTER TABLE stock_supplier_item ADD `item_tax` char(1) NULL
ALTER TABLE stock_supplier_item ADD `item_date` date NULL
ALTER TABLE stock_subdraw_list ADD `remain` int NULL
ALTER TABLE stock_subdraw_list ADD `stock_subdraw_unitcost` double(15,5) NULL
ALTER TABLE stock_subdraw_list ADD `stock_subdraw_price` double(15,3) NULL
ALTER TABLE stock_subdraw_list ADD `confirm_empty` char(1) NULL
ALTER TABLE stock_subdraw_list ADD `stock_subdraw_qty` int NULL
ALTER TABLE stock_subdraw_list ADD `item_id` int NULL
ALTER TABLE stock_subdraw_list ADD `stock_subdraw_id` int NULL
ALTER TABLE stock_subdraw ADD `total_price` double(15,3) NULL
ALTER TABLE stock_subdraw ADD `item_count` int NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_complete` char(1) NULL
ALTER TABLE stock_subdraw ADD `warehouse_id` int NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_approve` char(1) NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_approve_name` varchar(100) NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_officer_name` varchar(100) NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_request_date` date NULL
ALTER TABLE stock_subdraw ADD `department_id` int NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_no` varchar(50) NULL
ALTER TABLE stock_subdraw ADD `stock_subdraw_date` date NULL
ALTER TABLE stock_snapshot_detail ADD `avg_unit_cost` double(15,5) NULL
ALTER TABLE stock_return_cutpay_list ADD `stock_return_cutpay_unit_qty` int NULL
ALTER TABLE stock_return_cutpay_list ADD `stock_cutpay_list_id` int NOT NULL
ALTER TABLE stock_return_cutpay_list ADD `stock_return_cutpay_qty` int NOT NULL
ALTER TABLE stock_return_cutpay_list ADD `item_list_id` int NOT NULL
ALTER TABLE stock_return_cutpay_list ADD `stock_return_cutpay_id` int NOT NULL
ALTER TABLE stock_return_cutpay ADD `cutpay_id` int NULL
ALTER TABLE stock_return_cutpay ADD `stock_return_cutpay_no` varchar(20) NULL
ALTER TABLE stock_return_cutpay ADD `remark` varchar(250) NULL
ALTER TABLE stock_return_cutpay ADD `department_id` int NOT NULL
ALTER TABLE stock_return_cutpay ADD `stock_return_cutpay_date` date NULL
ALTER TABLE stock_return ADD `stock_return_no` varchar(20) NULL
ALTER TABLE stock_request_list ADD `remark` varchar(250) NULL
ALTER TABLE stock_request_list ADD `supplier_id` int NULL
ALTER TABLE stock_request ADD `use_date` date NULL
ALTER TABLE stock_proviso_item ADD `supplier_item_id` int NULL
ALTER TABLE stock_proviso_item ADD `item_id` int NULL
ALTER TABLE stock_po_detail ADD `reference_id` int NULL
ALTER TABLE stock_po_detail ADD `stock_deliver_qty` int NULL
ALTER TABLE stock_po_detail ADD `cancel_reason` varchar(100) NULL
ALTER TABLE stock_po_detail ADD `stock_po_before_discount_price` double(15,5) NULL
ALTER TABLE stock_po ADD `reference_id` int NULL
ALTER TABLE stock_po ADD `note` text NULL
ALTER TABLE stock_item_list ADD `stock_po_id` int NULL
ALTER TABLE stock_item_list ADD `item_qty` int NULL
ALTER TABLE stock_item_list ADD `icode` varchar(7) NULL
ALTER TABLE stock_item_list ADD `item_unitqty` int NULL
ALTER TABLE stock_item_list ADD `item_price` double(15,5) NULL
ALTER TABLE stock_item_list ADD `warehouse_id` int NULL
ALTER TABLE stock_expire ADD `inv_name` varchar(200) NULL
ALTER TABLE stock_expire ADD `item_expire` date NULL
ALTER TABLE stock_expire ADD `inv_no` varchar(50) NULL
ALTER TABLE stock_expire ADD `price` double(15,3) NULL
ALTER TABLE stock_expire ADD `item_left_qty` int NULL
ALTER TABLE stock_expire ADD `location_id` int NULL
ALTER TABLE stock_expire ADD `stock_type` char(1) NULL
ALTER TABLE stock_expire ADD `item_lotno` varchar(50) NULL
ALTER TABLE stock_expire ADD `item_id` int NULL
ALTER TABLE stock_expire ADD `transaction_date` date NULL
ALTER TABLE stock_draw_list ADD `last_activity` datetime NULL
ALTER TABLE stock_draw ADD `stock_subdraw_id` int NULL
ALTER TABLE stock_department_route ADD `icode` char(7) NULL
ALTER TABLE stock_department_route ADD `route_to_department_id` int NOT NULL
ALTER TABLE stock_department_route ADD `department_id` int NOT NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_unitqty` int NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_left_qty` int NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_price` double(15,3) NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_unitcost` double(15,5) NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_qty` int NULL
ALTER TABLE stock_cutpay_list ADD `item_list_id` int NULL
ALTER TABLE stock_cutpay_list ADD `stock_cutpay_id` int NOT NULL
ALTER TABLE stock_cutpay ADD `reference_id` int NULL
ALTER TABLE stock_cutpay ADD `cutpay_type_id` int NULL
ALTER TABLE stock_cutpay ADD `stock_cutpay_officer_name` varchar(100) NULL
ALTER TABLE stock_cutpay ADD `stock_cutpay_no` varchar(50) NULL
ALTER TABLE stock_cutpay ADD `stock_cutpay_date` date NULL
ALTER TABLE stock_cutpay ADD `stock_cutpay_id` int NOT NULL
ALTER TABLE stock_borrow ADD `stock_borrow_no` varchar(100) NULL
ALTER TABLE opduser ADD `real_staff` char(1) NULL
CREATE TABLE stock_subdraw_list ( `stock_subdraw_list_id` int NOT NULL )
CREATE TABLE stock_subdraw ( `stock_subdraw_id` int NOT NULL )
CREATE TABLE stock_return_cutpay_list ( `stock_return_cutpay_list_id` int NOT NULL )
CREATE TABLE stock_return_cutpay ( `stock_return_cutpay_id` int NOT NULL )
CREATE TABLE stock_expire ( `stock_expire_id` int NOT NULL )
CREATE TABLE stock_department_route ( `stock_department_route_id` int NOT NULL )
CREATE TABLE stock_cutpay_list ( `stock_cutpay_list_id` int NOT NULL )
Checking structure phase 1