diff --git a/htdocs/accountancy/class/lettering.class.php b/htdocs/accountancy/class/lettering.class.php index 17740467f7a..2c986b5770d 100644 --- a/htdocs/accountancy/class/lettering.class.php +++ b/htdocs/accountancy/class/lettering.class.php @@ -399,7 +399,7 @@ class Lettering extends BookKeeping if ($resql) { if ($obj = $this->db->fetch_object($resql)) { if (!(round(abs($obj->deb), 2) === round(abs($obj->cred), 2))) { - $this->errors[] = 'Total not exacts ' . round(abs($obj->deb), 2) . ' vs ' . round(abs($obj->cred), 2); + $this->errors[] = $langs->trans('ErrorMatchingUnbalanced', price(price2num(abs($obj->deb),'MT')), price(price2num(abs($obj->cred),'MT'))); $error++; } } @@ -703,7 +703,7 @@ class Lettering extends BookKeeping if ($resql) { if ($obj = $this->db->fetch_object($resql)) { if (!(round(abs($obj->deb), 2) === round(abs($obj->cred), 2))) { - $this->errors[] = 'Total not exacts ' . round(abs($obj->deb), 2) . ' vs ' . round(abs($obj->cred), 2); + $this->errors[] = $langs->trans('ErrorMatchingUnbalanced', price(price2num(abs($obj->deb),'MT')), price(price2num(abs($obj->cred),'MT'))); $error++; } } diff --git a/htdocs/langs/en_US/accountancy.lang b/htdocs/langs/en_US/accountancy.lang index b3751444b6d..968d63f214e 100644 --- a/htdocs/langs/en_US/accountancy.lang +++ b/htdocs/langs/en_US/accountancy.lang @@ -229,6 +229,7 @@ LetteringCode=Matching code Lettering=Matching GeneralMatching=General account matching AuxiliaryMatching=Auxiliary account matching +ErrorMatchingUnbalanced=Matching is impossible because it is unbalanced. Debit %s | Credit %s Codejournal=Journal JournalLabel=Journal label NumPiece=Piece number