INA-4 | Fix syntax
This commit is contained in:
parent
ca9dbc61c7
commit
62089ed74f
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class UpdatePurchaseOrderRequest extends Request
|
|||
$rules = [];
|
||||
|
||||
if($this->number)
|
||||
$rules['number'] = Rule::unique('purchase_orders')->where('company_id', auth()->user()->company()->id)->ignore($this->purchaseOrder->id);
|
||||
$rules['number'] = Rule::unique('purchase_orders')->where('company_id', auth()->user()->company()->id)->ignore($this->purchase_order->id);
|
||||
|
||||
$rules['line_items'] = 'array';
|
||||
$rules['discount'] = 'sometimes|numeric';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue