| 17:19:14.643 | trace | yii\base\Application::bootstrap | Bootstrap with yii\log\Dispatcher |
| 17:19:14.643 | trace | yii\base\Module::getModule | Loading module: debug |
| 17:19:14.644 | trace | yii\base\Application::bootstrap | Bootstrap with yii\debug\Module::bootstrap() |
| 17:19:14.644 | trace | yii\redis\Connection::open | Opening redis DB connection: redis.server.local:6379, database=1 |
| 17:19:14.644 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SELECT |
| 17:19:14.645 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.645 | info | time tracing start | 1782811154645536000 |
| 17:19:14.645 | trace | yii\web\UrlManager::parseRequest | No matching URL rules. Using default URL parsing logic. |
| 17:19:14.645 | trace | yii\web\Application::handleRequest | Route requested: 'vue/voucher-center/generate' |
| 17:19:14.645 | trace | yii\base\Module::getModule | Loading module: vue |
| 17:19:14.646 | info | yii\web\Session::open | Session started |
| 17:19:14.648 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 17:19:14.648 | info | yii\db\Connection::open | Opening DB connection: pgsql:host=postgresql.server.local;port=5432;dbname=beta |
| 17:19:14.650 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.650 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.651 | info | yii\db\Command::query | SELECT * FROM "global"."vw_user_login" WHERE "id"=1001 |
| 17:19:14.652 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.653 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.653 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001 |
| 17:19:14.654 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "is_stop"=FALSE ORDER BY "id" |
| 17:19:14.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.655 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.656 | trace | yii\base\Controller::runAction | Route to run: vue/voucher-center/generate |
| 17:19:14.656 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.658 | trace | uranus\rbac\DbManager::checkAccessFromCache | Checking role: Admin |
| 17:19:14.658 | trace | yii\base\InlineAction::runWithParams | Running action: app\modules\vue\controllers\VoucherCenterController::actionGenerate() |
| 17:19:14.659 | info | yii\db\Command::query | SELECT "attachment_id" FROM "a57be577deb434"."tbl_attachement_relationships" WHERE ("object_id"='8308') AND ("object_type" IN (20053, 20032)) ORDER BY "id" |
| 17:19:14.664 | info | yii\db\Command::query | SELECT "id", "serial_no", "wrote_date", "verify_at", "created_at", "amount", "created_by", "client_id", "supplier_id" FROM "a57be577deb434"."tbl_erp_cash_cost_tickets" WHERE ("id"=8308) AND ("status"=2) |
| 17:19:14.665 | info | yii\db\Command::query | SELECT "r"."taxonomy_id" AS "taxonomy_id", "tt"."serial_no" AS "cost_serial_no", COALESCE(r.out_amount, 0) AS "amount" FROM "a57be577deb434"."tbl_term_taxonomy_relationships" "r" LEFT JOIN "a57be577deb434"."tbl_term_taxonomies" "tt" ON r.taxonomy_id = tt.id WHERE ("r"."term_id"=18) AND ("r"."object_type"=11) AND ("r"."object_id"=8308) ORDER BY "r"."id" |
| 17:19:14.666 | info | yii\db\Command::query | SELECT CASE WHEN COUNT(DISTINCT erp_bank_id) = 1 THEN MIN(erp_bank_id) ELSE NULL END AS "erp_bank_id" FROM "a57be577deb434"."tbl_erp_cash_cost_ticket_bank_outs" WHERE ("erp_cash_cost_ticket_id"=8308) AND (NOT ("erp_bank_id" IS NULL)) |
| 17:19:14.666 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.667 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.668 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='68') |
| 17:19:14.668 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='68') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.669 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='68') AND ("is_delete"=FALSE)) |
| 17:19:14.670 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='83') |
| 17:19:14.670 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='83') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.671 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='83') AND ("is_delete"=FALSE)) |
| 17:19:14.671 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='88') |
| 17:19:14.672 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='88') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.672 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='88') AND ("is_delete"=FALSE)) |
| 17:19:14.673 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='92') |
| 17:19:14.673 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='92') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.674 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='92') AND ("is_delete"=FALSE)) |
| 17:19:14.675 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='3') |
| 17:19:14.675 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='3') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.675 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='3') AND ("is_delete"=FALSE)) |
| 17:19:14.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.677 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.677 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'items' in 'app\models\LedgerTickets'. |
| 17:19:14.677 | trace | yii\base\Model::onUnsafeAttribute | Failed to set unsafe attribute 'files' in 'app\models\LedgerTickets'. |
| 17:19:14.678 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='68') |
| 17:19:14.678 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='68') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.679 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='68') AND ("is_delete"=FALSE)) |
| 17:19:14.679 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='83') |
| 17:19:14.680 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='83') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.680 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='83') AND ("is_delete"=FALSE)) |
| 17:19:14.681 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='88') |
| 17:19:14.681 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='88') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.682 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='88') AND ("is_delete"=FALSE)) |
| 17:19:14.682 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='92') |
| 17:19:14.683 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='92') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.683 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='92') AND ("is_delete"=FALSE)) |
| 17:19:14.684 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE "id"='3') |
| 17:19:14.685 | info | yii\db\Command::query | SELECT "id" FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("id"='3') AND ("ledger_id"=1) AND ("is_delete"=FALSE) |
| 17:19:14.685 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledger_account_captions" WHERE ("ledger_id"=1) AND ("parent_id"='3') AND ("is_delete"=FALSE)) |
| 17:19:14.686 | info | yii\db\Command::query | SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1 |
| 17:19:14.686 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_ledgers" WHERE "id"=1) |
| 17:19:14.687 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 17:19:14.687 | info | yii\db\Command::query | SELECT EXISTS(SELECT * FROM "a57be577deb434"."tbl_users" WHERE "id"=1001) |
| 17:19:14.688 | info | yii\db\Command::query | SELECT "id", "name", "department_id" FROM "a57be577deb434"."tbl_users" WHERE "id"=5252 |
| 17:19:14.689 | info | yii\db\Command::query | SELECT "id", "name" FROM "a57be577deb434"."tbl_departments" WHERE "id"=6 |
| 17:19:14.689 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.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_voucher_gen_batches'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:19:14.694 | 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_voucher_gen_batches'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:19:14.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.702 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:19:14.702 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_voucher_gen_batches" ("ledger_id", "batch_no", "voucher_date_type", "file_name", "bill_count", "success_count", "fail_count", "status", "created_by", "created_at", "updated_at") VALUES (1, 'VG20260630171914473', 1, '2026_06_30', 1, 0, 0, 3, 1001, '2026-06-30 17:19:14', '2026-06-30 17:19:14') RETURNING "id" |
| 17:19:14.712 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.712 | 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_action_logs'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:19:14.716 | 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_action_logs'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:19:14.721 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.721 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:19:14.722 | 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\VoucherGenBatches', 4, 'a:14:{s:2:"id";i:4;s:9:"ledger_id";i:1;s:8:"batch_no";s:19:"VG20260630171914473";s:17:"voucher_date_type";i:1;s:9:"file_name";s:10:"2026_06_30";s:10:"bill_count";i:1;s:13:"success_count";i:0;s:10:"fail_count";i:0;s:6:"status";i:3;s:10:"created_by";i:1001;s:10:"created_at";s:19:"2026-06-30 17:19:14";s:10:"updated_at";s:19:"2026-06-30 17:19:14";s:10:"is_deleted";N;s:10:"deleted_at";N;}', '', 1001, '221.216.117.25') |
| 17:19:14.738 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.738 | 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_voucher_gen_items'
and d.nspname = 'a57be577deb434'
ORDER BY
a.attnum; |
| 17:19:14.742 | 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_voucher_gen_items'
and ns.nspname='a57be577deb434'
order by
fns.nspname, fc.relname, a.attnum |
| 17:19:14.751 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.751 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |
| 17:19:14.794 | info | yii\db\Command::query | INSERT INTO "a57be577deb434"."tbl_voucher_gen_items" ("batch_id", "ledger_id", "object_type", "object_id", "event_type", "event_id", "bill_no", "bill_date", "amount", "partner_name", "department", "handler_name", "status", "fail_reason", "created_at", "updated_at") VALUES (4, 1, 20018, 8308, 0, 0, 'XJFYD-20260305-00001', '2026-03-05', '52733.33', '', '财务部', '王笑笑', 0, '凭证日期不在当前可编辑期间', '2026-06-30 17:19:14', '2026-06-30 17:19:14') RETURNING "id" |
| 17:19:14.809 | 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\VoucherGenItems', 62, 'a:21:{s:2:"id";i:62;s:8:"batch_id";i:4;s:9:"ledger_id";i:1;s:11:"object_type";i:20018;s:9:"object_id";i:8308;s:7:"bill_no";s:20:"XJFYD-20260305-00001";s:9:"bill_date";s:10:"2026-03-05";s:6:"amount";d:52733.330000000002;s:12:"partner_name";s:0:"";s:10:"department";s:9:"财务部";s:12:"handler_name";s:9:"王笑笑";s:6:"status";i:0;s:11:"fail_reason";s:39:"凭证日期不在当前可编辑期间";s:16:"ledger_ticket_id";N;s:11:"ticket_word";N;s:16:"ticket_serial_no";N;s:9:"book_date";N;s:10:"created_at";s:19:"2026-06-30 17:19:14";s:10:"updated_at";s:19:"2026-06-30 17:19:14";s:10:"event_type";i:0;s:8:"event_id";i:0;}', '', 1001, '221.216.117.25') |
| 17:19:14.811 | info | yii\db\Command::execute | UPDATE "a57be577deb434"."tbl_voucher_gen_batches" SET "fail_count"=1 WHERE "id"=4 |
| 17:19:14.814 | 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\VoucherGenBatches', 4, 'a:2:{s:10:"is_deleted";N;s:10:"deleted_at";N;}', '', 1001, '221.216.117.25') |
| 17:19:14.816 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.817 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: MGET |
| 17:19:14.817 | 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/voucher-center/generate', '{"voucher_date_type":"1","type":"1","entry_type":"1","tickets":[{"LedgerTickets":{"ticket_date":"2026-03-05","ticket_word":"2","ticket_count":"2","items":[{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"68","auxiliary_item_id":"","debit_amount":"49748.44","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"83","auxiliary_item_id":"","debit_amount":"1741.19","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"88","auxiliary_item_id":"","debit_amount":"746.22","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"92","auxiliary_item_id":"","debit_amount":"497.48","credit_amount":"0.00"},{"summary":"\u73b0\u91d1\u8d39\u7528\u5355 XJFYD-20260305-00001","ledger_account_caption_id":"3","auxiliary_item_id":"","debit_amount":"0.00","credit_amount":"52733.33"}],"files":""},"source_bills":[{"object_type":"20018","object_id":"8308","event_type":"0","event_id":"0"}]}],"web_access_token":"9OODFZFZk-X86cfjXzRsEqn62HNQjGnS"}', '{"code":2000,"result":{"batch_id":4,"batch_no":"VG20260630171914473","source_count":1,"ticket_count":0,"success_count":0,"fail_count":1,"status":3,"status_display":"\u5168\u5931\u8d25","generate_type":1,"entry_type":1,"ticket_item_count":0,"total_amount":0,"period":"","ticket_no_range":"","tickets":[]},"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-30 17:19:14', 171682048) RETURNING "id" |
| 17:19:14.819 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: GET |
| 17:19:14.819 | trace | yii\redis\Connection::executeCommand | Executing Redis Command: SET |