Compare commits

..

No commits in common. "5580b53bfdcf4069badebf34d0621a0dffe12d95" and "ee12b9c8d8ad2d14579e45cae0370af05a31bf8d" have entirely different histories.

4 changed files with 16 additions and 18 deletions

View File

@ -142,7 +142,7 @@ docker compose --env-file .env.production up -d --build
docker exec -it abbauf_kasir_app php artisan migrate --seed
# Atau import database secara manual
docker exec -i abbauf_kasir_db mysql -u kasir_user -pkasir_password kasir_db < ./storage/toko_emas.sql
docker exec -i abbauf_kasir_db mysql -u kasir_user -pkasir_password kasir_db < ./toko_emas.sql
# Periksa database (opsional)
docker exec -it abbauf_kasir_db bash

View File

@ -102,7 +102,7 @@ const printBarcode = () => {
display: flex;
flex-direction: column;
gap: 0.5mm;
font-size: 8pt;
font-size: 5pt;
line-height: 1.2;
}
@ -116,12 +116,12 @@ const printBarcode = () => {
}
.item-name {
font-size: 8pt;
font-size: 6pt;
line-height: 1.1;
white-space: normal;
word-wrap: break-word;
position: absolute;
width: 34mm;
width: 36mm;
text-align: center;
transform: rotate(270deg);
transform-origin: center;

View File

@ -255,7 +255,7 @@ const fetchSales = async () => {
headers: { Authorization: `Bearer ${localStorage.getItem("token")}` }
})
salesOptions.value = res.data.map(s => ({ value: s.id, label: s.nama }))
selectedSales.value = ''
if (salesOptions.value.length > 0) selectedSales.value = salesOptions.value[0].value
} catch (e) {
console.error('Error fetching sales:', e)
}

View File

@ -3,19 +3,17 @@
<div class="p-6">
<p class="font-serif italic text-[25px] text-D">NAMPAN</p>
<div class="w-full flex justify-end">
<div class="flex flex-col gap-3 justify-between w-full md:w-75 my-3">
<Searchbar v-model:search="searchQuery" />
<div class="flex w-full gap-2" v-if="isAdmin">
<button @click="openModal" class="px-4 py-2 sm:px-2 sm:py-1 hover:bg-B bg-C rounded-md shadow w-full">
Tambah Nampan
</button>
<button @click="promptEmptyAllTrays"
class="px-4 py-2 sm:px-2 sm:py-1 bg-red-500 hover:bg-red-600 text-white rounded-md w-full">
Kosongkan Semua Nampan
</button>
</div>
</div>
<div class="flex flex-col gap-3 justify-end w-full sm:w-auto my-3">
<Searchbar v-model:search="searchQuery" />
<div class="flex w-full gap-2" v-if="isAdmin">
<button @click="openModal" class="px-4 py-2 sm:px-2 sm:py-1 hover:bg-B bg-C rounded-md shadow w-full">
Tambah Nampan
</button>
<button @click="promptEmptyAllTrays"
class="px-4 py-2 sm:px-2 sm:py-1 bg-red-500 hover:bg-red-600 text-white rounded-md w-full">
Kosongkan Semua Nampan
</button>
</div>
</div>
</div>