| 11:40:57.631 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 11:40:57.631 | trace | yii\base\Module::getModule | Loading module: debug |
| 11:40:57.632 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 11:40:57.632 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 11:40:57.632 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 11:40:57.632 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.632 | trace | yii\base\Module::getModule | Loading module: gii |
| 11:40:57.632 | trace | yii\base\Application::bootstrap | Bootstrap with yii\gii\Module::bootstrap() |
| 11:40:57.632 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 11:40:57.632 | trace | yii\web\Application::handleRequest | Route requested: 'vue/erp-sales-outbound/save-new' |
| 11:40:57.632 | trace | yii\base\Module::getModule | Loading module: vue |
| 11:40:57.633 | info | yii\web\Session::open | Session started |
| 11:40:57.633 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:40:57.633 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 11:40:57.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.638 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.638 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 11:40:57.639 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.640 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.640 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:40:57.641 | trace | yii\base\Controller::runAction | Route to run: vue/erp-sales-outbound/save-new |
| 11:40:57.642 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.643 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 11:40:57.643 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\ErpSalesOutboundController::actionSaveNew() |
| 11:40:57.643 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'id' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.643 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.644 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'client_name' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.644 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesOutboundVerifyRels' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.644 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erp_store_name' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.644 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'erpSalesOutboundProducts' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.644 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\ErpSalesOutbounds'. |
| 11:40:57.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.645 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE ("created_at" >= '2025-12-19 00:00:00') AND ("created_at" <= '2025-12-19 23:59:59') AND ("serial_no" ILIKE '%XSCKD-20251219-%') AND (LENGTH(serial_no) = 20) ORDER BY "serial_no" DESC |
| 11:40:57.646 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "serial_no"='XSCKD-20251219-00001') |
| 11:40:57.647 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"='1001') |
| 11:40:57.648 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"='1661') |
| 11:40:57.649 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"='4048') |
| 11:40:57.649 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_stores" WHERE "id"='1') |
| 11:40:57.650 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 11:40:57.650 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1620') |
| 11:40:57.652 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1980 |
| 11:40:57.653 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774 |
| 11:40:57.653 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1980 |
| 11:40:57.654 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "id"=1981 |
| 11:40:57.654 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2166 |
| 11:40:57.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id"=1981 |
| 11:40:57.655 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=1774 GROUP BY "id" |
| 11:40:57.656 | info | yii\db\Command::query | SELECT "product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=1774 GROUP BY "product_id" |
| 11:40:57.656 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_products" WHERE "id"=2166 GROUP BY "id" |
| 11:40:57.657 | info | yii\db\Command::query | SELECT "product_id", sum(outbound) as outbound, sum(number) as number, sum(inventory) as inventory, avg(actual_amount) as avg_amount, avg(actual_amount * inventory) as avg_total_amount, sum(actual_amount * inventory) as amount FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "product_id"=2166 GROUP BY "product_id" |
| 11:40:57.657 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbounds" ("client_id", "erp_send_type_id", "handler", "project_id", "wrote_date", "serial_no", "abstract", "description", "erp_store_id", "erp_sales_order_id", "created_by", "created_at", "verify_type", "status", "is_resubmitted", "outbound_status") VALUES (1661, NULL, 1001, 4048, '2025-12-19', 'XSCKD-20251219-00001', NULL, NULL, 1, 1620, 1001, 'now()', 2, 1, FALSE, FALSE) RETURNING "id" |
| 11:40:57.662 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.662 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.662 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutbounds', 76, 'a:31:{s:2:"id";i:76;s:9:"serial_no";s:20:"XSCKD-20251219-00001";s:9:"from_date";N;s:10:"wrote_date";s:10:"2025-12-19";s:7:"handler";s:4:"1001";s:18:"erp_sales_order_id";s:4:"1620";s:9:"client_id";s:4:"1661";s:10:"project_id";s:4:"4048";s:12:"erp_store_id";s:1:"1";s:6:"status";i:1;s:16:"erp_send_type_id";s:0:"";s:8:"abstract";N;s:11:"description";N;s:11:"verify_type";s:1:"2";s:16:"next_verify_user";N;s:21:"next_stop_verify_user";N;s:9:"verify_at";N;s:7:"stop_at";N;s:18:"refuse_description";N;s:14:"is_resubmitted";b:0;s:6:"number";N;s:6:"amount";N;s:10:"created_by";i:1001;s:16:"stop_description";N;s:15:"outbound_status";b:0;s:9:"is_settle";N;s:7:"is_used";N;s:10:"created_at";s:19:"1970-01-01 08:00:00";s:10:"updated_at";N;s:11:"print_times";N;s:20:"is_sales_order_ready";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.664 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_type"=20012) AND ("object_id"=76) |
| 11:40:57.666 | info | yii\db\Command::execute | DELETE FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE "erp_sales_outbound_id"=76 |
| 11:40:57.666 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.667 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_sales_outbound_verify_rels'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:40:57.671 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_sales_outbound_verify_rels'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:40:57.679 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.680 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:40:57.680 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" ("erp_sales_outbound_id", "user_id", "status") VALUES (76, 1001, 0), (76, 1000, 0), (76, 5250, 0), (76, 5016, 0), (76, 5064, 0) |
| 11:40:57.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.683 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.684 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (76, 1620, 1980, 1, 1774, '1', '5345', '5345.00', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id" |
| 11:40:57.687 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundProducts', 166, 'a:17:{s:2:"id";i:166;s:21:"erp_sales_outbound_id";i:76;s:18:"erp_sales_order_id";s:4:"1620";s:26:"erp_sales_order_product_id";s:4:"1980";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"1774";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"5345";s:12:"total_amount";s:7:"5345.00";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '223.72.15.22') |
| 11:40:57.689 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.689 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_inventory_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:40:57.693 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_inventory_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:40:57.707 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.708 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:40:57.714 | info | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbounds" "epis" ON epis.id = eip.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbound_projects" "epips" ON epis.id = epips.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_starts" "eiss" ON eiss.id = eip.erp_inventory_start_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "eibs" ON eibs.id = eip.erp_inventory_build_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id WHERE (eip.inventory > 0) AND ("eip"."product_id"='1774') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC |
| 11:40:57.724 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.725 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.725 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='45' WHERE "id"=230 |
| 11:40:57.727 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:9:"inventory";d:45;}', '', 1001, '223.72.15.22') |
| 11:40:57.728 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (76, 166, 230, 1774, '1', '5345', '5345') RETURNING "id" |
| 11:40:57.733 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 220, 'a:12:{s:2:"id";i:220;s:21:"erp_sales_outbound_id";i:76;s:29:"erp_sales_outbound_product_id";i:166;s:24:"erp_inventory_product_id";i:230;s:10:"product_id";s:4:"1774";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"5345";s:12:"total_amount";d:5345;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.734 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_products" ("erp_sales_outbound_id", "erp_sales_order_id", "erp_sales_order_product_id", "erp_store_id", "product_id", "number", "amount", "total_amount", "description", "hardware_from", "hardware_to", "software_from", "software_to", "maintenance_from", "maintenance_to") VALUES (76, 1620, 1981, 1, 2166, '1', '4554', '4554.00', '', NULL, NULL, NULL, NULL, NULL, NULL) RETURNING "id" |
| 11:40:57.735 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundProducts', 167, 'a:17:{s:2:"id";i:167;s:21:"erp_sales_outbound_id";i:76;s:18:"erp_sales_order_id";s:4:"1620";s:26:"erp_sales_order_product_id";s:4:"1981";s:12:"erp_store_id";s:1:"1";s:10:"product_id";s:4:"2166";s:11:"description";s:0:"";s:8:"outbound";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"4554";s:12:"total_amount";s:7:"4554.00";s:13:"hardware_from";s:0:"";s:13:"software_from";s:0:"";s:16:"maintenance_from";s:0:"";s:11:"hardware_to";s:0:"";s:11:"software_to";s:0:"";s:14:"maintenance_to";s:0:"";}', '', 1001, '223.72.15.22') |
| 11:40:57.737 | info | yii\db\Command::query | SELECT eip.* FROM "a57be577deb434"."tbl_erp_inventory_products" "eip" LEFT JOIN "a57be577deb434"."tbl_products" "p" ON eip.product_id = p.id LEFT JOIN "a57be577deb434"."tbl_product_brands" "pb" ON p.product_brand = pb.id LEFT JOIN "a57be577deb434"."tbl_product_types" "pt" ON p.product_type = pt.id LEFT JOIN "a57be577deb434"."tbl_product_series" "ps" ON p.product_serie = ps.id LEFT JOIN "a57be577deb434"."tbl_product_components" "pc" ON p.product_component = pc.id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbounds" "epis" ON epis.id = eip.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_inbound_projects" "epips" ON epis.id = epips.erp_purchase_inbound_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_starts" "eiss" ON eiss.id = eip.erp_inventory_start_id LEFT JOIN "a57be577deb434"."tbl_erp_inventory_builds" "eibs" ON eibs.id = eip.erp_inventory_build_id LEFT JOIN "a57be577deb434"."tbl_erp_purchase_gifts" "epgs" ON epgs.id = eip.erp_purchase_gift_id WHERE (eip.inventory > 0) AND ("eip"."product_id"='2166') GROUP BY "eip"."id" ORDER BY eip.wrote_date ASC, eip.created_at ASC |
| 11:40:57.740 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=227 |
| 11:40:57.741 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:9:"inventory";s:1:"2";}', '', 1001, '223.72.15.22') |
| 11:40:57.742 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_sales_outbound_spent_products" ("erp_sales_outbound_id", "erp_sales_outbound_product_id", "erp_inventory_product_id", "product_id", "number", "amount", "total_amount") VALUES (76, 167, 227, 2166, '1', '4554', '4554') RETURNING "id" |
| 11:40:57.743 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpSalesOutboundSpentProducts', 221, 'a:12:{s:2:"id";i:221;s:21:"erp_sales_outbound_id";i:76;s:29:"erp_sales_outbound_product_id";i:167;s:24:"erp_inventory_product_id";i:227;s:10:"product_id";s:4:"2166";s:11:"description";N;s:6:"number";s:1:"1";s:6:"amount";s:4:"4554";s:12:"total_amount";d:4554;s:13:"cancel_number";N;s:13:"cancel_amount";N;s:19:"cancel_total_amount";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.744 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id" |
| 11:40:57.745 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "amount"='9899', "number"='2', "next_verify_user"=1001 WHERE "id"=76 |
| 11:40:57.746 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOutbounds', 76, 'a:1:{s:6:"amount";d:9899;}', '', 1001, '223.72.15.22') |
| 11:40:57.747 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (230, 227) |
| 11:40:57.748 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.749 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.749 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.750 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.750 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='46' WHERE "id"=230 |
| 11:40:57.751 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:9:"inventory";d:46;}', '', 1001, '223.72.15.22') |
| 11:40:57.753 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178 |
| 11:40:57.756 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.756 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_erp_purchase_inbound_products'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:40:57.761 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_erp_purchase_inbound_products'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:40:57.777 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.778 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:40:57.778 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='46' WHERE "id"=178 |
| 11:40:57.782 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.788 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.789 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91 |
| 11:40:57.791 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.793 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.797 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.806 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.809 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.810 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.810 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.811 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='2' WHERE "id"=227 |
| 11:40:57.815 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:9:"inventory";d:2;}', '', 1001, '223.72.15.22') |
| 11:40:57.819 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172 |
| 11:40:57.820 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='2' WHERE "id"=172 |
| 11:40:57.828 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.838 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88 |
| 11:40:57.839 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.840 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id"=76 |
| 11:40:57.841 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_id"=76 |
| 11:40:57.842 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_outbound_id"=76 |
| 11:40:57.842 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (166, 167) |
| 11:40:57.843 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_id"=76 |
| 11:40:57.843 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=220 |
| 11:40:57.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.844 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.844 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230 |
| 11:40:57.845 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (76, '2025-12-19', 220, 230, '80', '5345', '1', '5345', '1', '80') RETURNING "id" |
| 11:40:57.859 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpInventoryProductSpents', 326, 'a:25:{s:2:"id";i:326;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:230;s:10:"wrote_date";s:10:"2025-12-19";s:13:"actual_amount";s:2:"80";s:19:"actual_total_amount";d:80;s:8:"outbound";d:1;s:6:"amount";s:4:"5345";s:12:"total_amount";d:5345;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";d:1;s:35:"erp_sales_outbound_spent_product_id";i:220;s:21:"erp_sales_outbound_id";i:76;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.860 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=221 |
| 11:40:57.861 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=227 |
| 11:40:57.862 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_erp_inventory_product_spents" ("erp_sales_outbound_id", "wrote_date", "erp_sales_outbound_spent_product_id", "erp_inventory_product_id", "actual_amount", "amount", "outbound", "total_amount", "sales_outbound", "actual_total_amount") VALUES (76, '2025-12-19', 221, 227, '500', '4554', '1', '4554', '1', '500') RETURNING "id" |
| 11:40:57.863 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ErpInventoryProductSpents', 327, 'a:25:{s:2:"id";i:327;s:21:"erp_purchase_order_id";N;s:23:"erp_purchase_inbound_id";N;s:24:"erp_inventory_product_id";i:227;s:10:"wrote_date";s:10:"2025-12-19";s:13:"actual_amount";s:3:"500";s:19:"actual_total_amount";d:500;s:8:"outbound";d:1;s:6:"amount";s:4:"4554";s:12:"total_amount";d:4554;s:13:"lost_outbound";N;s:29:"erp_inventory_lost_product_id";N;s:21:"erp_inventory_lost_id";N;s:22:"erp_inventory_start_id";N;s:22:"erp_inventory_build_id";N;s:20:"build_spent_outbound";N;s:36:"erp_inventory_build_spent_product_id";N;s:28:"erp_inventory_build_spent_id";N;s:14:"sales_outbound";d:1;s:35:"erp_sales_outbound_spent_product_id";i:221;s:21:"erp_sales_outbound_id";i:76;s:20:"erp_purchase_gift_id";N;s:19:"sales_gift_outbound";N;s:31:"erp_sales_gift_spent_product_id";N;s:17:"erp_sales_gift_id";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.864 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_outbounds" SET "is_used"=FALSE WHERE "id"=76 |
| 11:40:57.865 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOutbounds', 76, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.866 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.869 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.869 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_products" SET "updated_at"='now()', "in_out_at"='now()' WHERE "id" IN (1774, 2166) |
| 11:40:57.871 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=230 |
| 11:40:57.871 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.872 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.872 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.872 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.873 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='5', "inventory"='45', "sales_outbound"='5' WHERE "id"=230 |
| 11:40:57.874 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:3:{s:8:"outbound";s:1:"5";s:9:"inventory";d:45;s:14:"sales_outbound";s:1:"5";}', '', 1001, '223.72.15.22') |
| 11:40:57.875 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178 |
| 11:40:57.875 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='45', "sales_outbound"='5' WHERE "id"=178 |
| 11:40:57.877 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:2:{s:9:"inventory";d:45;s:14:"sales_outbound";s:1:"5";}', '', 1001, '223.72.15.22') |
| 11:40:57.878 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91 |
| 11:40:57.879 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.879 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.880 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.881 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 11:40:57.881 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.882 | info | yii\db\Command::query | SELECT
d.nspname AS table_schema,
c.relname AS table_name,
a.attname AS column_name,
t.typname AS data_type,
a.attlen AS character_maximum_length,
pg_catalog.col_description(c.oid, a.attnum) AS column_comment,
a.atttypmod AS modifier,
a.attnotnull = false AS is_nullable,
CAST(pg_get_expr(ad.adbin, ad.adrelid) AS varchar) AS column_default,
coalesce(pg_get_expr(ad.adbin, ad.adrelid) ~ 'nextval',false) AS is_autoinc,
array_to_string((select array_agg(enumlabel) from pg_enum where enumtypid=a.atttypid)::varchar[],',') as enum_values,
CASE atttypid
WHEN 21 /*int2*/ THEN 16
WHEN 23 /*int4*/ THEN 32
WHEN 20 /*int8*/ THEN 64
WHEN 1700 /*numeric*/ THEN
CASE WHEN atttypmod = -1
THEN null
ELSE ((atttypmod - 4) >> 16) & 65535
END
WHEN 700 /*float4*/ THEN 24 /*FLT_MANT_DIG*/
WHEN 701 /*float8*/ THEN 53 /*DBL_MANT_DIG*/
ELSE null
END AS numeric_precision,
CASE
WHEN atttypid IN (21, 23, 20) THEN 0
WHEN atttypid IN (1700) THEN
CASE
WHEN atttypmod = -1 THEN null
ELSE (atttypmod - 4) & 65535
END
ELSE null
END AS numeric_scale,
CAST(
information_schema._pg_char_max_length(information_schema._pg_truetypid(a, t), information_schema._pg_truetypmod(a, t))
AS numeric
) AS size,
a.attnum = any (ct.conkey) as is_pkey
FROM
pg_class c
LEFT JOIN pg_attribute a ON a.attrelid = c.oid
LEFT JOIN pg_attrdef ad ON a.attrelid = ad.adrelid AND a.attnum = ad.adnum
LEFT JOIN pg_type t ON a.atttypid = t.oid
LEFT JOIN pg_namespace d ON d.oid = c.relnamespace
LEFT join pg_constraint ct on ct.conrelid=c.oid and ct.contype='p'
WHERE
a.attnum > 0 and t.typname != ''
and c.relname = 'tbl_settings'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 11:40:57.886 | info | yii\db\Command::query | select
ct.conname as constraint_name,
a.attname as column_name,
fc.relname as foreign_table_name,
fns.nspname as foreign_table_schema,
fa.attname as foreign_column_name
from
(SELECT ct.conname, ct.conrelid, ct.confrelid, ct.conkey, ct.contype, ct.confkey, generate_subscripts(ct.conkey, 1) AS s
FROM pg_constraint ct
) AS ct
inner join pg_class c on c.oid=ct.conrelid
inner join pg_namespace ns on c.relnamespace=ns.oid
inner join pg_attribute a on a.attrelid=ct.conrelid and a.attnum = ct.conkey[ct.s]
left join pg_class fc on fc.oid=ct.confrelid
left join pg_namespace fns on fc.relnamespace=fns.oid
left join pg_attribute fa on fa.attrelid=ct.confrelid and fa.attnum = ct.confkey[ct.s]
where
ct.contype='f'
and c.relname='tbl_settings'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 11:40:57.898 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.898 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 11:40:57.898 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 11:40:57.899 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='3600' WHERE "id"=230 |
| 11:40:57.900 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:1:{s:19:"actual_total_amount";d:3600;}', '', 1001, '223.72.15.22') |
| 11:40:57.901 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id"=227 |
| 11:40:57.902 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.902 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.903 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.903 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.904 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "outbound"='2', "inventory"='1', "sales_outbound"='2' WHERE "id"=227 |
| 11:40:57.905 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.906 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172 |
| 11:40:57.906 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1', "sales_outbound"='2' WHERE "id"=172 |
| 11:40:57.907 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.909 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88 |
| 11:40:57.910 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.910 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.910 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.911 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_cost_type' |
| 11:40:57.911 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_settings" WHERE "setting_key"='erp_decimal_point' |
| 11:40:57.912 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "actual_total_amount"='500' WHERE "id"=227 |
| 11:40:57.913 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:1:{s:19:"actual_total_amount";s:4:"1000";}', '', 1001, '223.72.15.22') |
| 11:40:57.914 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_orders" WHERE "id"='1620' |
| 11:40:57.914 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.915 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.915 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_order_products" WHERE "erp_sales_order_id"=1620 |
| 11:40:57.916 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.916 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.916 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_products" WHERE "erp_sales_order_product_id" IN (1979, 1980, 1981) |
| 11:40:57.917 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbounds" WHERE "id" IN (69, 70, 71, 76) |
| 11:40:57.917 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id" IN (159, 160, 161, 166, 167) |
| 11:40:57.918 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_return_products" WHERE "erp_sales_outbound_spent_product_id" IN (213, 214, 215, 220, 221) |
| 11:40:57.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.919 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.919 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_returns" WHERE "id"=2 |
| 11:40:57.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.920 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.920 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='0' WHERE "id"=1979 |
| 11:40:57.922 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1979, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.923 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_sales_contracts" WHERE "id"=4253 |
| 11:40:57.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.924 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.925 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1979 |
| 11:40:57.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.926 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.926 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1979) AND ("t"."status" IN (2, 5, 1)) |
| 11:40:57.927 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=161 |
| 11:40:57.928 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=215 |
| 11:40:57.928 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_product_rels" SET "total_cost"='0' WHERE "id"=11043 |
| 11:40:57.930 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11043, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.931 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "total_cost"='0' WHERE "id"=1979 |
| 11:40:57.932 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1979, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.933 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1980 |
| 11:40:57.934 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1980, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '223.72.15.22') |
| 11:40:57.935 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1980 |
| 11:40:57.936 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1980) AND ("t"."status" IN (2, 5, 1)) |
| 11:40:57.937 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=166 |
| 11:40:57.937 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=220 |
| 11:40:57.938 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_product_rels" SET "cost"='80', "total_cost"='80' WHERE "id"=11044 |
| 11:40:57.939 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11044, 'a:2:{s:4:"cost";d:80;s:10:"total_cost";d:80;}', '', 1001, '223.72.15.22') |
| 11:40:57.940 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "cost"='80', "total_cost"='80' WHERE "id"=1980 |
| 11:40:57.941 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1980, 'a:2:{s:4:"cost";d:80;s:10:"total_cost";d:80;}', '', 1001, '223.72.15.22') |
| 11:40:57.942 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "outbound"='1' WHERE "id"=1981 |
| 11:40:57.942 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1981, 'a:1:{s:8:"outbound";s:1:"0";}', '', 1001, '223.72.15.22') |
| 11:40:57.943 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_project_product_rels" WHERE "erp_sales_order_product_id"=1981 |
| 11:40:57.944 | info | yii\db\Command::query | SELECT "r".* FROM "a57be577deb434"."tbl_erp_sales_outbound_products" "r" LEFT JOIN "a57be577deb434"."tbl_erp_sales_outbounds" "t" ON r.erp_sales_outbound_id = t.id WHERE ("r"."erp_sales_order_product_id"=1981) AND ("t"."status" IN (2, 5, 1)) |
| 11:40:57.945 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_spent_products" WHERE "erp_sales_outbound_product_id"=167 |
| 11:40:57.945 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_sales_outbound_spent_product_id"=221 |
| 11:40:57.945 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_project_product_rels" SET "cost"='500', "total_cost"='500' WHERE "id"=11045 |
| 11:40:57.946 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ProjectProductRels', 11045, 'a:2:{s:4:"cost";d:500;s:10:"total_cost";d:500;}', '', 1001, '223.72.15.22') |
| 11:40:57.947 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_order_products" SET "cost"='500', "total_cost"='500' WHERE "id"=1981 |
| 11:40:57.948 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrderProducts', 1981, 'a:2:{s:4:"cost";d:500;s:10:"total_cost";d:500;}', '', 1001, '223.72.15.22') |
| 11:40:57.949 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_sales_orders" SET "is_used"=TRUE WHERE "id"=1620 |
| 11:40:57.950 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpSalesOrders', 1620, 'a:1:{s:7:"is_used";b:1;}', '', 1001, '223.72.15.22') |
| 11:40:57.951 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\SalesContracts', 4253, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.952 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_clients" WHERE "id"=1661 |
| 11:40:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.953 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.953 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_projects" WHERE "id"=4048 |
| 11:40:57.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.954 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.954 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_products" WHERE "id" IN (230, 227) |
| 11:40:57.954 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.955 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.955 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.955 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=230 |
| 11:40:57.955 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='45' WHERE "id"=230 |
| 11:40:57.956 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 230, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.957 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=178 |
| 11:40:57.957 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='45' WHERE "id"=178 |
| 11:40:57.958 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 178, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.959 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=91 |
| 11:40:57.960 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.960 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.960 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.960 | info | yii\db\Command::query | SELECT SUM(outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.961 | info | yii\db\Command::query | SELECT SUM(lost_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.961 | info | yii\db\Command::query | SELECT SUM(build_spent_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.961 | info | yii\db\Command::query | SELECT SUM(sales_outbound) FROM "a57be577deb434"."tbl_erp_inventory_product_spents" WHERE "erp_inventory_product_id"=227 |
| 11:40:57.962 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_inventory_products" SET "inventory"='1' WHERE "id"=227 |
| 11:40:57.962 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpInventoryProducts', 227, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.963 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_inbound_products" WHERE "id"=172 |
| 11:40:57.964 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbound_products" SET "inventory"='1' WHERE "id"=172 |
| 11:40:57.964 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('UPDATE', 'app\models\ErpPurchaseInboundProducts', 172, 'a:0:{}', '', 1001, '223.72.15.22') |
| 11:40:57.965 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_erp_purchase_inbounds" SET "is_used"=TRUE WHERE "id"=88 |
| 11:40:57.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_start_products" WHERE 0=1 |
| 11:40:57.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_inventory_build_products" WHERE 0=1 |
| 11:40:57.966 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_purchase_gift_products" WHERE 0=1 |
| 11:40:57.967 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:40:57.967 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id" |
| 11:40:57.968 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_erp_sales_outbound_verify_rels" WHERE ("status"=0) AND ("erp_sales_outbound_id"=76) ORDER BY "id" |
| 11:40:57.968 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 11:40:57.969 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.969 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.969 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_object_change_logs" ("act", "attribute", "object_id", "object_type", "created_by", "created_at", "new_value", "old_value", "description") VALUES (1, 'create', 76, 20008, 1001, '2025-12-19 11:40:57', '{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}', '{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}', '{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}') RETURNING "id" |
| 11:40:57.970 | info | yii\db\Command::execute | INSERT INTO "a57be577deb434"."tbl_action_logs" ("action", "object_type", "object_id", "new_value", "old_value", "created_by", "ip_address") VALUES ('INSERT', 'app\models\ObjectChangeLogs', 591562, 'a:13:{s:2:"id";i:591562;s:9:"object_id";i:76;s:11:"object_type";i:20008;s:9:"target_id";N;s:18:"target_object_type";N;s:3:"act";i:1;s:9:"attribute";s:6:"create";s:9:"old_value";s:647:"{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}";s:9:"new_value";s:647:"{"id":76,"serial_no":"XSCKD-20251219-00001","from_date":null,"wrote_date":"2025-12-19","handler":1001,"erp_sales_order_id":1620,"client_id":1661,"project_id":4048,"erp_store_id":1,"status":1,"erp_send_type_id":null,"abstract":null,"description":null,"verify_type":2,"next_verify_user":1001,"next_stop_verify_user":null,"verify_at":null,"stop_at":null,"refuse_description":null,"is_resubmitted":false,"number":"2","amount":"9899","created_by":1001,"stop_description":null,"outbound_status":false,"is_settle":false,"is_used":false,"created_at":"2025-12-19 11:40:57","updated_at":"2025-12-19 11:40:57","print_times":null,"is_sales_order_ready":false}";s:11:"description";s:111:"{"d1":"\u5218\u4eba\u8bda","d2":"\u521b\u5efa\u4e86","d3":"\u9500\u552e\u51fa\u5e93\u5355\u7533\u8bf7","d4":[]}";s:10:"created_by";i:1001;s:10:"created_at";s:19:"2025-12-19 11:40:57";s:9:"is_delete";N;}', '', 1001, '223.72.15.22') |
| 11:40:57.971 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.971 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.972 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_visit_module_histories" WHERE ("user_id"=1001) AND ("object_type"=20000) AND ("visit_date"='2025-12-19') |
| 11:40:57.975 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.976 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 11:40:57.976 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_visit_module_histories" SET "num"=71, "last_visit_at"='now()' WHERE "id"=59605 |
| 11:40:57.977 | info | yii\db\Command::query | INSERT INTO "global"."tbl_api_log" ("code", "schema", "user_id", "device_type", "url", "request", "response", "php_error", "time") VALUES (200, 'a57be577deb434', 1001, 5, 'vue/erp-sales-outbound/save-new', '{"ErpSalesOutbounds":{"id":"","client_id":"1661","client_name":"\u5317\u4eac\u7f51\u4fe1\u5143\u79d1\u6280\u6709\u9650\u516c\u53f8","erp_send_type_id":"","handler":"1001","project_id":"4048","wrote_date":"2025-12-19","serial_no":"XSCKD-20251219-00001","erpSalesOutboundVerifyRels":["1001","1000","5250","5016","5064"],"abstract":"","description":"","erp_store_id":"1","erp_store_name":"\u62d3\u5b9e\u4ed3\u5e93","erp_sales_order_id":"1620","erpSalesOutboundProducts":{"new":[{"product_id":"1774","number":"1","amount":"5345","total_amount":"5345.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1980","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""},{"product_id":"2166","number":"1","amount":"4554","total_amount":"4554.00","description":"","hardware_from":"","software_from":"","maintenance_from":"","hardware_to":"","software_to":"","maintenance_to":"","erp_sales_order_product_id":"1981","erp_store_id":"1","is_check":"0","erpSalesOutboundSpentProducts":""}]},"files":""},"web_access_token":"yb8YvQDqCxvGUQWSJnYL2S9XtkD7pVRr"}', '{"code":2000,"result":{"id":76},"status":1,"msg":[{"name":"success","success":"\u65b0\u9500\u552e\u51fa\u5e93\u5355\u5df2\u521b\u5efa\u6210\u529f","error":""}],"mod":0,"ip":"223.72.15.22","ua":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.15; rv:146.0) Gecko\/20100101 Firefox\/146.0"}', FALSE, '2025-12-19 11:40:57') RETURNING "id" |
| 11:40:57.978 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 11:40:57.978 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |