Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
master-absenku-custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nurchamim
master-absenku-custom
Commits
5bb7c723
Commit
5bb7c723
authored
Sep 02, 2025
by
support
Committed by
nurchamim
Sep 02, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sales activity product: search data juga mencari nama group/area
parent
ab6819a8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
application/controllers/sales_activity/master/Product.php
+2
-0
application/models/sales_activity/master/Product_m.php
+1
-1
No files found.
application/controllers/sales_activity/master/Product.php
View file @
5bb7c723
...
...
@@ -97,6 +97,8 @@ class Product extends MY_Controller
$this
->
db
->
group_start
();
$this
->
db
->
like
(
'sgp.kode'
,
$search
);
$this
->
db
->
or_like
(
'sgp.nama'
,
$search
);
$this
->
db
->
or_like
(
'sgm.kode'
,
$search
);
$this
->
db
->
or_like
(
'sgm.nama'
,
$search
);
$this
->
db
->
group_end
();
$result
=
$this
->
db
->
get
()
->
result
();
...
...
application/models/sales_activity/master/Product_m.php
View file @
5bb7c723
...
...
@@ -47,7 +47,7 @@ class Product_m extends CI_Model
}
}
$column_search
=
array
(
'product.kode'
,
'product.nama'
);
$column_search
=
array
(
'product.kode'
,
'product.nama'
,
'g_area.kode'
,
'g_area.nama'
);
$i
=
0
;
foreach
(
$column_search
as
$item
)
{
// looping awal
if
(
$_GET
[
'search'
][
'value'
])
{
// jika datatable mengirimkan pencarian dengan metode POST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment