Fix #12502 : loan rate wasn't updatable
This commit is contained in:
parent
8656143050
commit
9116110737
@ -544,7 +544,7 @@ if ($id > 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $object->rate . '%';
|
print price($object->rate) . '%';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
@ -335,6 +335,7 @@ class Loan extends CommonObject
|
|||||||
$sql.= " datestart='".$this->db->idate($this->datestart)."',";
|
$sql.= " datestart='".$this->db->idate($this->datestart)."',";
|
||||||
$sql.= " dateend='".$this->db->idate($this->dateend)."',";
|
$sql.= " dateend='".$this->db->idate($this->dateend)."',";
|
||||||
$sql.= " nbterm=".$this->nbterm.",";
|
$sql.= " nbterm=".$this->nbterm.",";
|
||||||
|
$sql.= " rate=".$this->db->escape($this->rate).",";
|
||||||
$sql.= " accountancy_account_capital = '".$this->db->escape($this->account_capital)."',";
|
$sql.= " accountancy_account_capital = '".$this->db->escape($this->account_capital)."',";
|
||||||
$sql.= " accountancy_account_insurance = '".$this->db->escape($this->account_insurance)."',";
|
$sql.= " accountancy_account_insurance = '".$this->db->escape($this->account_insurance)."',";
|
||||||
$sql.= " accountancy_account_interest = '".$this->db->escape($this->account_interest)."',";
|
$sql.= " accountancy_account_interest = '".$this->db->escape($this->account_interest)."',";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user