This commit is contained in:
@@ -17,6 +17,7 @@ import PaymentInfo from './components/PaymentInfo'
|
||||
import OrderActions from './components/OrderActions'
|
||||
import { toast } from 'react-toastify'
|
||||
import { extractErrorMessage } from '@/config/func'
|
||||
import { printOrderReceipt } from './print/orderReceiptPrint'
|
||||
|
||||
const OrderDetails: FC = () => {
|
||||
const { id } = useParams()
|
||||
@@ -197,6 +198,10 @@ const OrderDetails: FC = () => {
|
||||
setShowRefundModal(false)
|
||||
}
|
||||
|
||||
const handlePrintOrder = () => {
|
||||
printOrderReceipt(order)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='mt-5'>
|
||||
<div className='flex justify-between items-center'>
|
||||
@@ -228,6 +233,7 @@ const OrderDetails: FC = () => {
|
||||
getPaymentStatusText={getPaymentStatusText}
|
||||
/>
|
||||
<OrderActions
|
||||
onPrint={handlePrintOrder}
|
||||
showVerifyCashPaymentButton={showVerifyCashPaymentButton}
|
||||
showSendToKitchenButton={showSendToKitchenButton}
|
||||
showCancelButton={showCancelButton}
|
||||
|
||||
Reference in New Issue
Block a user