From 8ef32bd69f142d5ce545b4cf1a03bc5a9c101beb Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Fri, 21 Nov 2025 14:54:33 +0530 Subject: [PATCH] invoice --- app/Controllers/InvoiceController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/InvoiceController.php b/app/Controllers/InvoiceController.php index f4927fb..2804df7 100644 --- a/app/Controllers/InvoiceController.php +++ b/app/Controllers/InvoiceController.php @@ -38,8 +38,8 @@ class InvoiceController extends ResourceController $data = $this->InvoiceModel->select('partner_invoice.*, PB.name as broker_name, PA.name as agent_name') ->join('partner_brokers PB', 'PB.id = partner_invoice.broker_id', 'left') ->join('partner_agent PA', 'PA.id = partner_invoice.agent_id', 'left') - ->where('is_active', 1) - ->orderBy('id', 'DESC') + ->where('partner_invoice.is_active', 1) + ->orderBy('partner_invoice.id', 'DESC') ->findAll(); return $this->respond(['status' => 'success', 'code' => 200,'data' => $data ], 200);