mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 10:22:55 -05:00
solve unit tests
This commit is contained in:
@@ -19,7 +19,10 @@ test('invoice request validation rules', function () {
|
||||
],
|
||||
'invoice_number' => [
|
||||
'required',
|
||||
Rule::unique('invoices')->where('company_id', null)
|
||||
Rule::unique('invoices')->where('company_id', $request->header('company'))
|
||||
],
|
||||
'exchange_rate' => [
|
||||
'nullable'
|
||||
],
|
||||
'discount' => [
|
||||
'required',
|
||||
|
||||
Reference in New Issue
Block a user