mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-30 05:01:10 -04:00
solve unit tests
This commit is contained in:
@ -53,11 +53,13 @@ class ExpenseRequest extends FormRequest
|
||||
],
|
||||
];
|
||||
|
||||
if ($companyCurrency !== $this->currency_id) {
|
||||
$rules['exchange_rate'] = [
|
||||
'required',
|
||||
];
|
||||
};
|
||||
if ($companyCurrency && $this->currency_id) {
|
||||
if ($companyCurrency !== $this->currency_id) {
|
||||
$rules['exchange_rate'] = [
|
||||
'required',
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user