feat: afficher fournisseur dans les libellés front
This commit is contained in:
@@ -68,7 +68,7 @@ const renderPrintPieces = (
|
||||
const constructeurBadges = (piece.constructeurs || [])
|
||||
.map((constructeur, badgeIdx) => {
|
||||
const suffix = piece.constructeurs.length > 1 ? ` ${badgeIdx + 1}` : ''
|
||||
return `<span class="print-badge print-badge--subtle">Constructeur${suffix}: ${constructeur.name}</span>`
|
||||
return `<span class="print-badge print-badge--subtle">Fournisseur${suffix}: ${constructeur.name}</span>`
|
||||
})
|
||||
.join('')
|
||||
|
||||
@@ -107,7 +107,7 @@ const renderPrintPieces = (
|
||||
${piece.description ? `<p class="print-piece-description">${piece.description}</p>` : ''}
|
||||
<div class="print-piece-meta">
|
||||
<div class="print-field-mini">
|
||||
<label>Constructeur(s)</label>
|
||||
<label>Fournisseur(s)</label>
|
||||
<span>${piece.constructeurs?.length
|
||||
? piece.constructeurs.map(constructeur => constructeur.name).join(', ')
|
||||
: '—'}</span>
|
||||
|
||||
Reference in New Issue
Block a user