day book fees updation entry changes: kdk

This commit is contained in:
resicovenba 2018-03-16 18:01:52 +05:30
parent f4babc90a5
commit 8723de00cf
2 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ class DayBook_model extends CI_Model
{
$branch = $Arr['BranchCode'];
$sql = "SELECT * FROM ".DAYBOOKMASTER." WHERE BranchCode = '$branch'
ORDER BY CreatedOn DESC
ORDER BY ID DESC
LIMIT 1";
$prevBalance = 0;
$latestUpdate = $this->db->query($sql);

View File

@ -1702,7 +1702,7 @@ class Fees_status_model extends CI_Model
{
$branch = $Arr['BranchCode'];
$sql = "SELECT * FROM ".DAYBOOKMASTER." WHERE BranchCode = '$branch'
ORDER BY CreatedOn DESC
ORDER BY ID DESC
LIMIT 1";
$prevBalance = 0;
$latestUpdate = $this->db->query($sql);