print for kitchen
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-04-30 10:53:44 +03:30
parent 333643784e
commit 8177f71b3b
4 changed files with 257 additions and 8 deletions
+6
View File
@@ -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}