|
@@ -36,7 +36,7 @@
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
- (select `name` from `user` where id = contacts_id) inchargerName,
|
|
|
|
|
|
+ (select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(SELECT sum(total) from business_product WHERE business_id = id) total
|
|
(SELECT sum(total) from business_product WHERE business_id = id) total
|
|
from business_opportunity
|
|
from business_opportunity
|
|
@@ -100,7 +100,7 @@
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
- (select `name` from `user` where id = contacts_id) inchargerName,
|
|
|
|
|
|
+ (select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(SELECT sum(total) from business_product WHERE business_id = id)
|
|
(SELECT sum(total) from business_product WHERE business_id = id)
|
|
from business_opportunity
|
|
from business_opportunity
|
|
@@ -170,7 +170,7 @@
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select `name` from stage where id = stage_id) stageValue,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select custom_name from custom where id = customer_id) customerName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
(select `name` from contacts where id = contacts_id) contactsName,
|
|
- (select `name` from `user` where id = contacts_id) inchargerName,
|
|
|
|
|
|
+ (select `name` from `user` where id = incharger_id) inchargerName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(select `name` from `user` where id = creator_id) creatorName,
|
|
(SELECT sum(total) from business_product WHERE business_id = id)
|
|
(SELECT sum(total) from business_product WHERE business_id = id)
|
|
from business_opportunity
|
|
from business_opportunity
|