Skip to content

Commit

Permalink
Merge pull request #83 from leon-mbs/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
leon-mbs authored May 18, 2020
2 parents 47045ac + 8d216b5 commit fad3d33
Show file tree
Hide file tree
Showing 86 changed files with 4,038 additions and 236 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
CHANGELOG
=========

### v4.2.0 (2020-05-16)
* Отчет Движение денег по контрагентам
* Перемещение товара между складами
* Исправлен журнал Взаиморасчеты с контрагентами
* Исправления в онлайн каталоге
Для обновления нужно выполнить скрипт db/update412to420.sql



### v4.1.2 (2020-04-28)
* Добавлено поле Бренд для товара
* Исправоения и улучшения
* Исправления и улучшения


### v4.1.1 (2020-04-15)
Expand Down
43 changes: 23 additions & 20 deletions db/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ CREATE TABLE `docstatelog` (
`hostname` varchar(64) NOT NULL,
PRIMARY KEY (`log_id`),
KEY `document_id` (`document_id`)
) AUTO_INCREMENT=897 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=978 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `docstatelog_view`;
/*!50001 DROP VIEW IF EXISTS `docstatelog_view`*/;
Expand Down Expand Up @@ -103,7 +103,7 @@ CREATE TABLE `documents` (
KEY `customer_id` (`customer_id`),
KEY `user_id` (`user_id`),
KEY `branch_id` (`branch_id`)
) AUTO_INCREMENT=234 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=258 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `documents_view`;
/*!50001 DROP VIEW IF EXISTS `documents_view`*/;
Expand Down Expand Up @@ -157,7 +157,7 @@ CREATE TABLE `entrylist` (
PRIMARY KEY (`entry_id`),
KEY `document_id` (`document_id`),
KEY `stock_id` (`stock_id`)
) AUTO_INCREMENT=695 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=730 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
Expand Down Expand Up @@ -278,7 +278,7 @@ CREATE TABLE `files` (
`mime` varchar(16) DEFAULT NULL,
PRIMARY KEY (`file_id`),
KEY `item_id` (`item_id`)
) AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `filesdata`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand All @@ -298,7 +298,7 @@ CREATE TABLE `images` (
`mime` varchar(16) DEFAULT NULL,
`thumb` longblob,
PRIMARY KEY (`image_id`)
) AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=46 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `issue_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand All @@ -311,7 +311,7 @@ CREATE TABLE `issue_history` (
`user_id` int(11) NOT NULL,
PRIMARY KEY (`hist_id`),
KEY `issue_id` (`issue_id`)
) AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `issue_issuelist`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand All @@ -328,7 +328,7 @@ CREATE TABLE `issue_issuelist` (
PRIMARY KEY (`issue_id`),
KEY `project_id` (`project_id`),
KEY `user_id` (`user_id`)
) AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `issue_issuelist_view`;
/*!50001 DROP VIEW IF EXISTS `issue_issuelist_view`*/;
Expand Down Expand Up @@ -356,7 +356,7 @@ CREATE TABLE `issue_projectlist` (
`customer_id` int(11) DEFAULT NULL,
`status` smallint(6) DEFAULT NULL,
PRIMARY KEY (`project_id`)
) AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `issue_projectlist_view`;
/*!50001 DROP VIEW IF EXISTS `issue_projectlist_view`*/;
Expand Down Expand Up @@ -455,7 +455,7 @@ CREATE TABLE `items` (
KEY `item_code` (`item_code`),
KEY `itemname` (`itemname`),
KEY `cat_id` (`cat_id`)
) AUTO_INCREMENT=482 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=504 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `items_view`;
/*!50001 DROP VIEW IF EXISTS `items_view`*/;
Expand Down Expand Up @@ -487,7 +487,7 @@ CREATE TABLE `messages` (
`item_type` int(11) DEFAULT NULL,
PRIMARY KEY (`message_id`),
KEY `item_id` (`item_id`)
) AUTO_INCREMENT=29 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=33 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `messages_view`;
/*!50001 DROP VIEW IF EXISTS `messages_view`*/;
Expand All @@ -513,7 +513,7 @@ CREATE TABLE `metadata` (
`menugroup` varchar(255) DEFAULT NULL,
`disabled` tinyint(4) NOT NULL,
PRIMARY KEY (`meta_id`)
) AUTO_INCREMENT=78 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=79 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `mfund`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand Down Expand Up @@ -621,7 +621,7 @@ CREATE TABLE `notifies` (
`sender_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`notify_id`),
KEY `user_id` (`user_id`)
) AUTO_INCREMENT=47 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `options`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand Down Expand Up @@ -655,7 +655,7 @@ CREATE TABLE `paylist` (
`paytype` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`pl_id`),
KEY `document_id` (`document_id`)
) AUTO_INCREMENT=230 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=243 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `paylist_view`;
/*!50001 DROP VIEW IF EXISTS `paylist_view`*/;
Expand All @@ -672,7 +672,9 @@ SET character_set_client = utf8;
1 AS `paytype`,
1 AS `document_number`,
1 AS `username`,
1 AS `mf_name`*/;
1 AS `mf_name`,
1 AS `customer_id`,
1 AS `customer_name`*/;
SET character_set_client = @saved_cs_client;
DROP TABLE IF EXISTS `poslist`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
Expand Down Expand Up @@ -780,7 +782,7 @@ CREATE TABLE `shop_productgroups` (
`mpath` varchar(1024) DEFAULT NULL,
`image_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`group_id`)
) AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `shop_productgroups_view`;
/*!50001 DROP VIEW IF EXISTS `shop_productgroups_view`*/;
Expand Down Expand Up @@ -814,7 +816,7 @@ CREATE TABLE `shop_products` (
`comments` int(11) DEFAULT '0',
PRIMARY KEY (`product_id`),
KEY `group_id` (`group_id`)
) AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `shop_products_view`;
/*!50001 DROP VIEW IF EXISTS `shop_products_view`*/;
Expand All @@ -833,6 +835,7 @@ SET character_set_client = utf8;
1 AS `created`,
1 AS `detail`,
1 AS `rating`,
1 AS `item_code`,
1 AS `novelty`,
1 AS `comments`,
1 AS `groupname`,
Expand All @@ -852,7 +855,7 @@ CREATE TABLE `store_stock` (
`sdate` date DEFAULT NULL,
PRIMARY KEY (`stock_id`),
KEY `item_id` (`item_id`)
) AUTO_INCREMENT=538 DEFAULT CHARSET=utf8;
) AUTO_INCREMENT=566 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
DROP TABLE IF EXISTS `store_stock_view`;
/*!50001 DROP VIEW IF EXISTS `store_stock_view`*/;
Expand Down Expand Up @@ -953,7 +956,7 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET collation_connection = latin1_swedish_ci */;
/*!50001 CREATE */
/*!50013 */
/*!50001 VIEW `documents_view` AS select `d`.`document_id` AS `document_id`,`d`.`document_number` AS `document_number`,`d`.`document_date` AS `document_date`,`d`.`user_id` AS `user_id`,`d`.`content` AS `content`,`d`.`amount` AS `amount`,`d`.`meta_id` AS `meta_id`,`u`.`username` AS `username`,`c`.`customer_id` AS `customer_id`,`c`.`customer_name` AS `customer_name`,`d`.`state` AS `state`,`d`.`notes` AS `notes`,`d`.`payamount` AS `payamount`,`d`.`payed` AS `payed`,`d`.`parent_id` AS `parent_id`,`d`.`branch_id` AS `branch_id`,`b`.`branch_name` AS `branch_name`,`metadata`.`meta_name` AS `meta_name`,`metadata`.`description` AS `meta_desc` from ((((`documents` `d` join `users_view` `u` on((`d`.`user_id` = `u`.`user_id`))) left join `customers` `c` on((`d`.`customer_id` = `c`.`customer_id`))) join `metadata` on((`metadata`.`meta_id` = `d`.`meta_id`))) left join `branches` `b` on((`d`.`branch_id` = `b`.`branch_id`))) */;
/*!50001 VIEW `documents_view` AS select `d`.`document_id` AS `document_id`,`d`.`document_number` AS `document_number`,`d`.`document_date` AS `document_date`,`d`.`user_id` AS `user_id`,`d`.`content` AS `content`,`d`.`amount` AS `amount`,`d`.`meta_id` AS `meta_id`,`u`.`username` AS `username`,`c`.`customer_id` AS `customer_id`,`c`.`customer_name` AS `customer_name`,`d`.`state` AS `state`,`d`.`notes` AS `notes`,`d`.`payamount` AS `payamount`,`d`.`payed` AS `payed`,`d`.`parent_id` AS `parent_id`,`d`.`branch_id` AS `branch_id`,`b`.`branch_name` AS `branch_name`,`metadata`.`meta_name` AS `meta_name`,`metadata`.`description` AS `meta_desc` from ((((`documents` `d` left join `users_view` `u` on((`d`.`user_id` = `u`.`user_id`))) left join `customers` `c` on((`d`.`customer_id` = `c`.`customer_id`))) join `metadata` on((`metadata`.`meta_id` = `d`.`meta_id`))) left join `branches` `b` on((`d`.`branch_id` = `b`.`branch_id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
Expand Down Expand Up @@ -1109,7 +1112,7 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET collation_connection = latin1_swedish_ci */;
/*!50001 CREATE */
/*!50013 */
/*!50001 VIEW `paylist_view` AS select `pl`.`pl_id` AS `pl_id`,`pl`.`document_id` AS `document_id`,`pl`.`amount` AS `amount`,`pl`.`mf_id` AS `mf_id`,`pl`.`notes` AS `notes`,`pl`.`user_id` AS `user_id`,`pl`.`paydate` AS `paydate`,`pl`.`paytype` AS `paytype`,`d`.`document_number` AS `document_number`,`u`.`username` AS `username`,`m`.`mf_name` AS `mf_name` from (((`paylist` `pl` join `documents_view` `d` on((`pl`.`document_id` = `d`.`document_id`))) join `users_view` `u` on((`pl`.`user_id` = `u`.`user_id`))) left join `mfund` `m` on((`pl`.`mf_id` = `m`.`mf_id`))) */;
/*!50001 VIEW `paylist_view` AS select `pl`.`pl_id` AS `pl_id`,`pl`.`document_id` AS `document_id`,`pl`.`amount` AS `amount`,`pl`.`mf_id` AS `mf_id`,`pl`.`notes` AS `notes`,`pl`.`user_id` AS `user_id`,`pl`.`paydate` AS `paydate`,`pl`.`paytype` AS `paytype`,`d`.`document_number` AS `document_number`,`u`.`username` AS `username`,`m`.`mf_name` AS `mf_name`,`d`.`customer_id` AS `customer_id`,`d`.`customer_name` AS `customer_name` from (((`paylist` `pl` join `documents_view` `d` on((`pl`.`document_id` = `d`.`document_id`))) join `users_view` `u` on((`pl`.`user_id` = `u`.`user_id`))) left join `mfund` `m` on((`pl`.`mf_id` = `m`.`mf_id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
Expand Down Expand Up @@ -1148,7 +1151,7 @@ SET character_set_client = @saved_cs_client;
/*!50001 SET collation_connection = latin1_swedish_ci */;
/*!50001 CREATE */
/*!50013 */
/*!50001 VIEW `shop_products_view` AS select `p`.`product_id` AS `product_id`,`p`.`group_id` AS `group_id`,`p`.`productname` AS `productname`,`p`.`manufacturer_id` AS `manufacturer_id`,`p`.`price` AS `price`,`p`.`sold` AS `sold`,`p`.`deleted` AS `deleted`,`p`.`sef` AS `sef`,`p`.`item_id` AS `item_id`,`p`.`created` AS `created`,`p`.`detail` AS `detail`,`p`.`rating` AS `rating`,(case when (`p`.`created` > (now() - interval 1 month)) then 1 else 0 end) AS `novelty`,`p`.`comments` AS `comments`,`g`.`groupname` AS `groupname`,`m`.`manufacturername` AS `manufacturername`,0 AS `qty` from (((`shop_products` `p` join `shop_productgroups` `g` on((`p`.`group_id` = `g`.`group_id`))) left join `shop_manufacturers` `m` on((`p`.`manufacturer_id` = `m`.`manufacturer_id`))) join `items_view` `i` on((`p`.`item_id` = `i`.`item_id`))) */;
/*!50001 VIEW `shop_products_view` AS select `p`.`product_id` AS `product_id`,`p`.`group_id` AS `group_id`,`p`.`productname` AS `productname`,`p`.`manufacturer_id` AS `manufacturer_id`,`p`.`price` AS `price`,`p`.`sold` AS `sold`,`p`.`deleted` AS `deleted`,`p`.`sef` AS `sef`,`p`.`item_id` AS `item_id`,`p`.`created` AS `created`,`p`.`detail` AS `detail`,`p`.`rating` AS `rating`,`i`.`item_code` AS `item_code`,(case when (`p`.`created` > (now() - interval 1 month)) then 1 else 0 end) AS `novelty`,`p`.`comments` AS `comments`,`g`.`groupname` AS `groupname`,`m`.`manufacturername` AS `manufacturername`,0 AS `qty` from (((`shop_products` `p` join `shop_productgroups` `g` on((`p`.`group_id` = `g`.`group_id`))) left join `shop_manufacturers` `m` on((`p`.`manufacturer_id` = `m`.`manufacturer_id`))) join `items` `i` on((`p`.`item_id` = `i`.`item_id`))) */;
/*!50001 SET character_set_client = @saved_cs_client */;
/*!50001 SET character_set_results = @saved_cs_results */;
/*!50001 SET collation_connection = @saved_col_connection */;
Expand Down
1 change: 1 addition & 0 deletions db/initdata.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `men
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(71, 3, 'Товары на складе', 'ItemList', 'Склад', 0);
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(76, 1, 'Выплата зарплаты', 'OutSalary', 'Платежи', 0);
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(77, 2, 'Отчет по зарплате', 'SalaryRep', 'Платежи', 0);
INSERT INTO `metadata` ( `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES( 2, 'Движение по контрагентам', 'CustActivity', 'Платежи', 0);
1 change: 1 addition & 0 deletions db/initdata_ua.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `men
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(75, 5, 'Експорт', 'Export', '', 0);
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(76, 1, 'Виплата зарплати', 'OutSalary', 'Платежі', 0);
INSERT INTO `metadata` (`meta_id`, `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES(77, 2, 'Звіт по зарплаті', 'SalaryRep', 'Платежі', 0);
INSERT INTO `metadata` ( `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES( 2, 'Рух по контрагентах', 'CustActivity', 'Платежі', 0);
45 changes: 45 additions & 0 deletions db/update411to412.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

ALTER TABLE `items` ADD `manufacturer` VARCHAR(255) NULL ;


ALTER VIEW `items_view` AS
select
`items`.`item_id` AS `item_id`,
`items`.`itemname` AS `itemname`,
`items`.`description` AS `description`,
`items`.`detail` AS `detail`,
`items`.`item_code` AS `item_code`,
`items`.`bar_code` AS `bar_code`,
`items`.`cat_id` AS `cat_id`,
`items`.`msr` AS `msr`,
`items`.`disabled` AS `disabled`,
`items`.`minqty` AS `minqty`,
`items`.`manufacturer` AS `manufacturer`,
`item_cat`.`cat_name` AS `cat_name`
from
(`items` left join `item_cat` on((`items`.`cat_id` = `item_cat`.`cat_id`)));


ALTER VIEW `documents_view` AS
select
`d`.`document_id` AS `document_id`,
`d`.`document_number` AS `document_number`,
`d`.`document_date` AS `document_date`,
`d`.`user_id` AS `user_id`,
`d`.`content` AS `content`,
`d`.`amount` AS `amount`,
`d`.`meta_id` AS `meta_id`,
`u`.`username` AS `username`,
`c`.`customer_id` AS `customer_id`,
`c`.`customer_name` AS `customer_name`,
`d`.`state` AS `state`,
`d`.`notes` AS `notes`,
`d`.`payamount` AS `payamount`,
`d`.`payed` AS `payed`,
`d`.`parent_id` AS `parent_id`,
`d`.`branch_id` AS `branch_id`,
`b`.`branch_name` AS `branch_name`,
`metadata`.`meta_name` AS `meta_name`,
`metadata`.`description` AS `meta_desc`
from
((((`documents` `d` left join `users_view` `u` on((`d`.`user_id` = `u`.`user_id`))) left join `customers` `c` on((`d`.`customer_id` = `c`.`customer_id`))) join `metadata` on((`metadata`.`meta_id` = `d`.`meta_id`))) left join `branches` `b` on((`d`.`branch_id` = `b`.`branch_id`)));
22 changes: 0 additions & 22 deletions db/update412.sql

This file was deleted.

45 changes: 45 additions & 0 deletions db/update412to420.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
INSERT INTO `metadata` ( `meta_type`, `description`, `meta_name`, `menugroup`, `disabled`) VALUES( 2, 'Движение по контрагентам', 'CustActivity', 'Платежи', 0);


ALTER VIEW `paylist_view` AS
select
`pl`.`pl_id` AS `pl_id`,
`pl`.`document_id` AS `document_id`,
`pl`.`amount` AS `amount`,
`pl`.`mf_id` AS `mf_id`,
`pl`.`notes` AS `notes`,
`pl`.`user_id` AS `user_id`,
`pl`.`paydate` AS `paydate`,
`pl`.`paytype` AS `paytype`,
`d`.`document_number` AS `document_number`,
`u`.`username` AS `username`,
`m`.`mf_name` AS `mf_name`,
`d`.`customer_id` AS `customer_id`,
`d`.`customer_name` AS `customer_name`
from
(((`paylist` `pl` join `documents_view` `d` on((`pl`.`document_id` = `d`.`document_id`))) join `users_view` `u` on((`pl`.`user_id` = `u`.`user_id`))) left join `mfund` `m` on((`pl`.`mf_id` = `m`.`mf_id`)));

ALTER VIEW `shop_products_view` AS
select
`p`.`product_id` AS `product_id`,
`p`.`group_id` AS `group_id`,
`p`.`productname` AS `productname`,
`p`.`manufacturer_id` AS `manufacturer_id`,
`p`.`price` AS `price`,
`p`.`sold` AS `sold`,
`p`.`deleted` AS `deleted`,
`p`.`sef` AS `sef`,
`p`.`item_id` AS `item_id`,
`p`.`created` AS `created`,
`p`.`detail` AS `detail`,
`p`.`rating` AS `rating`,
`i`.`item_code` AS `item_code`,
(case when (`p`.`created` > (now() - interval 1 month)) then 1 else 0 end) AS `novelty`,
`p`.`comments` AS `comments`,
`g`.`groupname` AS `groupname`,
`m`.`manufacturername` AS `manufacturername`,
0 AS `qty`
from
(((`shop_products` `p` join `shop_productgroups` `g` on((`p`.`group_id` = `g`.`group_id`))) left join `shop_manufacturers` `m` on((`p`.`manufacturer_id` = `m`.`manufacturer_id`))) join `items` `i` on((`p`.`item_id` = `i`.`item_id`)));


Loading

0 comments on commit fad3d33

Please sign in to comment.