1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Minor fixes

This commit is contained in:
David Bomba 2022-09-23 16:54:22 +10:00
parent 99704a3dbd
commit a53f3edae6
3 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class ProfitLossRequest extends Request
'start_date' => 'string|date',
'end_date' => 'string|date',
'is_income_billed' => 'required|bail|bool',
'is_expense_billed' => 'required|bail|bool',
'is_expense_billed' => 'bool',
'include_tax' => 'required|bail|bool',
'date_range' => 'sometimes|string',
'send_email' => 'bool',

View File

@ -293,8 +293,11 @@ class MatchBankTransactions implements ShouldQueue
private function resolveCategory() :?int
{
if(array_key_exists('ninja_category_id', $this->input))
if(array_key_exists('ninja_category_id', $this->input)){
$this->bt->ninja_category_id = $this->input['ninja_category_id'];
$this->bt->save();
return $this->input['ninja_category_id'];
}
$category = $this->categories->firstWhere('highLevelCategoryId', $this->bt->category_id);

View File

@ -32,6 +32,7 @@ class BankTransaction extends BaseModel
'date',
'description',
'base_type',
'expense_id',
];
protected $dates = [