daybook update: kdk
This commit is contained in:
parent
43a31ad069
commit
8e3c67361e
@ -143,7 +143,9 @@ class DayBook_model extends CI_Model
|
|||||||
$currBalance = $latestUpdateDetails[0]->Balance;
|
$currBalance = $latestUpdateDetails[0]->Balance;
|
||||||
$currID = $latestUpdateDetails[0]->ID;
|
$currID = $latestUpdateDetails[0]->ID;
|
||||||
|
|
||||||
$sql1 = " DELETE FROM ".DAYBOOKMASTER." WHERE ID ='$id'";
|
// $sql1 = " DELETE FROM ".DAYBOOKMASTER." WHERE ID ='$id'";
|
||||||
|
$sql1 = "UPDATE ".DAYBOOKMASTER." SET Status ='Cancel' WHERE ID ='$id'";
|
||||||
|
|
||||||
// update branch to staff_branch table
|
// update branch to staff_branch table
|
||||||
if ($this->db->query($sql1) == '1') {
|
if ($this->db->query($sql1) == '1') {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user