Commit graph

2 commits

Author SHA1 Message Date
Cursor Agent
8717c00a83
Refactor payroll_http and excel to use core RPC functions
- Replace db.prepare() in payroll_http with callCoreFn for attendance,
  loans, loan receipts, and legacy payroll period routes
- Use respondRpc/respondApiError for standardized HTTP responses
- Add fn_loan_list/get, fn_loan_payment_get, and fn_payroll_period_* RPCs
  to 013-rpc-payroll.sql with grants
- Refactor excel storeDocument to fn_worker_document_store (S3 stays in TS)
- Refactor importExcel and upsertWorker to fn_workers_import_batch

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
2026-09-03 23:57:56 +00:00
Cursor Agent
d2be5c5b76
Add payroll and import RPC changesets (013, 014)
Port key payroll operations from api/payroll.ts to plpgsql RPCs with
round_money helper, internal recalc/ensure logic, and core.rpc_* envelope.

Add batch worker import and post-S3 document metadata store RPCs with
Spanish validation messages and panels_core_app grants.

Co-authored-by: alberto.martinez <alberto.martinez@mrdev.mx>
2026-09-03 23:52:42 +00:00