update
This commit is contained in:
51
.paul/phases/03-registration-form-settings/03-01-APPLY.md
Normal file
51
.paul/phases/03-registration-form-settings/03-01-APPLY.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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.php` to centralize participation day lists, VAT multiplier, one-day prices, and existing `mf_parameters` price rows.
|
||||
- Added `_rejestracja/sql/2026-04-24-registration-form-settings.sql` with idempotent `wp_setup` inserts.
|
||||
- Added `_rejestracja/sql/apply-2026-04-24-registration-form-settings.php` as a guarded browser/CLI seed runner.
|
||||
- New list/scalar settings use `wp_setup`; existing calculator prices remain in `mf_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 formularza` admin menu link to Dictionary, Setup, and the new controller.
|
||||
- The admin form can edit participation days, one-day prices, VAT multiplier, and relevant `mf_parameters` price rows.
|
||||
|
||||
### Task 3: Use Settings in Public Form and Submit Pricing
|
||||
Status: pass
|
||||
|
||||
Notes:
|
||||
- Updated `_rejestracja/controller/IndexController.php` to 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.tpl` to render configured `participation_days` lists and use configured one-day prices in `calculatePrice`.
|
||||
- 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`: pass
|
||||
- `php -l _rejestracja/Admin/controller/FormSettingsController.php`: pass
|
||||
- `php -l _rejestracja/controller/IndexController.php`: pass
|
||||
- `php -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.db` and `.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.
|
||||
Reference in New Issue
Block a user