Merged PR 1406: #3496 HFI Geschenkkarte max Preis fix

#3496 HFI Geschenkkarte max Preis fix

Related work items: #3496
This commit is contained in:
Andreas Schickinger
2022-10-17 14:01:42 +00:00
committed by Lorenz Hilpert
parent d711d4a816
commit 87a2e94dd6
3 changed files with 5 additions and 4 deletions

View File

@@ -6,6 +6,6 @@
</ui-form-control>
<ui-form-control class="price" label="Preis" variant="default">
<input uiInput formControlName="price" [max]="maxValue" />
<input uiInput formControlName="price" [max]="maxValue" maxLength="6" />
</ui-form-control>
</form>

View File

@@ -98,7 +98,7 @@ img.thumbnail {
}
&:disabled {
@apply text-inactive-branch border-inactive-branch;
@apply text-inactive-branch border-inactive-branch cursor-not-allowed;
}
}
@@ -107,7 +107,7 @@ img.thumbnail {
@apply text-white bg-brand font-bold text-lg px-4 py-2 rounded-full border-none ml-4 no-underline;
&:disabled {
@apply bg-inactive-branch;
@apply bg-inactive-branch cursor-not-allowed;
}
}

View File

@@ -14,6 +14,7 @@ import {
encodeFormData,
mapCustomerDtoToCustomerCreateFormData,
} from 'apps/page/customer/src/lib/create-customer/customer-create-form-data';
import { isNumber } from '@utils/common';
@Component({
selector: 'page-purchasing-options-modal',
@@ -66,7 +67,7 @@ export class PurchasingOptionsModalComponent {
}
if ((item.type as any) === 66560) {
return customPrice < 1 || customPrice > 200;
return !isNumber(customPrice) || customPrice < 1 || customPrice > 200;
}
return !customPrice || !customVat;