This commit is contained in:
Viet An
2026-07-02 09:07:59 +07:00
parent 1fc8532ed8
commit e91f0d22c4
52 changed files with 131 additions and 159 deletions

View File

@@ -1,17 +1,16 @@
<script setup>
import useOrderInfo from "~/components/pos/composables/useOrderInfo";
const props = defineProps({
invoiceId: Number,
finalizeOrder: Function,
});
const { activeCartItems } = useActiveCart();
const subtotal = computed(() => {
return activeCartItems.value?.reduce((prev, curr) => prev + curr.imei__variant__price, 0);
});
const { total } = useOrderInfo();
</script>
<template>
<div class="is-flex is-flex-direction-column is-gap-2 is-align-items-center">
<NuxtImg
:src="qr(subtotal)"
:src="$qr(total)"
class="h-full max-h-140"
alt="VietQR code"
/>