Openbravo Issue Tracking System - Retail Modules
View Issue Details
0058295Retail ModulesCoupons OTFpublic2025-03-20 13:192025-03-27 11:59
joniturralde93 
guilleaer 
urgentminoralways
closedduplicate 
5
 
 
OBPS
124231
No
0058295: Bad management of discount coupon description lines (print receipt)
There are some issues in the handling of ORF Coupons Generation Rules - Print subtab - field Print Description

Issue 1:
Bad management of long words. If the word itself exceeds 42 characters, or together with the next word the line exceeds 42 characters, a line longer than 42 will be sent to print template.

Issue 2:
Bad management of linejumps in backoffice description configuration. The linejump will be handled as any other character inside one "line" in the javascript, thus cutting the line when there is actually more space. Linejumps in configuration should also finish current line in javascript.

The code is here:
https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.retail.discounts.coupons.otf/-/blob/master/web/org.openbravo.retail.discounts.coupons.otf/js/utils.js?ref_type=heads#L642 [^]

Text example that fails for the customer:
Bon d’achat uniquement valable dans les magasins Carter-Cash participants, pour tout achat d’un montant
minimum de 15€ (hors prestations, produits consignés et livraison express). Non cessible, non fractionnable, non remboursable, non échangeable, non cumulable, ne pouvant donner lieu à aucun rendu de monnaie, non remplaçable en cas de perte, vol ou pour tout autre motif.
Règlement de l’opération commerciale sur www.carter-cash.com/page/reglements
Carter-Cash - 2A boulevard Van Gogh, 59650 Villeneuve d’Ascq - SAS au capital de 406 750 euros / RCS Lille Métropole 440 948 578
Ne pas jeter sur la voie publique - Reproduction interdite

URL In case you need to copy directly:
https://cartercash-recette.cloud.openbravo.com/openbravo/?tabId=837C7B53A45646818775C745F4693734&recordId=A4B4545C2B7C4CD480785DDDAB7F791E [^]

Picture of the result attached.
Configure the text in There are some issues in the handling of ORF Coupons Generation Rules - Print subtab - field Print Description

Bon d’achat uniquement valable dans les magasins Carter-Cash participants, pour tout achat d’un montant
minimum de 15€ (hors prestations, produits consignés et livraison express). Non cessible, non fractionnable, non remboursable, non échangeable, non cumulable, ne pouvant donner lieu à aucun rendu de monnaie, non remplaçable en cas de perte, vol ou pour tout autre motif.
Règlement de l’opération commerciale sur www.carter-cash.com/page/reglements
Carter-Cash - 2A boulevard Van Gogh, 59650 Villeneuve d’Ascq - SAS au capital de 406 750 euros / RCS Lille Métropole 440 948 578
Ne pas jeter sur la voie publique - Reproduction interdite

URL In case you need to copy directly:
https://cartercash-recette.cloud.openbravo.com/openbravo/?tabId=837C7B53A45646818775C745F4693734&recordId=A4B4545C2B7C4CD480785DDDAB7F791E [^]


The printed text is wrongly formatted
No tags attached.
png image (4).png (633,176) 2025-03-20 13:19
https://issues.openbravo.com/file_download.php?file_id=21067&type=bug
Issue History
2025-03-20 13:19joniturralde93New Issue
2025-03-20 13:19joniturralde93Assigned To => Retail
2025-03-20 13:19joniturralde93File Added: image (4).png
2025-03-20 13:19joniturralde93OBNetwork customer => OBPS
2025-03-20 13:19joniturralde93Support ticket => 124231
2025-03-20 13:19joniturralde93Triggers an Emergency Pack => No
2025-03-20 15:15guillermogilSeveritymajor => minor
2025-03-26 08:28guilleaerAssigned ToRetail => guilleaer
2025-03-26 08:28guilleaerStatusnew => acknowledged
2025-03-27 11:59hgbotNote Added: 0177348
2025-03-27 11:59hgbotStatusacknowledged => closed
2025-03-27 11:59hgbotResolutionopen => duplicate

Notes
(0177348)
hgbot   
2025-03-27 11:59   
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24080 [^]