150 lines
7.7 KiB
YAML
150 lines
7.7 KiB
YAML
generator:
|
|
class: stAdminGenerator
|
|
param:
|
|
model_class: Invoice
|
|
theme: simple
|
|
applications: [stOrder, stPayment, stUser]
|
|
|
|
custom_actions:
|
|
custom: [config, view, view_edit]
|
|
list: [confirm, request, proforma]
|
|
edit: [confirm, request, proforma]
|
|
head:
|
|
package: stInvoicePlugin
|
|
documentation:
|
|
pl: https://www.sote.pl/docs/faktury-sklep-internetowy
|
|
en: https://www.soteshop.com/docs/invoices
|
|
list:
|
|
title: Faktury
|
|
display: [id, date_create_copy ]
|
|
fields:
|
|
number: {name: Numer, params: size=10}
|
|
date_create_copy: {name: Utworzona}
|
|
actions:
|
|
_create: -
|
|
object_actions:
|
|
_edit: -
|
|
_delete: -
|
|
sort: [date_create_copy, desc]
|
|
menu:
|
|
display: [confirm, request, proforma, config]
|
|
fields:
|
|
confirm: {name: Faktury wystawione, action: stInvoiceBackend/confirmList}
|
|
request: {name: Faktury do wystawienia, action: stInvoiceBackend/requestList}
|
|
proforma: {name: Faktury proforma, action: stInvoiceBackend/proformaList}
|
|
config: {name: Konfiguracja, action: stInvoiceBackend/configCustom}
|
|
|
|
|
|
|
|
confirm_list:
|
|
title: Faktury wystawione
|
|
display: [number, date_create_copy, _order, opt_customer_company, opt_customer_vat_number, opt_customer_full_name]
|
|
fields:
|
|
number: {name: Numer, params: size=10}
|
|
date_create_copy: {name: Utworzona}
|
|
order: {name: Zamówienie}
|
|
opt_customer_company: {name: Firma}
|
|
opt_customer_vat_number: {name: NIP}
|
|
opt_customer_full_name: {name: Imię i nazwisko}
|
|
actions:
|
|
_create: -
|
|
object_actions:
|
|
_edit: {action: "confirmEdit?id=%%id%%&type=confirm"}
|
|
peer_method: doSelectJoinOrder
|
|
peer_count_method: doCountJoinOrder
|
|
sort: [date_create_copy, desc]
|
|
menu: {use: list.menu}
|
|
empty_message: {message: "Tutaj pojawią się faktury wystawione.", i18n: stInvoiceBackend}
|
|
|
|
confirm_edit:
|
|
title: Faktura wystawiona
|
|
editable: true
|
|
display: [~view_content]
|
|
fields:
|
|
view_content: {name: Faktura wystawiona, hide_label: true}
|
|
actions:
|
|
_delete: {name: Usuń}
|
|
_download: {name: Pobierz, action: "@stInvoicePluginPdf?action=show&id=%%id%%&download=true&culture=%%culture%%", icon: download}
|
|
_order: {name: Pokaż zamówienie, action: "@stOrder?action=edit&id=%%order_id%%", icon: list}
|
|
_save: {name: Zapisz}
|
|
|
|
|
|
|
|
request_list:
|
|
title: Faktury do wystawienia
|
|
display: [~proforma_number, date_create_copy, _order, opt_customer_company, opt_customer_vat_number, opt_customer_full_name]
|
|
fields:
|
|
proforma_number: {name: Nr proformy, params: size=10}
|
|
date_create_copy: {name: Utworzona}
|
|
order: {name: Zamówienie}
|
|
opt_customer_company: {name: Firma}
|
|
opt_customer_vat_number: {name: NIP}
|
|
opt_customer_full_name: {name: Imię i nazwisko}
|
|
actions:
|
|
_create: -
|
|
object_actions:
|
|
_edit: {action: "requestEdit?id=%%id%%&type=request"}
|
|
_delete: -
|
|
peer_method: doSelectJoinOrder
|
|
peer_count_method: doCountJoinOrder
|
|
select_actions:
|
|
display: [confirmall]
|
|
actions:
|
|
confirmall: {name: Wystaw}
|
|
_delete: {name: Usuń}
|
|
sort: [date_create_copy, desc]
|
|
menu: {use: list.menu}
|
|
empty_message: {message: "Tutaj pojawią się faktury do wystawienia.", i18n: stInvoiceBackend}
|
|
|
|
request_edit:
|
|
title: Faktura do wystawienia
|
|
editable: true
|
|
display: [~view_content]
|
|
fields:
|
|
view_content: {name: Faktura do wystawienia, hide_label: true}
|
|
actions:
|
|
_delete: {name: Usuń}
|
|
_order: {name: Pokaż zamówienie, action: "@stOrder?action=edit&id=%%order_id%%", icon: list}
|
|
_addinvoice: {name: Wystaw fakturę, action: "@stInvoicePlugin?action=makeConfirmInvoice&id=%%id%%&type=request", icon: add}
|
|
_save: {name: Zapisz}
|
|
|
|
proforma_list:
|
|
title: Faktury proforma
|
|
display: [number, date_create_copy, _order, opt_customer_company, opt_customer_vat_number, opt_customer_full_name]
|
|
fields:
|
|
number: {name: Numer, params: size=10}
|
|
date_create_copy: {name: Utworzona}
|
|
order: {name: Zamówienie}
|
|
opt_customer_company: {name: Firma}
|
|
opt_customer_vat_number: {name: NIP}
|
|
opt_customer_full_name: {name: Imię i nazwisko}
|
|
actions:
|
|
_create: -
|
|
object_actions:
|
|
_edit: {action: "proformaEdit?id=%%id%%&type=proforma"}
|
|
peer_method: doSelectJoinOrder
|
|
peer_count_method: doCountJoinOrder
|
|
sort: [date_create_copy, desc]
|
|
menu: {use: list.menu}
|
|
empty_message: {message: "Tutaj pojawią się faktury proforma.", i18n: stInvoiceBackend}
|
|
|
|
proforma_edit:
|
|
title: Faktura proforma
|
|
editable: true
|
|
display: [~view_content]
|
|
fields:
|
|
view_content: {name: Faktura proforma, hide_label: true}
|
|
actions:
|
|
_order: {name: Pokaż zamówienie, action: "@stOrder?action=edit&id=%%order_id%%", icon: list}
|
|
_download: {name: Pobierz, action: "@stInvoicePluginPdf?action=show&id=%%id%%&download=true&culture=%%culture%%", icon: download}
|
|
_addinvoice: {name: Wystaw fakturę, action: "@stInvoicePlugin?action=makeConfirmInvoice&id=%%id%%&type=proforma", icon: add}
|
|
_save: {name: Zapisz}
|
|
|
|
config:
|
|
title: Konfiguracja
|
|
menu: {use: list.menu}
|
|
|
|
config_custom:
|
|
show_culture_picker: true
|
|
title: Konfiguracja
|
|
menu: {use: list.menu} |