mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Updates for number rounding with negative numbers
This commit is contained in:
parent
b8abf9b3f8
commit
7d871edd4e
@ -238,7 +238,9 @@ class Number
|
||||
$precision = 2;
|
||||
} elseif ($v < 1) {
|
||||
$precision = strlen($v) - strrpos($v, '.') - 1;
|
||||
} elseif(is_array($parts) && $parts[0] != 0) {
|
||||
}
|
||||
|
||||
if(is_array($parts) && $parts[0] != 0) {
|
||||
$precision = 2;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user