mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 17:27:34 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			634 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			634 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php namespace App\Ninja\Repositories;
 | 
						|
 | 
						|
use DB;
 | 
						|
use Utils;
 | 
						|
use App\Models\PaymentTerm;
 | 
						|
use App\Ninja\Repositories\BaseRepository;
 | 
						|
 | 
						|
class PaymentTermRepository extends BaseRepository
 | 
						|
{
 | 
						|
    public function getClassName()
 | 
						|
    {
 | 
						|
        return 'App\Models\PaymentTerm';
 | 
						|
    }
 | 
						|
 | 
						|
    public function find($accountId = 0)
 | 
						|
    {
 | 
						|
        return DB::table('payment_terms')
 | 
						|
                //->where('payment_terms.account_id', '=', $accountId)
 | 
						|
                ->where('payment_terms.deleted_at', '=', null)
 | 
						|
                ->select('payment_terms.public_id', 'payment_terms.name', 'payment_terms.num_days', 'payment_terms.deleted_at');
 | 
						|
    }
 | 
						|
}
 |