|
|
@@ -1,4 +1,5 @@
|
|
1
|
1
|
<script setup>
|
|
|
2
|
+import { Link } from '@inertiajs/inertia-vue3'
|
|
2
|
3
|
import { useForm } from '@/composables/useForm'
|
|
3
|
4
|
import { IDRCurrencyFormat } from '@/utils/helpers'
|
|
4
|
5
|
import { cartTable } from './config'
|
|
|
@@ -25,6 +26,8 @@ const form = useForm({
|
|
25
|
26
|
})
|
|
26
|
27
|
|
|
27
|
28
|
const { cart, totalCartPrice } = useCart(form, props.saleDetail)
|
|
|
29
|
+
|
|
|
30
|
+const back = () => history.back()
|
|
28
|
31
|
</script>
|
|
29
|
32
|
|
|
30
|
33
|
<template>
|
|
|
@@ -96,7 +99,7 @@ const { cart, totalCartPrice } = useCart(form, props.saleDetail)
|
|
96
|
99
|
</div>
|
|
97
|
100
|
</div>
|
|
98
|
101
|
|
|
99
|
|
- <div class="col-12 flex justify-content-end">
|
|
|
102
|
+ <div class="col-12 flex flex-column sm:flex-row justify-content-end">
|
|
100
|
103
|
<AppButtonLink
|
|
101
|
104
|
label="Cetak Invoice"
|
|
102
|
105
|
icon="pi pi-print"
|
|
|
@@ -106,8 +109,18 @@ const { cart, totalCartPrice } = useCart(form, props.saleDetail)
|
|
106
|
109
|
/>
|
|
107
|
110
|
</div>
|
|
108
|
111
|
|
|
109
|
|
- <div class="col-12 flex justify-content-end">
|
|
|
112
|
+ <div
|
|
|
113
|
+ class="col-12 flex flex-column sm:flex-row justify-content-between gap-3"
|
|
|
114
|
+ >
|
|
|
115
|
+ <Button
|
|
|
116
|
+ label="Kembali ke history pembelian"
|
|
|
117
|
+ class="p-button-text flex-order-2 sm:flex-order-1"
|
|
|
118
|
+ icon="pi pi-angle-left"
|
|
|
119
|
+ @click="back"
|
|
|
120
|
+ />
|
|
|
121
|
+
|
|
110
|
122
|
<AppButtonLink
|
|
|
123
|
+ class="flex-order-1 sm:flex-order-2"
|
|
111
|
124
|
label="Cetak Delivery Order"
|
|
112
|
125
|
icon="pi pi-print"
|
|
113
|
126
|
target="_blank"
|