50 lines
3.8 KiB
YAML
50 lines
3.8 KiB
YAML
generator:
|
|
class: stAdminGenerator
|
|
param:
|
|
model_class: AddPrice
|
|
theme: simple
|
|
title: "Produkty"
|
|
route: "@stProduct"
|
|
icon: stProduct
|
|
|
|
include_action_files: [/plugins/stImportExportPlugin/config/generator/extendActions.php]
|
|
include_component_files: [/plugins/stImportExportPlugin/config/generator/extendComponents.php]
|
|
|
|
export:
|
|
title: "Eksport cen w walutach"
|
|
default: stExporterCsv
|
|
filename: "eksport cen w walutach"
|
|
primary_key: [product_code, currency_code]
|
|
fields:
|
|
product_code: {name: "Kod produktu", type: string, class: appAddPriceBackendImportExport}
|
|
currency_code: {name: "Waluta", type: string, class: appAddPriceBackendImportExport, i18n: stProductImportExport}
|
|
tax_rate: {name: "Stawka VAT [%]", class: appAddPriceBackendImportExport, i18n: stProductImportExport}
|
|
price_netto: {name: "Cena netto", type: string, i18n: stProductImportExport}
|
|
price_brutto: {name: "Cena brutto", type: string, i18n: stProductImportExport}
|
|
old_price_netto: {name: "Stara cena netto", type: string, i18n: stProductImportExport}
|
|
old_price_brutto: {name: "Stara cena brutto", type: string, i18n: stProductImportExport}
|
|
wholesale_a_netto: {name: "Cena hurt A netto", type: string, i18n: stProductImportExport}
|
|
wholesale_a_brutto: {name: "Cena hurt A brutto", type: string, i18n: stProductImportExport}
|
|
wholesale_b_netto: {name: "Cena hurt B netto", type: string, i18n: stProductImportExport}
|
|
wholesale_b_brutto: {name: "Cena hurt B brutto", type: string, i18n: stProductImportExport}
|
|
wholesale_c_netto: {name: "Cena hurt C netto", type: string, i18n: stProductImportExport}
|
|
wholesale_c_brutto: {name: "Cena hurt C brutto", type: string, i18n: stProductImportExport}
|
|
import:
|
|
title: Import cen w walutach
|
|
default: stImporterCsv
|
|
filename: "import cen w walutach"
|
|
primary_key: [product_code, currency_code]
|
|
fields:
|
|
product_code: {name: "Kod produktu", type: custom, custom_method: true}
|
|
currency_code: {name: "Waluta", type: custom, custom_method: true, i18n: stProductImportExport}
|
|
tax_rate: {name: "Stawka VAT [%]", type: custom, custom_method: true, require: true, i18n: stProductImportExport}
|
|
price_netto: {name: "Cena netto", type: custom, i18n: stProductImportExport}
|
|
price_brutto: {name: "Cena brutto", type: custom, i18n: stProductImportExport}
|
|
old_price_netto: {name: "Stara cena netto", type: custom, i18n: stProductImportExport}
|
|
old_price_brutto: {name: "Stara cena brutto", type: custom, i18n: stProductImportExport}
|
|
wholesale_a_netto: {name: "Cena hurt A netto", type: custom, i18n: stProductImportExport}
|
|
wholesale_a_brutto: {name: "Cena hurt A brutto", type: custom, i18n: stProductImportExport}
|
|
wholesale_b_netto: {name: "Cena hurt B netto", type: custom, i18n: stProductImportExport}
|
|
wholesale_b_brutto: {name: "Cena hurt B brutto", type: custom, i18n: stProductImportExport}
|
|
wholesale_c_netto: {name: "Cena hurt C netto", type: custom, i18n: stProductImportExport}
|
|
wholesale_c_brutto: {name: "Cena hurt C brutto", type: custom, i18n: stProductImportExport} |