diff --git a/frontend/pages/reception/finish-reception.vue b/frontend/pages/reception/finish-reception.vue
index 63fbc20..ef1be1c 100644
--- a/frontend/pages/reception/finish-reception.vue
+++ b/frontend/pages/reception/finish-reception.vue
@@ -20,6 +20,7 @@
class="grid grid-cols-6 gap-4 px-4 py-3 text-sm hover:bg-slate-50 cursor-pointer border-t border-slate-200"
role="button"
tabindex="0"
+ @click="goToReception(reception.id)"
>
{{ reception.identificationNumber}}
{{ reception.receptionDate}}
@@ -47,6 +48,10 @@ const formatWeighing = (reception: ReceptionData, type: 'gross' | 'tare') => {
return `${entry.weight} kg`
}
+const goToReception = (id: number) => {
+ router.push(`/reception/update/${id}`)
+}
+
onMounted(async () => {
receptionList.value = await getReceptionList(true)
})
diff --git a/frontend/pages/reception/update/[[id]].vue b/frontend/pages/reception/update/[[id]].vue
new file mode 100644
index 0000000..b713e19
--- /dev/null
+++ b/frontend/pages/reception/update/[[id]].vue
@@ -0,0 +1,531 @@
+
+
+
+
+
+
diff --git a/src/Entity/Carrier.php b/src/Entity/Carrier.php
index b0fa17f..048fd51 100644
--- a/src/Entity/Carrier.php
+++ b/src/Entity/Carrier.php
@@ -26,11 +26,13 @@ use Symfony\Component\Serializer\Attribute\Groups;
new Post(
normalizationContext: ['groups' => ['carrier:read']],
denormalizationContext: ['groups' => ['carrier:write']],
+ security: "is_granted('ROLE_ADMIN')"
),
new Patch(
requirements: ['id' => '\d+'],
normalizationContext: ['groups' => ['carrier:read']],
denormalizationContext: ['groups' => ['carrier:write']],
+ security: "is_granted('ROLE_ADMIN')"
),
],
security: "is_granted('ROLE_USER')",