mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
Merged PR 1406: #3496 HFI Geschenkkarte max Preis fix
#3496 HFI Geschenkkarte max Preis fix Related work items: #3496
This commit is contained in:
committed by
Lorenz Hilpert
parent
d711d4a816
commit
87a2e94dd6
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user