Skip to content

Commit

Permalink
paymentCountRemaining should be non-editable (#6363)
Browse files Browse the repository at this point in the history
* paymentCountRemaining should be non-editable

* linting
  • Loading branch information
tijsziere authored and aberonni committed Jan 9, 2025
1 parent 1f3d862 commit f6c1cc1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const ATTRIBUTE_EDIT_INFO: Partial<
Record<GenericRegistrationAttributes, string>
> = {
maxPayments: $localize`:@@attribute-edit-info-maxPayments:The maximum number of payments for this Person Affected. You can remove the limit by removing the value and saving.`,
paymentCountRemaining: $localize`:@@attribute-edit-info-paymentCountRemaining:This is automatically calculated based on Max. payments and payments sucessfully sent`,
paymentAmountMultiplier: $localize`:@@attribute-edit-info-paymentAmountMultiplier:The transfer value will be multiplied by this number for this Person Affected`,
phoneNumber: $localize`:@@attribute-edit-info-phoneNumber:The required format is: ONLY numbers, including country-code.`,
scope: $localize`:@@attribute-edit-info-scope:Separate the parts with a dot (i.e. 'amsterdam.west').`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ import { Registration } from '~/domains/registration/registration.model';
import { AuthService } from '~/services/auth.service';
import { TranslatableStringService } from '~/services/translatable-string.service';

const nonEditableAttributes = ['inclusionScore', 'name'];
const nonEditableAttributes = [
'inclusionScore',
'name',
'paymentCountRemaining',
];

const getGenericAttributeType = (
attributeName: GenericRegistrationAttributes,
Expand Down
4 changes: 4 additions & 0 deletions interfaces/Portalicious/src/locale/messages.nl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1820,6 +1820,10 @@
<source>We couldn&apos;t find any information linked to this person&apos;s phone number in the projects you have access to on the 121 Platform.</source>
<target state="new">We couldn&apos;t find any information linked to this person&apos;s phone number in the projects you have access to on the 121 Platform.</target>
</trans-unit>
<trans-unit id="attribute-edit-info-paymentCountRemaining" datatype="html">
<source>This is automatically calculated based on Max. payments and payments sucessfully sent</source>
<target state="new">This is automatically calculated based on Max. payments and payments sucessfully sent</target>
</trans-unit>
</body>
</file>
</xliff>
3 changes: 3 additions & 0 deletions interfaces/Portalicious/src/locale/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -1367,6 +1367,9 @@
<trans-unit id="3894950702316166331" datatype="html">
<source>Loading...</source>
</trans-unit>
<trans-unit id="attribute-edit-info-paymentCountRemaining" datatype="html">
<source>This is automatically calculated based on Max. payments and payments sucessfully sent</source>
</trans-unit>
</body>
</file>
</xliff>

0 comments on commit f6c1cc1

Please sign in to comment.