FIX : round MT in accountancy books
This commit is contained in:
parent
5648205beb
commit
284a4189b3
@ -670,7 +670,7 @@ if (! $error && $action == 'writebookkeeping') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (price2num($totaldebit) != price2num($totalcredit))
|
if (price2num($totaldebit, 'MT') != price2num($totalcredit, 'MT'))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
$errorforline++;
|
$errorforline++;
|
||||||
|
|||||||
@ -349,7 +349,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Protection against a bug on line before
|
// Protection against a bug on line before
|
||||||
if (price2num($totaldebit) != price2num($totalcredit))
|
if (price2num($totaldebit, 'MT') != price2num($totalcredit, 'MT'))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
$errorforline++;
|
$errorforline++;
|
||||||
|
|||||||
@ -513,7 +513,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Protection against a bug on lines before
|
// Protection against a bug on lines before
|
||||||
if (! $errorforline && (price2num($totaldebit) != price2num($totalcredit)))
|
if (! $errorforline && (price2num($totaldebit, 'MT') != price2num($totalcredit, 'MT')))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
$errorforline++;
|
$errorforline++;
|
||||||
|
|||||||
@ -467,7 +467,7 @@ if ($action == 'writebookkeeping') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Protection against a bug on lines before
|
// Protection against a bug on lines before
|
||||||
if (! $errorforline && (price2num($totaldebit) != price2num($totalcredit)))
|
if (! $errorforline && (price2num($totaldebit, 'MT') != price2num($totalcredit, 'MT')))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
$errorforline++;
|
$errorforline++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user