feat: fold purchase and promo voucher fields into one code field
This commit is contained in:
1 parent
93512b8345
commit
21d756a2e3
21 files changed
+801
-432
No files matched your search
@@ -332,11 +332,11 @@ class CreateFieldStateProvider extends AbstractFieldStateProvider
|
||||
// Vouchers cannot be redeemed or submitted for inquiry bookings
|
||||
$finalBookingOnlyCondition = new FinalBookingOnlyCondition();
|
||||
|
||||
$this->fieldStateConditions['purchaseVoucherCode'] = [
|
||||
$this->fieldStateConditions['voucherCode'] = [
|
||||
'hidden' => CompositeCondition::not($finalBookingOnlyCondition),
|
||||
];
|
||||
|
||||
$this->fieldStateConditions['promoVoucherCode'] = [
|
||||
$this->fieldStateConditions['removeVoucherCode'] = [
|
||||
'hidden' => CompositeCondition::not($finalBookingOnlyCondition),
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user