@php
$tierVal = old('price_tier', $customer->price_tier);
if ($tierVal === null || $tierVal === '') {
$typeVal = old('customer_type', $customer->customer_type);
if ($typeVal === 'wholesale') {
$tierVal = 1;
} elseif ($typeVal === 'special') {
$tierVal = 2;
} elseif ($typeVal === 'mrp') {
$tierVal = 3;
}
}
$tierStr = ($tierVal === null || $tierVal === '') ? '' : (string) $tierVal;
@endphp
If set, POS auto-applies this tier when selecting the customer.