grocy-cli/templates/product/edit.yml

22 lines
1.0 KiB
YAML
Raw Normal View History

{% for product in products %}
name: {{ product.name }}
description: |
{{ product.description }}
location_id: {{ product.location_id }}
qu_id_purchase: {{ product.qu_id_purchase }}
qu_id_stock: {{ product.qu_id_stock }}
qu_factor_purchase_to_stock: {{ product.qu_factor_purchase_to_stock }}
barcode: {{ product.barcode | default("") }}
min_stock_amount: {{ product.min_stock_amount | default("0") }}
default_best_before_days: {{ product.default_best_before_days | default("0") }}
product_group_id: {{ product.product_group_id }}
default_best_before_days_after_open: {{ product.default_best_before_days_after_open | default("0") }}
allow_partial_units_in_stock: {{ product.allow_partial_units_in_stock | default("0") }}
enable_tare_weight_handling: {{ product.enable_tare_weight_handling | default("0") }}
tare_weight: {{ product.tare_weight | default("0.0") }}
not_check_stock_fulfillment_for_recipes: {{ product.not_check_stock_fulfillment_for_recipes | default("0") }}
{% if loop.nextitem %}
---
{%endif%}
{%endfor %}