mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:57:33 -05:00 
			
		
		
		
	Minor fixes
This commit is contained in:
		
							parent
							
								
									99704a3dbd
								
							
						
					
					
						commit
						a53f3edae6
					
				@ -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',
 | 
			
		||||
 | 
			
		||||
@ -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);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -32,6 +32,7 @@ class BankTransaction extends BaseModel
 | 
			
		||||
        'date',
 | 
			
		||||
        'description',
 | 
			
		||||
        'base_type',
 | 
			
		||||
        'expense_id',
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
    protected $dates = [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user