Fix comparison

This commit is contained in:
Laurent Destailleur 2019-10-04 09:54:52 +02:00
parent b787e53020
commit 6cd3d27885

View File

@ -4622,7 +4622,7 @@ elseif ($id > 0 || ! empty($ref))
if ($ventilExportCompta == 0)
{
if (! empty($conf->global->INVOICE_CAN_ALWAYS_BE_EDITED) || ($resteapayer == $object->total_ttc && empty($object->paye)))
if (! empty($conf->global->INVOICE_CAN_ALWAYS_BE_EDITED) || ($resteapayer == price2num($object->total_ttc, 'MT', 1) && empty($object->paye)))
{
if (! $objectidnext && $object->is_last_in_cycle())
{