How to display available quantity of item on Sales/Invoice

Posted on 2025-07-04 Updated on 2025-07-04

Guide: How to display available quantity of item on Sales/Invoice

Welcome to the user guide for the How to display available quantity of item on Sales/Invoice in Marketpulse OS CRM. This document provides a detailed, step-by-step tutorial on effectively using this module.

How to display available quantity of item on Sales/Invoice

  1. Display available quantity of item on Sales/Invoice1.1.File “application/controllers/admin/Invoices.php”, below the line 365 add hook like this Code: // add hook display Available quantity of item //$data['items']        = hooks ()->apply_filters ('before_admin_view_create_invoice', $data['items']);/////////////////////////////////////////////////Image: 1.2.File “application/controllers/admin/Invoice_items.php”, find function “search” and update like the image Code: public function search (){if ($this->input->post () && $this->input->is_ajax_request ()) {$data = $this->invoice_items_model->search ($this->input->post ('q'));/////////////////////////////////////////////////// add hook display Available quantity of item //$data = hooks ()->apply_filters ('admin_invoice_ajax_search_item', $data, $this->input->post ('q'));/////////////////////////////////////////////////echo json_encode ($data);}}Image:

// add hook display Available quantity of item //

$data['items']        = hooks ()->apply_filters ('before_admin_view_create_invoice', $data['items']);

/////////////////////////////////////////////////

public function search ()

if ($this->input->post () && $this->input->is_ajax_request ()) {

$data = $this->invoice_items_model->search ($this->input->post ('q'));

/////////////////////////////////////////////////

// add hook display Available quantity of item //

$data = hooks ()->apply_filters ('admin_invoice_ajax_search_item', $data, $this->input->post ('q'));

/////////////////////////////////////////////////

echo json_encode ($data);

Found this article helpful?

[ 0 Out of 0 Found Helpful ]

Still no luck? we can help!

Submit a ticket and we’ll get back to you as soon as possible.

Support Chat Available
Account login is required to start, please login to your account to proceed.