)}
{modalContent === "transaction_canceled" && (
diff --git a/src/pages/Transaction.js b/src/pages/Transaction.js
index 3a34ccc..3d11cad 100644
--- a/src/pages/Transaction.js
+++ b/src/pages/Transaction.js
@@ -11,7 +11,7 @@ import { getTables } from "../helpers/tableHelper";
import TableCanvas from "../components/TableCanvas";
import { useSearchParams } from "react-router-dom";
-export default function Transactions({ propsShopId, sendParam, deviceType, handleMoveToTransaction, depth, shopImg }) {
+export default function Transactions({ propsShopId, sendParam, deviceType, handleMoveToTransaction, depth, shopImg, setModal }) {
const { shopId, tableId } = useParams();
if (sendParam) sendParam({ shopId, tableId });
@@ -231,6 +231,22 @@ export default function Transactions({ propsShopId, sendParam, deviceType, handl
))}
+
+ {!transaction.is_paid && transaction.confirmed > -1 &&
+ {
+ localStorage.setItem('lastTransaction', JSON.stringify(transaction));
+ setModal("message", { captMessage: 'Silahkan tambahkan pesanan', descMessage: 'Pembayaran akan ditambahkan ke transaksi sebelumnya.' }, null, null);
+
+ // Dispatch the custom event
+ window.dispatchEvent(new Event("localStorageUpdated"));
+ }}
+ className={styles["addNewItem"]}
+ >
+ Tambah pesanan
+
+ }
+
{transaction.serving_type === "pickup"
? "Ambil sendiri"