ordering-ui-react-native 0.22.5 → 0.22.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -77,6 +77,8 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
77
77
|
const [printerSettings, setPrinterSettings] = useState('')
|
|
78
78
|
const [autoPrintEnabled, setAutoPrintEnabled] = useState<boolean>(false)
|
|
79
79
|
|
|
80
|
+
const orderToComplete = [4,20,21]
|
|
81
|
+
|
|
80
82
|
if (order?.status === 7 || order?.status === 4) {
|
|
81
83
|
if (drivers?.length > 0 && drivers) {
|
|
82
84
|
drivers.forEach((driver: any) => {
|
|
@@ -667,7 +669,7 @@ export const OrderDetailsUI = (props: OrderDetailsParams) => {
|
|
|
667
669
|
disabled={loading}
|
|
668
670
|
/>
|
|
669
671
|
)}
|
|
670
|
-
{order?.status
|
|
672
|
+
{orderToComplete.includes(order?.status) && ![1].includes(order?.delivery_type) && (
|
|
671
673
|
<FloatingButton
|
|
672
674
|
btnText={t(
|
|
673
675
|
'ORDER_NOT_PICKEDUP_BY_CUSTOMER',
|