generator: class: stAdminGenerator param: model_class: GroupPrice product_model_class: Product currency_price_model_class: AddGroupPrice theme: simple head: package: stGroupPricePlugin custom_actions: list: [currency_price, product] edit: [currency_price] documentation: pl: "https://www.sote.pl/docs/grupy-cenowe" en: "https://www.soteshop.com/docs/price_groups" list: title: Lista grup cenowych description: Grupy cen w sklepie display: [name, _list_type, =_product_count] fields: list_type: {name: Rodzaj} name: {name: Grupa} product_count: {name: Produktów, align: center, params: link_to="@stGroupPricePlugin?action=productList&group_price_id=%%id%%&filters[assigned_product]=1"} actions: _create: {name: Dodaj} object_actions: _edit: - _delete: - menu: display: [list] fields: list: {name: Lista grup cenowych, action: stGroupPriceBackend/list} edit: title: Edycja grupy display: NONE: [name, _group_type] "Zmień jedną cenę": [_price_type, price_modifier] "Ustaw szablon cen": [_tax_id, _price, _old_price, _wholesale] fields: name: {name: Nazwa grupy, required: true} group_type: {name: Rodzaj} tax_id: {name: Vat} price: {name: Cena} old_price: {name: Stara cena} wholesale: {name: Ceny hurtowe} price_type: {name: Zmień} price_modifier: {name: Modyfikator ceny, help: "Podaj wartość np:
10.00 - ustawi jako nowa cene 10.00
+10.00 - doda do aktualnej ceny 10.00
-10.00 - odejmie od aktualnej ceny 10.00
+10% - doda do aktualnej ceny 10%
-10% - odejemie od aktualnej ceny 10%"} actions: _list: {name: Pokaż listę} _save_and_add: {name: Zapisz i synchronizuj, hide_on_create: true, icon: refresh} _save: {name: Zapisz} _delete: {name: Usuń} menu: display: [currency_price, assign_product] fields: edit: {name: Edycja grupy cenowej} currency_price: {name: Ceny grupy w walutach, i18n: appAddPriceBackend, action: "@stGroupPricePlugin?action=currencyPriceList&group_price_id=%%id%%"} assign_product: {name: Przypisz produkty, action: "@stGroupPricePlugin?action=productList&group_price_id=%%id%%", i18n: stProductGroup} currency_price_list: forward_parameters: [group_price_id] build_options: related_id: forward_parameters.group_price_id related_class: GroupPrice related_field: id title: Ceny grupy w walutach display: [currency, _list_type] fields: currency: {name: Waluta} tax: {name: Vat} list_type: {name: Rodzaj} price_netto: {name: Cena netto, module: appAddGroupPriceBackend} price_brutto: {name: Cena brutto, module: appAddGroupPriceBackend} actions: _create: {name: Dodaj} object_actions: _edit: - _delete: - currency_price_edit: forward_parameters: [group_price_id] build_options: related_id: forward_parameters.group_price_id related_class: GroupPrice title: Edycja grupy display: NONE: [_currency_id, _group_type] "Zmień jedną cenę": [_currency_price_type, price_modifier] "Ustaw szablon cen": [_currency_tax_id, _currency_price, _currency_old_price, _currency_wholesale] fields: currency_id: {name: Waluta} group_type: {name: Rodzaj} currency_tax_id: {name: Vat} currency_price: {name: Cena} currency_old_price: {name: Stara cena} currency_wholesale: {name: Ceny hurtowe} currency_price_type: {name: Zmień} price_modifier: {name: Modyfikator ceny, help: "Podaj wartość np:
10.00 - ustawi jako nowa cene 10.00
+10.00 - doda do aktualnej ceny 10.00
-10.00 - odejmie od aktualnej ceny 10.00
+10% - doda do aktualnej ceny 10%
-10% - odejemie od aktualnej ceny 10%"} actions: _list: {name: Pokaż listę} _save_and_add: {name: Zapisz i synchronizuj, hide_on_create: true} _save: {name: Zapisz} _delete: {name: Usuń} product_list: i18n: stProductGroup title: Przypisz produkty use_stylesheet: [backend/stProductList.css] use_helper: [stProduct/stProduct, stDepository] forward_parameters: [group_price_id] build_options: related_id: forward_parameters.group_price_id related_class: GroupPrice filters: list_image: {partial: filter_list_image, module: stProduct} assigned_product: {partial: filter_assigned_product} display: [list_image, =opt_name, code, opt_price_brutto, active, stock, _assigned_product] fields: code: {name: Kod, i18n: stProduct} opt_name: {name: Nazwa, params: size=40 link_to="@stProduct?action=edit&id=%%id%%", width: 50%, callback: list_product_name, i18n: stProduct} list_image: {name: Zdjęcie, width: 1%, callback: list_product_image, i18n: stProduct} opt_price_brutto: {name: Cena, width: 1%, callback: list_product_price, label_callback: list_product_price_label, i18n: stProduct} active: {name: Aktywny, i18n: stProduct} stock: {name: Stan magazynowy, i18n: stDepositoryBackend, i18n: stProduct} assigned_product: {name: Przypisany, align: center} select_actions: display: [product_add_group, product_remove_group] actions: product_add_group: {name: Dodaj do grupy, action: productAddGroup, i18n: stAdminGeneratorPlugin} product_remove_group: {name: Usuń z grupy, action: productRemoveGroup, i18n: stAdminGeneratorPlugin} object_actions: [] actions: []