'
+ buildEmailActionConfig(namePrefix)
@@ -190,6 +205,10 @@
}
if (select.value === 'update_shipment_status') {
configDiv.innerHTML = buildShipmentStatusActionConfig(namePrefix);
+ return;
+ }
+ if (select.value === 'update_order_status') {
+ configDiv.innerHTML = buildOrderStatusActionConfig(namePrefix);
}
}
diff --git a/resources/lang/pl.php b/resources/lang/pl.php
index bcf2255..e754fb3 100644
--- a/resources/lang/pl.php
+++ b/resources/lang/pl.php
@@ -757,7 +757,7 @@ return [
'status_sync_direction' => 'Kierunek synchronizacji statusow',
'status_sync_direction_allegro_to_orderpro' => 'Allegro -> orderPRO',
'status_sync_direction_orderpro_to_allegro' => 'orderPRO -> Allegro',
- 'status_sync_direction_hint' => 'Aktualnie aktywny jest kierunek Allegro -> orderPRO. Ustawienie orderPRO -> Allegro jest przygotowane pod kolejny etap.',
+ 'status_sync_direction_hint' => 'Wybierz kierunek synchronizacji statusow pomiedzy Allegro i orderPRO.',
'status_sync_interval_minutes' => 'Interwal synchronizacji statusow (minuty)',
'status_sync_interval_hint' => 'Zakres: 1-1440 minut. Ustawienie zostanie uzyte przez zadanie synchronizacji statusow.',
'save' => 'Zapisz ustawienia',
diff --git a/resources/scss/app.scss b/resources/scss/app.scss
index 7da52c8..09a22ae 100644
--- a/resources/scss/app.scss
+++ b/resources/scss/app.scss
@@ -2404,7 +2404,7 @@ h4.section-title {
flex-direction: column;
border: 1px solid var(--c-border);
border-radius: 6px;
- overflow: hidden;
+ overflow: visible;
}
.email-tpl-toolbar {
@@ -2424,7 +2424,7 @@ h4.section-title {
position: absolute;
top: 100%;
left: 0;
- z-index: 50;
+ z-index: 300;
min-width: 260px;
max-height: 320px;
overflow-y: auto;
diff --git a/resources/scss/modules/_automation.scss b/resources/scss/modules/_automation.scss
index c88fe4b..132dda0 100644
--- a/resources/scss/modules/_automation.scss
+++ b/resources/scss/modules/_automation.scss
@@ -63,3 +63,39 @@
margin: 0;
}
}
+
+.automation-actions-cell {
+ white-space: nowrap;
+}
+
+.automation-inline-form {
+ display: inline;
+}
+
+.automation-history-filters {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
+ gap: 8px;
+ align-items: end;
+
+ .form-field {
+ margin: 0;
+ }
+
+ .field-label {
+ font-size: 12px;
+ margin-bottom: 4px;
+ }
+
+ .form-control {
+ min-height: 34px;
+ }
+
+ &__actions {
+ display: flex;
+ gap: 6px;
+ align-items: center;
+ justify-content: flex-start;
+ padding-bottom: 1px;
+ }
+}
diff --git a/resources/views/automation/form.php b/resources/views/automation/form.php
index 0ef062e..fc44e1b 100644
--- a/resources/views/automation/form.php
+++ b/resources/views/automation/form.php
@@ -30,6 +30,7 @@ $receiptDuplicatePolicyLabels = [
'allow_duplicates' => 'Wystawiaj kolejne paragony',
];
$shipmentStatusOptions = is_array($shipmentStatusOptions ?? null) ? $shipmentStatusOptions : [];
+$orderStatusOptions = is_array($orderStatusOptions ?? null) ? $orderStatusOptions : [];
?>
@@ -127,6 +128,7 @@ $shipmentStatusOptions = is_array($shipmentStatusOptions ?? null) ? $shipmentSta
+
+
+
- Reguły automatyzacji wykonywane po wystąpieniu zdarzenia.
+ Reguly automatyzacji wykonywane po wystapieniu zdarzenia.
= $e((string) $errorMessage) ?>
@@ -21,82 +57,289 @@ $eventLabels = [
= $e((string) $successMessage) ?>
-
-
-
- Brak zadan automatycznych. Kliknij “Dodaj zadanie” aby utworzyc pierwsza regule.
-
+
+
+
+
+
Brak zadan automatycznych. Kliknij "Dodaj zadanie" aby utworzyc pierwsza regule.
+
+
+
+
+
+ | Nazwa |
+ Zdarzenie |
+ Warunkow |
+ Akcji |
+ Status |
+ Akcje |
+
+
+
+
+
+ | = $e((string) ($rule['name'] ?? '')) ?> |
+ = $e($eventLabels[(string) ($rule['event_type'] ?? '')] ?? (string) ($rule['event_type'] ?? '')) ?> |
+ = (int) ($rule['conditions_count'] ?? 0) ?> |
+ = (int) ($rule['actions_count'] ?? 0) ?> |
+
+
+ Aktywne
+
+ Nieaktywne
+
+ |
+
+ Edytuj
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
- | Nazwa |
+ Kiedy |
Zdarzenie |
- Warunkow |
- Akcji |
+ Regula |
+ Zamowienie |
Status |
- Akcje |
+ Wynik |
-
+
- | = $e((string) ($rule['name'] ?? '')) ?> |
- = $e($eventLabels[(string) ($rule['event_type'] ?? '')] ?? (string) ($rule['event_type'] ?? '')) ?> |
- = (int) ($rule['conditions_count'] ?? 0) ?> |
- = (int) ($rule['actions_count'] ?? 0) ?> |
-
-
- Aktywne
-
- Nieaktywne
-
- |
-
- Edytuj
-
-
-
- |
+ Brak wpisow historii dla wybranych filtrow. |
-
+
+
+
+
+ | = $e((string) ($entry['executed_at'] ?? '')) ?> |
+ = $e($eventLabels[(string) ($entry['event_type'] ?? '')] ?? (string) ($entry['event_type'] ?? '')) ?> |
+ = $e((string) ($entry['rule_name'] ?? '')) ?> |
+
+ 0): ?>
+ #= $entryOrderId ?>
+
+ -
+
+ |
+
+
+ Sukces
+
+ Blad
+
+ = $e($entryStatus) ?>
+
+ |
+ = $e((string) ($entry['result_message'] ?? '')) ?> |
+
+
+
-
+
+ 1): ?>
+
+
+