Skip to content

Commit

Permalink
Merge pull request #12562 from atm-maxime/fix_loan_update_rate
Browse files Browse the repository at this point in the history
Fix #12502 : loan rate wasn't updatable
  • Loading branch information
eldy authored Nov 30, 2019
2 parents 8656143 + 9116110 commit f0cc559
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/loan/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
}
else
{
print $object->rate . '%';
print price($object->rate) . '%';
}
print '</td></tr>';

Expand Down
1 change: 1 addition & 0 deletions htdocs/loan/class/loan.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ function update($user)
$sql.= " datestart='".$this->db->idate($this->datestart)."',";
$sql.= " dateend='".$this->db->idate($this->dateend)."',";
$sql.= " nbterm=".$this->nbterm.",";
$sql.= " rate=".$this->db->escape($this->rate).",";
$sql.= " accountancy_account_capital = '".$this->db->escape($this->account_capital)."',";
$sql.= " accountancy_account_insurance = '".$this->db->escape($this->account_insurance)."',";
$sql.= " accountancy_account_interest = '".$this->db->escape($this->account_interest)."',";
Expand Down

0 comments on commit f0cc559

Please sign in to comment.