Add support for multi-pack items.

This commit is contained in:
jekkos
2018-06-12 14:06:39 +02:00
committed by Steve Ireland
parent 1026ebb0eb
commit a4e135eb92
29 changed files with 431 additions and 149 deletions

View File

@@ -0,0 +1,15 @@
--
-- Add support for Multi-Package Items
--
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
('multi_pack_enabled', '0');
ALTER TABLE `ospos_items`
ADD COLUMN `qty_per_pack` decimal(15,3) NOT NULL DEFAULT 1,
ADD COLUMN `pack_name` varchar(8) DEFAULT 'Each',
ADD COLUMN `low_sell_item_id` int(10) DEFAULT 0;
UPDATE `ospos_items`
SET `low_sell_item_id` = `item_id`
WHERE `low_sell_item_id` = 0;