Files
opensourcepos/database/2.3.1_to_2.3.2.sql
2015-02-04 13:27:09 +01:00

20 lines
747 B
SQL

INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('barcode_content', 'id'),
('barcode_first_row', 'category'),
('barcode_second_row', 'item_code'),
('barcode_third_row', 'cost_price'),
('barcode_num_in_row', '2'),
('barcode_page_width', '100'),
('barcode_page_cellspacing', '20');
INSERT INTO `ospos_permissions` (permission_id, module_id, location_id)
(SELECT CONCAT('sales_', location_name), 'sales', location_id FROM ospos_stock_locations);
INSERT INTO `ospos_permissions` (permission_id, module_id, location_id)
(SELECT CONCAT('receivings_', location_name), 'receivings', location_id FROM ospos_stock_locations);
-- add item_pic column to items table
ALTER TABLE `ospos_items`
ADD COLUMN `item_pic` int(10) DEFAULT NULL;