1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Ninja/Repositories/PaymentTermRepository.php

20 lines
552 B
PHP
Raw Normal View History

2016-07-21 14:35:23 +02:00
<?php namespace App\Ninja\Repositories;
2016-01-07 20:39:51 +01:00
use DB;
class PaymentTermRepository extends BaseRepository
{
public function getClassName()
{
return 'App\Models\PaymentTerm';
}
public function find($accountId = 0)
{
return DB::table('payment_terms')
2016-07-21 14:35:23 +02:00
//->where('payment_terms.account_id', '=', $accountId)
2016-01-07 20:39:51 +01:00
->where('payment_terms.deleted_at', '=', null)
->select('payment_terms.public_id', 'payment_terms.name', 'payment_terms.num_days', 'payment_terms.deleted_at');
}
}