| 13:55:15.338 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 13:55:15.338 | trace | yii\base\Module::getModule | Loading module: debug |
| 13:55:15.339 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 13:55:15.339 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 13:55:15.340 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 13:55:15.340 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.341 | info | time tracing start | 1782194115341052928 |
| 13:55:15.341 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 13:55:15.341 | trace | yii\web\Application::handleRequest | Route requested: 'vue/sales-contract/list' |
| 13:55:15.341 | trace | yii\base\Module::getModule | Loading module: vue |
| 13:55:15.342 | info | yii\web\Session::open | Session started |
| 13:55:15.343 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 13:55:15.343 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 13:55:15.345 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.346 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:55:15.346 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 13:55:15.347 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.348 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:55:15.348 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 13:55:15.349 | trace | yii\base\Controller::runAction | Route to run: vue/sales-contract/list |
| 13:55:15.349 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.351 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 13:55:15.351 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\SalesContractController::actionList() |
| 13:55:15.351 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.352 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:55:15.353 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.355 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.357 | info | yii\db\Command::query | SELECT COUNT(*) FROM (SELECT c.*, abs(c.expire_date - current_date) AS b_date, CASE WHEN c.expire_date IS NULL THEN 1 ELSE 2 END AS passed FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC) "c" |
| 13:55:15.360 | info | yii\db\Command::query | SELECT c.*, abs(c.expire_date - current_date) AS b_date, CASE WHEN c.expire_date IS NULL THEN 1 ELSE 2 END AS passed FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id" ORDER BY "c"."signed_at" DESC, "c"."created_at" DESC LIMIT 20 |
| 13:55:15.363 | info | yii\db\Command::query | SELECT SUM(case when need_analysis = true THEN amount ELSE 0 END) FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id") |
| 13:55:15.366 | info | yii\db\Command::query | SELECT SUM(case when need_analysis = true THEN amount ELSE 0 END) FROM "a57be577deb434"."tbl_sales_contracts" WHERE ("id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id")) AND ("including_tax"=TRUE) |
| 13:55:15.368 | info | yii\db\Command::query | SELECT SUM(erp_settle_amount) FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id") |
| 13:55:15.370 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_invoices" WHERE "contract_id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id") |
| 13:55:15.372 | info | yii\db\Command::query | SELECT SUM(amount) FROM "a57be577deb434"."tbl_sales_contract_invoices" WHERE "contract_id" IN (SELECT "id" FROM "a57be577deb434"."tbl_sales_contracts" WHERE ("id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id")) AND ("including_tax"=TRUE)) |
| 13:55:15.375 | info | yii\db\Command::query | SELECT SUM(total_contact_point - coalesce(paid_contact_point, 0)) FROM "a57be577deb434"."tbl_projects" WHERE "id" IN (SELECT "from_project" FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id" IN (SELECT "c"."id" FROM "a57be577deb434"."tbl_sales_contracts" "c" LEFT JOIN "a57be577deb434"."tbl_clients" "client" ON client.id = c.client_id LEFT JOIN "a57be577deb434"."tbl_projects" "p" ON p.id = c.from_project LEFT JOIN "a57be577deb434"."tbl_sales_contract_invoices" "sci2" ON c.id = sci2.contract_id LEFT JOIN "a57be577deb434"."tbl_sales_group_relationships" "sgr" ON sgr.sales_id = client.sales_rep LEFT JOIN (SELECT sum(amount) as invoice_sum, contract_id FROM "a57be577deb434"."tbl_sales_contract_invoices" GROUP BY "contract_id") "sci" ON sci.contract_id = c.id WHERE (true) AND (("client"."sales_rep" IN (1001, 5049, 5301, 5022, 5209, 5026, 5293, 5309, 5356, 5329, 5299, 5303, 5302, 5332, 5047, 1026, 5096, 5070, 5448, 5420, 1029, 5037, 5087, 1008, 5048, 5043, 5045, 5230, 5031, 5088, 5208, 1003, 5467, 5294, 5357, 5044, 1030, 5076, 5300, 5027, 5089, 5311, 5066, 5069, 5364, 1009, 5295, 1013, 5128, 5203, 1025, 5032, 5075, 5476, 1004, 5072, 5033, 5359, 5412, 5409, 5229, 1005, 5304, 5449, 5358, 1006, 5093)) OR ("client"."sales_rep" IS NULL) OR ("client"."id" IN (SELECT "client_id" FROM "a57be577deb434"."tbl_user_visit_clients" WHERE "user_id"=1001))) AND ("c"."including_tax"=FALSE) AND (from_project is null) AND (build_by_project = true) GROUP BY "c"."id")) |
| 13:55:15.377 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.378 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:55:15.378 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time", "duration") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/sales-contract/list', '{"SalesContractSearch":{"contract_type":"","contract_scan":"","receipt_scan":"","verify_scan":"","is_outbound":"","is_settle":"","is_deliver":"","is_sales_order_ready":"","invoice_status":"","payment_status":"","created_by":"","invoice_from_date_period":"","contact_point_status":"","collected_plan":"","is_verify":"","including_tax":"0"},"Filter":{"name":"signed_at","sort":"DESC"},"page":"1","from_project":"-1","web_access_token":"s1xKbg9e3rlah-dvFsDEWCxiJPk9VpSm"}', '{"code":2000,"result":{"list":[],"count":{"total":"","collected":"","un_collected":0,"invoiced":"","un_invoiced":0,"un_paid_contact_point":""},"can_create":true,"can_progress":true,"pagenation":{"totalcount":0,"thispage":1,"pagesize":20}},"status":1,"msg":[{"name":"success","success":"\u6210\u529f\u83b7\u53d6\u6570\u636e","error":""}],"mod":0,"ip":"221.216.117.25","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko\/20100101 Firefox\/152.0"}', FALSE, '2026-06-23 13:55:15', 37283072) RETURNING "id" |
| 13:55:15.381 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.381 | trace | yii\db\Transaction::begin | Begin transaction |
| 13:55:15.381 | info | yii\db\Command::query | SELECT * FROM "global"."tbl_browser_ua_statistics" "b" WHERE "user_agent"='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:152.0) Gecko/20100101 Firefox/152.0' |
| 13:55:15.382 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 13:55:15.382 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 13:55:15.382 | info | yii\db\Command::execute | UPDATE "global"."tbl_browser_ua_statistics" SET "counter"=300 WHERE "id"=298 |
| 13:55:15.383 | trace | yii\db\Transaction::commit | Commit transaction |
| 13:55:15.384 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |