fix: use operator's quote_description on the quote PDF

The pricing modal saves quote_description correctly, but the PDF
template rendered item.description unconditionally, so the
operator's edit never showed up on the customer-facing quote.
This commit is contained in:
Dave 2026-09-01 18:09:34 +02:00
parent ac201cb0a1
commit 7c2322b22a

View file

@ -231,7 +231,9 @@ export function QuoteDocument({
key={item.id || idx}
style={[styles.tableRow, ...(idx % 2 === 1 ? [styles.tableRowAlt] : [])]}
>
<Text style={[styles.tableCell, styles.colDescription]}>{item.description}</Text>
<Text style={[styles.tableCell, styles.colDescription]}>
{item.quote_description?.trim() || item.description}
</Text>
<Text style={[styles.tableCell, styles.colQty, styles.alignRight]}>
{item.quantity}
</Text>