feat : ajout de commentaire

This commit is contained in:
2026-01-30 09:12:59 +01:00
parent 81e624100d
commit c0f113547e
6 changed files with 66 additions and 12 deletions

View File

@@ -62,10 +62,12 @@ const {
updateReception: receptionStore.updateReception,
loadReception: receptionStore.loadReception
})
// Affiche le bouton de génération du bon à l'étape tare
const showGenerateReceipt = computed(
() => props.mode === 'tare' && displayWeight.value !== null
)
// Génère le bon de réception, puis clôture la réception
const printReceipt = async () => {
if (!import.meta.client || !receptionStore.current) {
return
@@ -88,6 +90,7 @@ const printReceipt = async () => {
await router.push('/')
}
// Récupère le poids dès l'arrivée sur l'écran
onMounted(() => {
fetchWeight()
})