mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 23:47:32 -05:00 
			
		
		
		
	Support filtering API invoices by status
This commit is contained in:
		
							parent
							
								
									1d8bd29323
								
							
						
					
					
						commit
						cfddcc940a
					
				@ -68,6 +68,11 @@ class InvoiceApiController extends BaseAPIController
 | 
			
		||||
            $invoices->whereInvoiceNumber($invoiceNumber);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Fllter by status
 | 
			
		||||
        if ($statusId = Input::get('status_id')) {
 | 
			
		||||
            $invoices->where('invoice_status_id', '>=', $statusId);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $this->listResponse($invoices);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user