// Bugs fix (Collection, SQL optimizations, Backoffice interfaces improvement, ...) + update db_settings_extends.sql for base datas relative to available quantities and suppliers

This commit is contained in:
dSevere
2011-12-06 18:07:06 +00:00
parent 112540fa9f
commit 4b4d43d69f
8 changed files with 136 additions and 73 deletions

View File

@@ -365,11 +365,41 @@ INSERT INTO `PREFIX_product` (`id_product`, `indexed`, `id_supplier`, `id_manufa
(8, 1, 0, 0, 1, 3, 0, 1, '0', 0.00, 0, 25.041806, 0.000000, '', NULL, 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00'),
(9, 1, 2, 2, 1, 3, 0, 1, '0', 0.00, 0, 124.581940, 0.000000, '', NULL, 0, 2, 0, 0, 0, 0, 1, NOW(), NOW(), '0000-00-00');
INSERT INTO `PREFIX_product_supplier` (`id_product_supplier`, `id_product`, `id_product_attribute`, `id_supplier`, `product_supplier_reference`, `product_supplier_price_te`, `id_currency`) VALUES
(1, 1, 0, 1, '', '0.000000', 1),
(2, 2, 0, 1, '', '0.000000', 1),
(3, 6, 0, 1, '', '0.000000', 1),
(4, 7, 0, 1, '', '0.000000', 1);
INSERT INTO `ps_product_supplier` (`id_product_supplier`, `id_product`, `id_product_attribute`, `id_supplier`, `product_supplier_reference`, `product_supplier_price_te`, `id_currency`) VALUES
(1, 1, 0, 1, '', '0.000000', 0),
(2, 1, 25, 1, '', '0.000000', 0),
(3, 1, 26, 1, '', '0.000000', 0),
(4, 1, 27, 1, '', '0.000000', 0),
(5, 1, 28, 1, '', '0.000000', 0),
(6, 1, 29, 1, '', '0.000000', 0),
(7, 1, 30, 1, '', '0.000000', 0),
(8, 1, 31, 1, '', '0.000000', 0),
(9, 1, 32, 1, '', '0.000000', 0),
(10, 1, 33, 1, '', '0.000000', 0),
(11, 1, 34, 1, '', '0.000000', 0),
(12, 1, 35, 1, '', '0.000000', 0),
(13, 1, 36, 1, '', '0.000000', 0),
(14, 1, 39, 1, '', '0.000000', 0),
(15, 1, 40, 1, '', '0.000000', 0),
(16, 1, 41, 1, '', '0.000000', 0),
(17, 1, 42, 1, '', '0.000000', 0),
(18, 5, 0, 1, '', '0.000000', 0),
(19, 5, 12, 1, '', '0.000000', 0),
(20, 5, 13, 1, '', '0.000000', 0),
(21, 5, 14, 1, '', '0.000000', 0),
(22, 5, 15, 1, '', '0.000000', 0),
(23, 8, 0, 1, '', '0.000000', 0),
(24, 2, 0, 1, '', '0.000000', 0),
(25, 2, 7, 1, '', '0.000000', 0),
(26, 2, 8, 1, '', '0.000000', 0),
(27, 2, 9, 1, '', '0.000000', 0),
(28, 2, 10, 1, '', '0.000000', 0),
(30, 6, 0, 1, '', '0.000000', 0),
(31, 7, 0, 1, '', '0.000000', 0),
(32, 7, 19, 1, '', '0.000000', 0),
(33, 7, 22, 1, '', '0.000000', 0),
(34, 7, 23, 1, '', '0.000000', 0),
(35, 9, 0, 2, '', '0.000000', 0);
INSERT INTO `PREFIX_product_shop` (`id_product`, `id_shop`) (SELECT `id_product`, 1 FROM `PREFIX_product`);
@@ -1480,37 +1510,41 @@ INSERT INTO `PREFIX_module_group` (`id_group`, `id_module`) VALUES
("3", "54"),
("3", "55");
INSERT INTO `PREFIX_stock_available` (`id_stock_available`, `id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`) VALUES
(1, 2, 7, 1, 1, 10, 0, 2),
(2, 2, 8, 1, 1, 20, 0, 2),
(3, 2, 9, 1, 1, 30, 0, 2),
(4, 2, 10, 1, 1, 40, 0, 2),
(5, 5, 12, 1, 1, 100, 0, 2),
(6, 5, 13, 1, 1, 99, 0, 2),
(7, 5, 14, 1, 1, 50, 0, 2),
(8, 5, 15, 1, 1, 25, 0, 2),
(9, 7, 19, 1, 1, 50, 0, 2),
(10, 7, 22, 1, 1, 60, 0, 2),
(11, 7, 23, 1, 1, 70, 0, 2),
(12, 1, 25, 1, 1, 50, 0, 2),
(13, 1, 26, 1, 1, 50, 0, 2),
(14, 1, 27, 1, 1, 50, 0, 2),
(15, 1, 28, 1, 1, 50, 0, 2),
(16, 1, 29, 1, 1, 50, 0, 2),
(17, 1, 30, 1, 1, 50, 0, 2),
(18, 1, 31, 1, 1, 50, 0, 2),
(19, 1, 32, 1, 1, 50, 0, 2),
(20, 1, 33, 1, 1, 50, 0, 2),
(21, 1, 34, 1, 1, 50, 0, 2),
(22, 1, 35, 1, 1, 50, 0, 2),
(23, 1, 36, 1, 1, 50, 0, 2),
(24, 1, 39, 1, 1, 50, 0, 2),
(25, 1, 40, 1, 1, 50, 0, 2),
(26, 1, 41, 1, 1, 50, 0, 2),
(27, 1, 42, 1, 1, 50, 0, 2),
(28, 6, 0, 1, 4, 1, 0, 2),
(29, 8, 0, 1, 8, 1, 0, 2),
(30, 9, 0, 1, 15, 1, 0, 2);
INSERT INTO `ps_stock_available` (`id_stock_available`, `id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`) VALUES
(1, 1, 25, 1, 0, 10, 0, 0),
(2, 1, 0, 1, 0, 160, 0, 0),
(3, 1, 26, 1, 0, 10, 0, 0),
(4, 1, 27, 1, 0, 10, 0, 0),
(5, 1, 28, 1, 0, 10, 0, 0),
(6, 1, 29, 1, 0, 10, 0, 0),
(7, 1, 30, 1, 0, 10, 0, 0),
(8, 1, 31, 1, 0, 10, 0, 0),
(9, 1, 32, 1, 0, 10, 0, 0),
(10, 1, 33, 1, 0, 10, 0, 0),
(11, 1, 34, 1, 0, 10, 0, 0),
(12, 1, 35, 1, 0, 10, 0, 0),
(13, 1, 36, 1, 0, 10, 0, 0),
(14, 1, 39, 1, 0, 10, 0, 0),
(15, 1, 40, 1, 0, 10, 0, 0),
(16, 1, 41, 1, 0, 10, 0, 0),
(17, 1, 42, 1, 0, 10, 0, 0),
(18, 5, 12, 1, 0, 100, 0, 0),
(19, 5, 0, 1, 0, 400, 0, 0),
(20, 5, 13, 1, 0, 100, 0, 0),
(21, 5, 14, 1, 0, 100, 0, 0),
(22, 5, 15, 1, 0, 100, 0, 0),
(23, 8, 0, 1, 0, 25, 0, 0),
(24, 2, 7, 1, 0, 30, 0, 0),
(25, 2, 0, 1, 0, 120, 0, 0),
(26, 2, 8, 1, 0, 30, 0, 0),
(27, 2, 9, 1, 0, 30, 0, 0),
(28, 2, 10, 1, 0, 30, 0, 0),
(29, 9, 0, 1, 0, 15, 0, 0),
(30, 6, 0, 1, 0, 75, 0, 0),
(31, 7, 19, 1, 0, 40, 0, 0),
(32, 7, 0, 1, 0, 120, 0, 0),
(33, 7, 22, 1, 0, 40, 0, 0),
(34, 7, 23, 1, 0, 40, 0, 0);
INSERT INTO `PREFIX_order_carrier` (`id_order`, `id_carrier`, `date_add`) VALUES
(1, 2, NOW());