Skip to content

Commit

Permalink
Change lineBreakSize + change showTicket.
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Viala <axel.viala@darnuria.eu>
  • Loading branch information
jean140950 and darnuria committed Nov 22, 2020
1 parent bb1cce3 commit f9bdf46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ function prepare_data(tickets, metadata) {
* Code de gestion de l'impression
*/

const dashBreak = '<p>--------------------------------------------------------------------------------</p>';
const dashBreak = '<p>-----------------------------------</p>';

/**
* Fonction qui permet d'afficher les différents types de Tickets dans le cas des pesées qui
Expand All @@ -559,7 +559,7 @@ const dashBreak = '<p>----------------------------------------------------------
*/
function showTickets(data, unit = 'kg') {
const item = (data.hasOwnProperty('items') && data.items.length > 0
? `<p>Objets</p>${dashBreak}${showTicket(data.items, window.OressourceEnv.types_dechet, unit)}`
? `<p>Ventes</p>${dashBreak}${showTicket(data.items, window.OressourceEnv.types_dechet, unit)}`
: '');
return item + (data.hasOwnProperty('evacs') && data.evacs.length > 0
? `<p>Matériaux</p>${dashBreak}${showTicket(data.evacs, window.OressourceEnv.types_evac, unit)}`
Expand Down

0 comments on commit f9bdf46

Please sign in to comment.