mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
Fixing decimal bug
This commit is contained in:
parent
3f28193dd5
commit
d7f4d63c95
|
|
@ -154,7 +154,8 @@ class Money implements \Serializable
|
||||||
}
|
}
|
||||||
|
|
||||||
$right = substr($right, 0, -self::MAX_DECIMALS);
|
$right = substr($right, 0, -self::MAX_DECIMALS);
|
||||||
return (int) $left * 100000 + (int) $right;
|
|
||||||
|
return (int) $left * 10 * self::MAX_DECIMALS + (int) $right;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user