+
) : transaction.confirmed === 3 ? (
- "Transaction success"
+
) : (
@@ -196,7 +221,7 @@ export default function Transactions({ shop, shopId, propsShopId, sendParam, dev
)}
:
{transaction.confirmed === 1 ? (
- "Silahkan Bayar Dengan QRIS"
+ (transaction.payment_type == 'cash' ? 'Silahkan Bayar Ke Kasir' : "Silahkan Bayar Dengan QRIS")
) : transaction.confirmed === -1 ? (
"Dibatalkan Oleh Kasir"
) : transaction.confirmed === -2 ? (
@@ -268,15 +293,15 @@ export default function Transactions({ shop, shopId, propsShopId, sendParam, dev
Rp {calculateTotalPrice(transaction.DetailedTransactions)}
+
- {(deviceType == 'clerk' && (transaction.confirmed == 0 || transaction.confirmed == 1 || transaction.confirmed == 2)) ||
- (deviceType == 'guestDevice' && (transaction.confirmed == 0))&&
+ {(deviceType == 'clerk' && (transaction.confirmed == 0 || transaction.confirmed == 1 || transaction.confirmed == 2)) &&
}
- {transaction.payment_type != 'cash' && transaction.payment_type != 'paylater/cash' &&
+ {deviceType == 'guestDevice' && transaction.confirmed < 2 && transaction.payment_type != 'cash' && transaction.payment_type != 'paylater/cash' &&
- {transaction.payment_type == 'cash' ?
+ {deviceType == 'guestDevice' && transaction.confirmed >=0 && transaction.confirmed < 2 && transaction.payment_type == 'cash' ?
:
- ((transaction.payment_type != 'paylater/cash' && transaction.payment_type != 'paylater/cashless' || isPaymentOpen) &&
+ ((transaction.confirmed >= 0 && transaction.confirmed < 2 && transaction.payment_type != 'paylater/cash' && transaction.payment_type != 'paylater/cashless' || isPaymentOpen) &&
@@ -358,14 +378,6 @@ export default function Transactions({ shop, shopId, propsShopId, sendParam, dev
)
}
- {transaction.confirmed == 0 && (
- handleDecline(transaction.transactionId)}
- >
- decline
-
- )}
))}