diff --git a/Product Variant Description.md b/Product Variant Description.md new file mode 100644 index 00000000..524622e1 --- /dev/null +++ b/Product Variant Description.md @@ -0,0 +1,24 @@ +--- +description: Verkaufs-, Einkaufs- und Lieferbeschreibung auf Produktvarianten festlegen. +tags: +- HowTo +- Drittanbieter +prev: ./product +--- +# Product Variant Description +![icon_oms_box](assets/icon_oms_box.png) + +{{ $frontmatter.description }} + +Technischer Name: `product_variant_description`\ +Repository: + +## Verwendung + +### Beschreibung auf Produktvariante festlegen + +Mit dieser Erweiterungen können auf Produktvarianten Verkaufs-, Einkaufs- und Lieferbeschreibung festlegen. Navigieren Sie nach *Verkauf > Produkte > Produktvarianten* und zeigen Sie eine Produktvariante an. Im Tab *Verkauf* können Sie die *Verkaufsbeschreibung* anpassen, ohne dass die Beschreibung der Produktvorlage überschrieben wird. + +::: tip +Wenn für eine Produktvariante keine Verkaufsbeschreibung vorhanden ist, wird die Verkaufsbeschreibung der Produktvorlage verwendet. +::: \ No newline at end of file diff --git a/Product.md b/Product.md index 25e467db..1e0b033b 100644 --- a/Product.md +++ b/Product.md @@ -12,13 +12,14 @@ prev: ./ ## Erweiterungen -| Erweiterung | Beschreibung | -| --------------------------------------------------------------------------------- | ----------------------------------------------------------------- | -| [Product Barcode Generator](Product%20Barcode%20Generator.md) | Autogenerate EAN13 product barcodes. | -| [Product Name Sequence](Product%20Name%20Sequence.md) | Generate product names based on a sequence. | -| [Product Packaging Parent](Product%20Packaging%20Parent.md) | Übergeordnete Verpackung für Produktverpackung definieren. | -| [Product Pricelist Fixed Discount](Product%20Pricelist%20Fixed%20Discount.md) | Festpreise in Preisliste mit Rabatt. | -| [Product Supplierinfo for Customers](Product%20Supplierinfo%20for%20Customers.md) | Produktspezifische Informationen für ausgewählte Kunden erfassen. | +| Erweiterung | Beschreibung | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| [Product Barcode Generator](Product%20Barcode%20Generator.md) | Autogenerate EAN13 product barcodes. | +| [Product Name Sequence](Product%20Name%20Sequence.md) | Generate product names based on a sequence. | +| [Product Packaging Parent](Product%20Packaging%20Parent.md) | Übergeordnete Verpackung für Produktverpackung definieren. | +| [Product Pricelist Fixed Discount](Product%20Pricelist%20Fixed%20Discount.md) | Festpreise in Preisliste mit Rabatt. | +| [Product Supplierinfo for Customers](Product%20Supplierinfo%20for%20Customers.md) | Produktspezifische Informationen für ausgewählte Kunden erfassen. | +| [Product Variant Description](Product%20Variant%20Description.md) | Verkaufs-, Einkaufs- und Lieferbeschreibung auf Produktvarianten festlegen. | ## Verwendung diff --git a/task.js b/task.js new file mode 100644 index 00000000..5db3e2eb --- /dev/null +++ b/task.js @@ -0,0 +1,68 @@ +const fs = require('fs') +var path = require('path') + +/* arguments: +all +index +convert +assets +sitemap +sidebar +*/ + +// settings +const ignoreFiles = ['_navbar.md', '_sidbar.md'] +const scheme = 'https://' +const hostname = 'www.odoo-wiki.org' +const basePath = '/' +const basePathAssets = './' +const uriSuffix = '.html' +const anchorPrefix = '#' +const assetsFolder = 'assets' +const gitUrl = 'https://github.com/Mint-System/Odoo-Handbuch/blob/master/' +const sidebarAppend = ['glossary.md','contribution.md'] + + +function loopMdFiles() { + return fs.readdirSync(__dirname).filter(file => (file.slice(-3) === '.md') && (ignoreFiles.indexOf(file) != 0)) +} + +// Build vars +var files = [] +var args = process.argv.slice(2); +var firstArg = args[0] + +if (!firstArg || ['all', 'index'].indexOf(firstArg) >= 0) { + + // log + console.log('Build title index ...') + + // loop all markdown files + loopMdFiles().forEach((file) => { + + // Read file and split into lines + let lines = fs.readFileSync(file, 'utf8').split(/\r?\n/); + + // Find title + let title = null + for (let line of lines) { + if (line.startsWith('# ') || line.startsWith('## ') || line.startsWith('### ')) { + // Get title + title = line.replace('### ','').replace('## ','').replace('# ','') + break + } + } + + // Use filename as title + if (!title) { + title = file.replace('.md','') + // throw new Error(`Could not find title for '${file}'.`) + } + + // create file link list + files.push({ source: title, target: file, firstLetter: title[0].toUpperCase() }) + }) + + // log + console.log('Building title index finished.') +}