Updated customer group mapping function name
This commit is contained in:
parent
ff1154c422
commit
672f2f8c2b
|
|
@ -78,7 +78,7 @@
|
|||
<label for="customerGroup" >{{ __('admin::app.customers.customers.customer_group') }}</label>
|
||||
|
||||
@if (! is_null($customer->customer_group_id))
|
||||
<?php $selectedCustomerOption = $customer->customerGroup->id ?>
|
||||
<?php $selectedCustomerOption = $customer->group->id ?>
|
||||
@else
|
||||
<?php $selectedCustomerOption = '' ?>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@
|
|||
</span>
|
||||
|
||||
<span class="value">
|
||||
{{ $order->customer->customerGroup['name'] }}
|
||||
{{ $order->customer->group['name'] }}
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -30,9 +30,9 @@ class Customer extends Authenticatable implements CustomerContract
|
|||
/**
|
||||
* Get the customer group that owns the customer.
|
||||
*/
|
||||
public function customerGroup()
|
||||
public function group()
|
||||
{
|
||||
return $this->belongsTo(CustomerGroupProxy::modelClass());
|
||||
return $this->belongsTo(CustomerGroupProxy::modelClass(), 'customer_group_id');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue