Add "none" option for proof of payment type

Enhanced the proof of payment attachment feature with the following improvements:

- Renamed field from `proofOfPaymentAttachmentType` to `proofOfPaymentType` for consistency
- Added "none" option allowing users to disable proof of payment attachments
- Changed default value from "combined" to "none" for better UX
- Repositioned section in form after payment instructions (more logical flow)
- Added conditional warning when "combined" is selected without payment method
- Updated translations with emojis and improved tooltips for all options
- Backend validation and database operations updated to support new field structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Knee Cola
2025-12-07 11:19:51 +01:00
parent 2483b7bca5
commit dd4c92be77
5 changed files with 75 additions and 47 deletions

View File

@@ -151,24 +151,26 @@
"notes-placeholder": "notes",
"proof-of-payment-attachment-type--legend": "Proof of Payment",
"proof-of-payment-attachment-type--info": "Here you can choose how the tenant can provide proof of payment for utilities.",
"proof-of-payment-attachment-type--option--combined": "a single proof for all bills",
"proof-of-payment-attachment-type--option--combined--tooltip": "The tenant provides one proof of payment along with the monthly statement",
"proof-of-payment-attachment-type--option--per-bill": "separate proof for each bill",
"proof-of-payment-attachment-type--option--per-bill--tooltip": "The tenant provides proof of payment separately for each bill",
"proof-of-payment-attachment-type--info": "Here you can choose how the tenant can provide proof of payment for utilities. Select the option that best matches the payment arrangement you have agreed upon.",
"proof-of-payment-attachment-type--option--label": "Tenant provides ...",
"proof-of-payment-attachment-type--option--none": "⛔ attaching proof of payment disabled",
"proof-of-payment-attachment-type--option--none--tooltip": "The selected option means that the tenant will not be able to upload proof of payment attachments",
"proof-of-payment-attachment-type--option--combined": "📦 a single proof of payment for all bills",
"proof-of-payment-attachment-type--option--combined--tooltip": "The selected option is useful if you pay all utilities on behalf of the tenant, and the tenant reimburses you for this cost",
"proof-of-payment-attachment-type--option--combined--hint": "💡 with the selected option you might also want to activate <strong>payment instructions</strong> - see above",
"proof-of-payment-attachment-type--option--per-bill": "✂️ separate proof of payment for each bill",
"proof-of-payment-attachment-type--option--per-bill--tooltip": "The selected option is useful if the tenant pays utilities directly to individual service providers",
"tenant-payment-instructions-legend": "PAYMENT INSTRUCTIONS",
"tenant-payment-instructions-code-info": "When the tenant opens the link to the statement for the given month, the application can show payment instructions for utility costs to your IBAN, as well as a 2D code they can scan.",
"tenant-payment-instructions-method--legend": "Show payment instructions to tenant:",
"tenant-payment-instructions-method--none": "do not show payment instructions",
"tenant-payment-instructions-method--iban": "payment via IBAN",
"tenant-payment-instructions-method--none": "do not show payment instructions",
"tenant-payment-instructions-method--iban": "🏛️ payment via IBAN",
"tenant-payment-instructions-method--iban-disabled": "payment via IBAN - disabled in app settings",
"tenant-payment-instructions-method--revolut": "payment via Revolut",
"tenant-payment-instructions-method--revolut": "🅡 payment via Revolut",
"tenant-payment-instructions-method--revolut-disabled": "payment via Revolut - disabled in app settings",
"iban-payment--tenant-name-label": "Tenant First and Last Name",
"iban-payment--tenant-name-placeholder": "enter tenant's first and last name",
"iban-payment--tenant-street-label": "Tenant Street and House Number",