Skip to content
Snippets Groups Projects
Commit a3519638 authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] l10n_fr_fec: EcritureLib

Make sure `EcritureLib` is always filled in if the AML name is an empty string.

opw-2000429
parent 84e2c85b
Branches
Tags
No related merge requests found
......@@ -306,7 +306,7 @@ class AccountFrFec(models.TransientModel):
END
AS PieceRef,
TO_CHAR(am.date, 'YYYYMMDD') AS PieceDate,
CASE WHEN aml.name IS NULL THEN '/' ELSE replace(replace(aml.name, '|', '/'), '\t', '') END AS EcritureLib,
CASE WHEN aml.name IS NULL OR aml.name = '' THEN '/' ELSE replace(replace(aml.name, '|', '/'), '\t', '') END AS EcritureLib,
replace(CASE WHEN aml.debit = 0 THEN '0,00' ELSE to_char(aml.debit, '000000000000000D99') END, '.', ',') AS Debit,
replace(CASE WHEN aml.credit = 0 THEN '0,00' ELSE to_char(aml.credit, '000000000000000D99') END, '.', ',') AS Credit,
CASE WHEN rec.name IS NULL THEN '' ELSE rec.name END AS EcritureLet,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment