2.6 KiB
2.6 KiB
APPLY Results: 03-01
Date: 2026-04-24 23:04:32 +02:00
Completed Tasks
Task 1: Add Shared Registration Settings Helper
Status: pass
Notes:
- Added
_rejestracja/core/class/RegistrationFormSettings.class.phpto centralize participation day lists, VAT multiplier, one-day prices, and existingmf_parametersprice rows. - Added
_rejestracja/sql/2026-04-24-registration-form-settings.sqlwith idempotentwp_setupinserts. - Added
_rejestracja/sql/apply-2026-04-24-registration-form-settings.phpas a guarded browser/CLI seed runner. - New list/scalar settings use
wp_setup; existing calculator prices remain inmf_parameters.
Task 2: Build Admin Form Settings Page
Status: pass
Notes:
- Added
_rejestracja/Admin/controller/FormSettingsController.php. - Added
_rejestracja/Admin/template/partial/FormSettings/Index.tpl. - Added the
Ustawienia formularzaadmin menu link to Dictionary, Setup, and the new controller. - The admin form can edit participation days, one-day prices, VAT multiplier, and relevant
mf_parametersprice rows.
Task 3: Use Settings in Public Form and Submit Pricing
Status: pass
Notes:
- Updated
_rejestracja/controller/IndexController.phpto load registration settings, pass them to Smarty/JavaScript, calculate VAT from the configured multiplier, and save one-day participant prices from settings. - Updated
_rejestracja/template/partial/Index/Index.tplto render configuredparticipation_dayslists and use configured one-day prices incalculatePrice. - Added a small KSeF ID helper note under the public NIP field as an in-plan follow-up.
- Preserved public field names and stored values for existing registration flow compatibility.
Verification
php -l _rejestracja/core/class/RegistrationFormSettings.class.php: passphp -l _rejestracja/Admin/controller/FormSettingsController.php: passphp -l _rejestracja/controller/IndexController.php: passphp -l _rejestracja/sql/apply-2026-04-24-registration-form-settings.php: pass- Hardcoded day/one-day price scan: pass; matches remain only in helper defaults and deployment seed files.
- Admin menu scan: pass; Dictionary, Setup, and FormSettings include
Ustawienia formularza. - NIP field helper note: pass; rendered under the existing NIP input without changing form field names.
Deviations
- No schema changes were introduced; the plan's no-schema approach was followed.
- Unrelated working tree entries were present and left untouched:
_rejestracja/Static/image/Admin/Thumbs.dband.vscode/ftp-kr.sync.cache.json.
Next Step
Run $paul-unify .paul/phases/03-registration-form-settings/03-01-PLAN.md to reconcile the plan and close the loop.