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:
parent
ac201cb0a1
commit
7c2322b22a
1 changed files with 3 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue