mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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…
x
Reference in New Issue
Block a user