+
+
Pogodba:
{{ item.contract?.reference || "—" }}
@@ -148,7 +142,7 @@ function markRead(item) {
:href="
route('clientCase.show', { client_case: item.client_case.uuid })
"
- class="text-indigo-600 hover:text-indigo-700 hover:underline"
+ class="text-primary hover:underline"
>
{{ item.client_case?.person?.full_name || "—" }}
@@ -157,37 +151,38 @@ function markRead(item) {
Partner: {{ item.contract.client.person.full_name }}
Partner: {{ item.client_case.client.person.full_name }}
-
+
{{ fmtEUR(item.contract?.account?.balance_amount) }}
-
-
+
+
{{ fmtDate(item.due_date) }}
-
+
-
-
-
-
-
+
+
+
+
+
diff --git a/resources/js/Pages/Settings/Workflow/Partials/DecisionTable.vue b/resources/js/Pages/Settings/Workflow/Partials/DecisionTable.vue
index 4dc6f63..d7a42a5 100644
--- a/resources/js/Pages/Settings/Workflow/Partials/DecisionTable.vue
+++ b/resources/js/Pages/Settings/Workflow/Partials/DecisionTable.vue
@@ -265,28 +265,30 @@ const update = () => {
// Transform actions from array of IDs to array of objects
const actionsPayload = form.actions
- .map(id => {
- const action = props.actions.find(a => a.id === Number(id) || a.id === id);
+ .map((id) => {
+ const action = props.actions.find((a) => a.id === Number(id) || a.id === id);
if (!action) {
- console.warn('Action not found for id:', id);
+ console.warn("Action not found for id:", id);
return null;
}
return { id: action.id, name: action.name };
})
.filter(Boolean); // Remove null entries
- form.transform((data) => ({
- ...data,
- actions: actionsPayload
- })).put(route("settings.decisions.update", { id: form.id }), {
- onSuccess: () => {
- closeEditDrawer();
- },
- onError: (errors) => {
- // preserve server errors for display
- scrollToFirstEventError(form.errors, "edit");
- },
- });
+ form
+ .transform((data) => ({
+ ...data,
+ actions: actionsPayload,
+ }))
+ .put(route("settings.decisions.update", { id: form.id }), {
+ onSuccess: () => {
+ closeEditDrawer();
+ },
+ onError: (errors) => {
+ // preserve server errors for display
+ scrollToFirstEventError(form.errors, "edit");
+ },
+ });
};
const store = () => {
@@ -299,27 +301,29 @@ const store = () => {
// Transform actions from array of IDs to array of objects
const actionsPayload = createForm.actions
- .map(id => {
- const action = props.actions.find(a => a.id === Number(id) || a.id === id);
+ .map((id) => {
+ const action = props.actions.find((a) => a.id === Number(id) || a.id === id);
if (!action) {
- console.warn('Action not found for id:', id);
+ console.warn("Action not found for id:", id);
return null;
}
return { id: action.id, name: action.name };
})
.filter(Boolean); // Remove null entries
- createForm.transform((data) => ({
- ...data,
- actions: actionsPayload
- })).post(route("settings.decisions.store"), {
- onSuccess: () => {
- closeCreateDrawer();
- },
- onError: () => {
- scrollToFirstEventError(createForm.errors, "create");
- },
- });
+ createForm
+ .transform((data) => ({
+ ...data,
+ actions: actionsPayload,
+ }))
+ .post(route("settings.decisions.store"), {
+ onSuccess: () => {
+ closeCreateDrawer();
+ },
+ onError: () => {
+ scrollToFirstEventError(createForm.errors, "create");
+ },
+ });
};
function validateEventsClientSide(events) {
@@ -665,7 +669,7 @@ const destroyDecision = () => {