Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
dbde8aeb
Commit
dbde8aeb
authored
5 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/timeout/timeOut
into jansa
parents
e5cf251e
a4096cbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
Api_model.php
application/models/Api_model.php
+10
-0
No files found.
application/models/Api_model.php
View file @
dbde8aeb
...
...
@@ -1395,6 +1395,16 @@ class Api_model extends CI_Model {
}
$this
->
db
->
update
(
'wallet_transactions'
,
array
(
'status'
=>
$txnData
[
'status'
]),
array
(
'transaction_code'
=>
$txnData
[
'tnx_id'
]));
if
(
$txnData
[
'status'
]
==
1
){
$cond
=
array
(
'transaction_code'
=>
$txnData
[
'tnx_id'
],
'status'
=>
'1'
);
$lastTxn
=
$this
->
db
->
get_where
(
'wallet_transactions'
,
$cond
)
->
result_array
();
$amount
=
$lastTxn
[
'amount'
];
$customer_id
=
$lastTxn
[
'customer_id'
];
$sql
=
"UPDATE wallet SET balance_amount=balance_amount+
$amount
WHERE customer_id=
$customer_id
"
;
$this
->
db
->
query
(
$sql
);
}
}
}
catch
(
Exception
$e
){}
}
...
...
This diff is collapsed.
Click to expand it.
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