Fix for quotes list action dropdown
This commit is contained in:
parent
a9302d4d01
commit
8df844ea26
1 changed files with 2 additions and 0 deletions
|
|
@ -120,6 +120,8 @@ class InvoiceService extends BaseService
|
|||
public function getDatatable($accountId, $clientPublicId = null, $entityType, $search)
|
||||
{
|
||||
$datatable = new InvoiceDatatable( ! $clientPublicId, $clientPublicId);
|
||||
$datatable->entityType = $entityType;
|
||||
|
||||
$query = $this->invoiceRepo->getInvoices($accountId, $clientPublicId, $entityType, $search)
|
||||
->where('invoices.invoice_type_id', '=', $entityType == ENTITY_QUOTE ? INVOICE_TYPE_QUOTE : INVOICE_TYPE_STANDARD);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue