Skip to content

Commit

Permalink
fix: tli order invoices detail display email
Browse files Browse the repository at this point in the history
  • Loading branch information
TedxTed committed Jan 13, 2025
1 parent 23c665f commit 79acf32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/sale/OrderDetailDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ const OrderDetailDrawer: React.FC<{
i.createdAt ? dayjs(i.createdAt).tz(currentTimeZone).format('YYYY-MM-DD HH:mm:ss') : ''
}
invoiceNumber={i.no}
invoiceName={orderLog.invoiceOptions?.name || ''}
invoiceName={i.options?.Result?.['BuyerName'] || ''}
invoicePhone={orderLog.invoiceOptions?.phone || ''}
invoiceEmail={orderLog.invoiceOptions?.email || ''}
invoiceEmail={i.options?.Result?.['BuyerEmail'] || ''}
invoiceTarget={
orderLog.invoiceOptions?.donationCode
? formatMessage(saleMessages.OrderDetailDrawer.invoiceTargetDonation)
Expand All @@ -181,8 +181,8 @@ const OrderDetailDrawer: React.FC<{
? formatMessage(saleMessages.OrderDetailDrawer.citizenCode)
: ''
}
uniformNumber={orderLog.invoiceOptions?.uniformNumber || ''}
uniformTitle={orderLog.invoiceOptions?.uniformTitle || ''}
uniformNumber={i.options?.Result?.['BuyerUBN'] || ''}
uniformTitle={i.options?.Result?.['BuyerName'] || ''}
invoiceAddress={`${orderLog.invoiceOptions?.postCode || ''} ${
orderLog.invoiceOptions?.address || ''
}`}
Expand Down

0 comments on commit 79acf32

Please sign in to comment.