removed extra brackets
This commit is contained in:
		@@ -9,7 +9,7 @@ class InvoiceHistories extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['invoice'])->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('invoice')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ class InvoiceItemTaxes extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['invoice', 'item', 'tax'])->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('invoice', 'item', 'tax')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ class InvoiceItems extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['invoice', 'item'])->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('invoice', 'item')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ class InvoiceTotals extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['invoice'])->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('invoice')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('invoice_id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ class InvoiceTransactions extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['account', 'category', 'contact', 'invoice'])->income()->isDocument()->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('account', 'category', 'contact', 'invoice')->income()->isDocument()->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('document_id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
@@ -9,7 +9,7 @@ class Invoices extends Export
 | 
			
		||||
{
 | 
			
		||||
    public function collection()
 | 
			
		||||
    {
 | 
			
		||||
        $model = Model::with(['category'])->usingSearchString(request('search'));
 | 
			
		||||
        $model = Model::with('category')->usingSearchString(request('search'));
 | 
			
		||||
 | 
			
		||||
        if (!empty($this->ids)) {
 | 
			
		||||
            $model->whereIn('id', (array) $this->ids);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user