This commit is contained in:
Viet An
2026-07-03 09:24:05 +07:00
parent f519573c19
commit 4404c4654b
22 changed files with 59 additions and 39 deletions

View File

@@ -37,8 +37,10 @@ export const usePosStore = defineStore("pos", () => {
async function changeCustomer(cusId) {
isChangingCus.value = true;
const updatedCart = await $patchapi("Cart", {
id: activeCartId.value,
customer: cusId,
data: {
id: activeCartId.value,
customer: cusId,
},
});
await getCarts();
isChangingCus.value = false;