Fix Expense amount and tax amount update issue (#1955)

This commit is contained in:
FrancescoUK
2018-04-24 20:39:41 +01:00
parent 72825acfaf
commit c8d1bfee35
5 changed files with 19 additions and 19 deletions

View File

@@ -175,22 +175,23 @@ class Tax extends CI_Model
if($this->db->insert('tax_codes', $tax_code_data))
{
$this->save_tax_rates($tax_rate_data, $tax_code);
return TRUE;
}
return FALSE;
}
$this->db->where('tax_code', $tax_code);
if($this->db->update('tax_codes', $tax_code_data))
{
$this->save_tax_rates($tax_rate_data, $tax_code);
return TRUE;
}
else
{
return FALSE;
$this->db->where('tax_code', $tax_code);
if($this->db->update('tax_codes', $tax_code_data))
{
$this->save_tax_rates($tax_rate_data, $tax_code);
return TRUE;
}
}
return FALSE;
}
/**