diff --git a/TODO b/TODO index 0604b1c..8a44717 100755 --- a/TODO +++ b/TODO @@ -4,16 +4,16 @@ None To fix : ======== -* Best way to not cache the username on index page +* Better way to not cache the username on index page Improvements : ============== -* French template * User groups * Search invoice * JSON output => do index view * API * cf TODO in files +* README file Manage paybacks : ================= diff --git a/inc/Invoices.class.php b/inc/Invoices.class.php index 78e1b1d..56f00ae 100644 --- a/inc/Invoices.class.php +++ b/inc/Invoices.class.php @@ -73,6 +73,7 @@ } public function setAmount ($amount) { + $amount = str_replace(',', '.', $amount); $this->amount = (int) ($amount * 100); // Amount is stored in cents } diff --git a/inc/Paybacks.class.php b/inc/Paybacks.class.php index abdc34d..3049e62 100644 --- a/inc/Paybacks.class.php +++ b/inc/Paybacks.class.php @@ -64,6 +64,7 @@ } public function setAmount($amount) { + $amount = str_replace(',', '.', $amount); $this->amount = (int) ($amount * 100); // Amount is stored in cents } diff --git a/tpl/default_en/connection.html b/tpl/default_en/connection.html index f1e722a..f0bdb1a 100644 --- a/tpl/default_en/connection.html +++ b/tpl/default_en/connection.html @@ -1,6 +1,6 @@ {include="header"} -