189 lines
13 KiB
YAML
189 lines
13 KiB
YAML
generator:
|
|
class: stAdminGenerator
|
|
param:
|
|
model_class: Order
|
|
order_status_model_class: OrderStatus
|
|
theme: simple
|
|
head:
|
|
package: stOrder
|
|
custom_actions:
|
|
list: [order_status]
|
|
edit: [order_status]
|
|
|
|
documentation:
|
|
pl: "https://www.sote.pl/docs/zamowienia"
|
|
en: "https://www.soteshop.com/docs/orders"
|
|
|
|
order_status_list:
|
|
use_helper: [stOrder]
|
|
title: Statusy
|
|
display: [name, _order_status_type, is_default, has_mail_notification, has_coupon_code, send_delivery_tracking_url]
|
|
fields:
|
|
name: {name: Nazwa, callback: st_order_status}
|
|
order_status_type: {name: Rodzaj}
|
|
is_default: {name: Domyślny}
|
|
has_mail_notification: {name: Powiadomienie e-mail}
|
|
has_coupon_code: {name: Dołącz kod rabatowy}
|
|
send_delivery_tracking_url: {name: Śledzenie przesyłki}
|
|
menu: {use: list.menu}
|
|
actions:
|
|
_create: {name: Dodaj}
|
|
object_actions:
|
|
_edit: -
|
|
_delete: -
|
|
|
|
order_status_edit:
|
|
display:
|
|
"NONE": [name, ~order_status_type, _is_default, _color]
|
|
"Powiadomienie e-mail": [has_mail_notification, _order_status_description, _attach_coupon_code, send_delivery_tracking_url]
|
|
"Kod rabatowy": [_coupon_code_discount, _coupon_code_valid_for]
|
|
"Faktura": [has_invoice_proforma, has_invoice]
|
|
fields:
|
|
color: {name: Kolor}
|
|
name: {name: Nazwa, type: input_tag}
|
|
order_status_type: {name: Rodzaj}
|
|
is_default: {name: Domyślny, help: "Domyślny status jest ustawiany dla każdego nowo złożonego zamówienia. <br/>Domyślnym statusem może być wyłącznie status rodzaju <b>oczekuje</b>"}
|
|
has_mail_notification: {name: Wysyłaj powiadomienie e-mail, help: Powiadomienie e-mail wysyłane jest w momencie wybrania statusu w zamówieniu}
|
|
attach_coupon_code: {name: Dołącz kod rabatowy, type: checkbox_tag, help: "Do powiadomienia e-mail zostanie dołączony jednorazowy kod rabatowy.<br/>Kod rabatowy może być generowany wyłącznie dla statusów rodzaju <b>zrealizowane</b>"}
|
|
has_invoice_proforma: {name: Dołącz link do faktury proforma, type: checkbox_tag, help: Do powiadomienia e-mail zostanie dołączony link do faktury proforma}
|
|
has_invoice: {name: Dołącz link do faktury, type: checkbox_tag, help: Do powiadomienia e-mail zostanie dołączony link do faktury}
|
|
coupon_code_discount: {name: Rabat}
|
|
coupon_code_valid_for: {name: Ważny przez, help: "Określa ilość dni, po upływie których, wygenerowany kod rabatowy staje się nieważny.<br/>Wartość 0 oznacza brak limitu"}
|
|
order_status_description: {name: Opis}
|
|
send_delivery_tracking_url: {name: Dodaj link do śledzenia przesyłki}
|
|
actions:
|
|
_list: {name: Statusy, i18n: stOrder}
|
|
_save: {name: Zapisz}
|
|
_save_and_add: {name: Zapisz i dodaj nowy}
|
|
_delete: {name: Usuń}
|
|
|
|
list:
|
|
use_helper: [stOrder, sfGuardUser]
|
|
title: Lista
|
|
display: [=number, created_at, opt_order_status, assigned_id, is_confirmed, _is_payed, client, _review_order_product_id, _total_amount, _order_import_list]
|
|
mark_as: true
|
|
hide: [assigned_id]
|
|
fields:
|
|
number: {name: Numer, width: 1%}
|
|
client: {name: Klient, callback: st_order_client_name, filterable: false, width: 15%}
|
|
total_amount: {name: Kwota, sort_field: order.opt_total_amount, filterable: false, align: right, width: 1%}
|
|
opt_order_status: {name: Status, callback: st_order_status_by_order, width: 15%}
|
|
created_at: {name: Złożone, filterable: false, width: 1%}
|
|
is_confirmed: {name: Potwierdzone, filterable: false, width: 1%, align: center}
|
|
is_payed: {name: Opłacone, sort_field: order.opt_is_payed, filterable: false, width: 1%, align: center}
|
|
review_order_product_id:{name: Recenzja, filterable: false, width: 1%}
|
|
order_product: {name: Produkt, filterable: false, i18n: stProduct}
|
|
payment: {name: Płatność}
|
|
delivery: {name: Dostawa}
|
|
assigned_id: {name: Opiekun, width: 1%}
|
|
order_import_list: {name: ""}
|
|
|
|
|
|
sort: [created_at, desc]
|
|
menu:
|
|
display: [list, order_status]
|
|
fields:
|
|
list: {name: Lista, action: @stOrderDefault}
|
|
order_status: {name: Statusy, action: stOrder/orderStatusList}
|
|
config: {name: Konfiguracja, action: stOrder/config}
|
|
actions: []
|
|
filters:
|
|
client: {partial: filter_client}
|
|
total_amount: {filter_field: order.opt_total_amount}
|
|
assigned_id: {partial: filter_assigned}
|
|
opt_order_status: {partial: filter_order_status}
|
|
is_payed: {partial: filter_is_payed}
|
|
is_confirmed: {partial: filter_is_confirmed}
|
|
order_product: {partial: filter_order_product}
|
|
created_at: {empty: false}
|
|
payment: {partial: filter_payment}
|
|
delivery: {partial: filter_delivery}
|
|
discount_coupon_code: {name: Kod rabatowy, partial: filter_discount_coupon_code}
|
|
gift_card_coupon_code: {name: Bon zakupowy, partial: filter_gift_card_code}
|
|
|
|
additional_filters: [created_at, order_product, total_amount, client, is_payed, is_confirmed, payment, delivery, discount_coupon_code, gift_card_coupon_code]
|
|
select_actions:
|
|
display:
|
|
"NONE": []
|
|
"Status": { callback: OrderStatusPeer::doSelectCachedArray, action: bulkStatusUpdate }
|
|
"Opłacone": { actions: { 1: Tak, 0: Nie }, action: bulkPaymentStatusUpdate }
|
|
"Potwierdzone": { actions: { 1: Tak, 0: Nie }, action: bulkConfirmedStatusUpdate }
|
|
actions:
|
|
_delete: -
|
|
object_actions:
|
|
_edit: -
|
|
_delete: -
|
|
peer_method: doSelectJoinOrderCurrency
|
|
edit:
|
|
editable: true
|
|
old_config:
|
|
"Punkty": true
|
|
use_helper: [stOrder]
|
|
use_stylesheet: [backend/stOrder.css]
|
|
display:
|
|
"Allegro": [opt_allegro_checkout_form_id, opt_allegro_nick]
|
|
"NONE": [_order_status_id, _assigned_id, created_at, _sf_guard_user, is_confirmed, _proforma, _invoice, _invoice_request, not_professional_purchase_label]
|
|
"Dane bilingowe": [_order_user_billing_data]
|
|
"Dane dostawy": [_order_user_delivery_data]
|
|
"Zawartość": [_order_products]
|
|
"Dostawa": [delivery_type_id, delivery_cost, delivery_is_weekend_delivery, delivery_is_express_delivery, delivery_number]
|
|
"Płatność": [~payment]
|
|
"Punkty": [~points_spend, ~points_earn, ~points_status]
|
|
"Informacje Dodatkowe": [info_client_notes, merchant_notes, info_show_opinion]
|
|
"Podsumowanie": [summary_discount_coupon_code, summary_total_amount, summary_discount, summary_total_amount_to_pay, summary_paid, summary_left_to_pay]
|
|
fields:
|
|
summary_discount_coupon_code: {name: "Kod rabatowy", callback: st_order_summary_discount_coupon_code, type: plain}
|
|
summary_total_amount: {name: Łączna wartość, callback: st_order_summary_total_amount_field, type: plain}
|
|
summary_discount: {name: Udzielony rabat, callback: st_order_summary_discount_field, type: plain}
|
|
summary_total_amount_to_pay: {name: Razem do zapłaty, type: plain, callback: st_order_summary_total_amount_to_pay_field}
|
|
summary_paid: {name: Zapłacono, type: plain, callback: st_order_summary_paid_field}
|
|
summary_left_to_pay: {name: Pozostało do zapłaty, type: plain, callback: st_order_summary_left_to_pay_field}
|
|
delivery_type_id: {name: Rodzaj, type: plain, callback: st_order_delivery_type_id_field}
|
|
delivery_cost: {name: Koszt, type: plain, callback: st_order_delivery_cost_field}
|
|
delivery_is_weekend_delivery: {name: Dostawa w weekend, type: plain, callback: st_order_delivery_is_weekend_delivery_field, i18n: stDeliveryBackend}
|
|
delivery_is_express_delivery: {name: Dostawa ekspresowa, type: plain, callback: st_order_delivery_is_express_delivery_field, i18n: stDeliveryBackend}
|
|
delivery_number: {name: Numer przesyłki, type: plain, callback: st_order_delivery_number_field}
|
|
order_user_billing_data: {hide_label: true}
|
|
order_user_delivery_data: {hide_label: true}
|
|
not_professional_purchase_label: {name: Zakup o charakterze zawodowym, type: plain}
|
|
opt_allegro_checkout_form_id: {name: Numer zamówienia, type: plain, i18n: stAllegroBackend}
|
|
opt_allegro_nick: {name: Nazwa użytkownika, type: plain, i18n: stAllegroBackend}
|
|
order_status_id: {name: Status, params: text_method=getNameWithMailNotification}
|
|
assigned_id: {name: Opiekun}
|
|
culture: {name: Złożone w języku}
|
|
amount_to_pay: {name: Do zapłaty}
|
|
sf_guard_user: {name: Klient, type: plain}
|
|
created_at: {name: Złożone, type: plain}
|
|
order_products: {hide_label: true}
|
|
delivery: {hide_label: true}
|
|
payment: {name: Płatność, hide_label: true}
|
|
total_amount_summary: {hide_label: true}
|
|
discount_coupon_code: {name: Kod rabatowy}
|
|
is_confirmed: {name: Potwierdzone}
|
|
proforma: {name: Faktura proforma, type: plain}
|
|
invoice: {name: Faktura VAT, type: plain}
|
|
invoice_request: {name: Klient prosi o fakturę, type: plain}
|
|
points_spend: {name: Wydane}
|
|
points_earn: {name: Zarobione}
|
|
points_status: {name: Rozliczone}
|
|
info_client_notes: {name: Uwagi od klienta, callback: st_order_info_client_notes_field, type: custom}
|
|
merchant_notes: {name: Notatki sprzedawcy, help: Notatki sprzedawcy nie są widoczne dla klienta}
|
|
info_show_opinion: {name: Zgoda na przesyłanie danych w celu zbadania opinii, callback: st_order_info_show_opinion_field, type: custom}
|
|
actions:
|
|
_delete: {name: Usuń}
|
|
_list: {name: Lista}
|
|
_printPdf: {name: Pobierz, action: printPdf, i18n: stOrder, icon: download}
|
|
_save: {name: Zapisz}
|
|
config:
|
|
title: Konfiguracja
|
|
menu: {use: list.menu}
|
|
display:
|
|
"NONE": [number_format, _min_amount, show_not_professional_purchase, disable_min_amount_for_uk]
|
|
fields:
|
|
number_format: {name: Format numeru zamówienia, params: size=50, help: "Dostępne parametry: {NUMER}, {DZIEN}, {MIESIAC}, {ROK}", i18n: stOrder}
|
|
min_amount: {name: Minimalna wartość zamówienia, help: Wartość 0 oznacza brak progu}
|
|
show_not_professional_purchase: {name: Aktywuj zakup o charakterze niezawodowym dla firm, help: W zamówieniu dla firm pojawi się dodatkowa opcja oznaczenia zakupu jako niezawodowy., type: checkbox}
|
|
disable_min_amount_for_uk: {name: Wyłącz minimalną wartość zamówienia dla Wielkiej Brytanii, help: Wyłącza wymuszone sprawdzanie minimalnej wartości zamówienia wynoszącej 135 funtów dla klientów z Wielkiej Brytanii, type: checkbox_tag}
|
|
actions:
|
|
_save: {name: Zapisz konfigurację, i18n: stOrder}
|