commit
8df7fbc23b
|
|
@ -341,7 +341,7 @@
|
|||
|
||||
<div class="summary-comment-container">
|
||||
<div class="comment-container">
|
||||
<form action="{{ route('admin.sales.orders.comment', $order->id) }}" method="post">
|
||||
<form action="{{ route('admin.sales.orders.comment', $order->id) }}" method="post" @submit.prevent="onSubmit">
|
||||
@csrf()
|
||||
|
||||
<div class="control-group" :class="[errors.has('comment') ? 'has-error' : '']">
|
||||
|
|
|
|||
|
|
@ -56,7 +56,9 @@ class Simple extends AbstractType
|
|||
public function haveSufficientQuantity($qty)
|
||||
{
|
||||
$backorders = core()->getConfigData('catalog.inventory.stock_options.backorders');
|
||||
|
||||
|
||||
$backorders = ! is_null ($backorders) ? $backorders : false;
|
||||
|
||||
return $qty <= $this->totalQuantity() ? true : $backorders;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue