This commit is contained in:
insvrgent
2025-01-14 14:07:54 +07:00
parent 5d8b2af2c9
commit 1cb8ccf934
9 changed files with 101 additions and 13 deletions

View File

@@ -220,7 +220,7 @@ export default function Invoice({ table, sendParam, deviceType, socket }) {
{table.tableNo != null && (
<div className={styles.OrderTypeContainer}>
<span htmlFor="orderType">Diantar ke meja {table.tableNo}</span>
<span htmlFor="orderType">Diantar ke {table.tableNo}</span>
{/* <select
id="orderType"
value={orderType}

View File

@@ -183,7 +183,7 @@ const LinktreePage = ({ user, setModal }) => {
];
console.log(items)
const selectedItems = items.items?.find(item => (item.userId || item.cafeId) === selectedItemId);
const selectedItems = items?.items?.find(item => (item.userId || item.cafeId) === selectedItemId);
// If the selected tenant is found, extract the cafes
const selectedSubItems = selectedItems?.subItems || [];

View File

@@ -103,7 +103,7 @@ export default function Invoice({ table, sendParam, deviceType, socket }) {
<h2 className={styles["Invoice-detail"]}>
{orderType === "pickup"
? "Diambil di kasir"
: `Diantar ke meja nomor ${table.tableNo || tableNumber || "-"}`}
: `Diantar ke ${table.tableNo || tableNumber || "-"}`}
</h2>
<div className={styles.TotalContainer}>
<span>Total:</span>

View File

@@ -182,7 +182,7 @@ export default function Transactions({ propsShopId, sendParam, deviceType, handl
<h2 className={styles["Transactions-detail"]}>
{transaction.serving_type === "pickup"
? "Ambil sendiri"
: `Diantar ke meja ${transaction.Table ? transaction.Table.tableNo : "N/A"
: `Diantar ke ${transaction.Table ? transaction.Table.tableNo : "N/A"
}`}
</h2>
{transaction.notes != "" && (

View File

@@ -139,7 +139,7 @@ export default function Transactions({ propsShopId, sendParam, deviceType, handl
<p>Pembayaran: {transaction.payment_type}</p>
<p>{transaction.serving_type === "pickup"
? "Ambil sendiri"
: `Diantar ke meja ${transaction.Table ? transaction.Table.tableNo : "N/A"
: `Diantar ke ${transaction.Table ? transaction.Table.tableNo : "N/A"
}`}</p>
</div>
</div>
@@ -163,7 +163,7 @@ export default function Transactions({ propsShopId, sendParam, deviceType, handl
<h2 className={styles["Transactions-detail"]}>
{transaction.serving_type === "pickup"
? "Ambil sendiri"
: `Diantar ke meja ${transaction.Table ? transaction.Table.tableNo : "N/A"
: `Diantar ke ${transaction.Table ? transaction.Table.tableNo : "N/A"
}`}
</h2>
{transaction.notes != "" && (