refactor: Reanmed templates
- fix: Added browse subcommand for products
This commit is contained in:
20
templates/product/add.yml
Normal file
20
templates/product/add.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# Legend:
|
||||
# Location Name (id): {% for valid_value in grocy.meta.entities.locations.valid_values %}{{ valid_value.name }}({{ valid_value.id}}){% if not loop.last %}{{ ', '}}{% endif %}{% endfor %}
|
||||
# Product Group (id): {% for valid_value in grocy.meta.entities.product_groups.valid_values %}{{ valid_value.name }}({{ valid_value.id}}){% if not loop.last %}{{ ', '}}{% endif %}{% endfor %}
|
||||
# Quanity Units (id): {% for valid_value in grocy.meta.entities.quantity_units.valid_values %}{{ valid_value.name }}({{ valid_value.id}}){% if not loop.last %}{{ ', '}}{% endif %}{% endfor %}
|
||||
|
||||
name:
|
||||
description: |-
|
||||
barcode:
|
||||
location_id:
|
||||
min_stock_amount: 0
|
||||
default_best_before_days: 0
|
||||
product_group_id:
|
||||
qu_id_purchase:
|
||||
qu_id_stock:
|
||||
default_best_before_days_after_open: 0
|
||||
qu_factor_purchase_to_stock: 0
|
||||
allow_partial_units_in_stock: False
|
||||
enable_tare_weight_handling: False
|
||||
tare_weight: 0
|
||||
not_check_stock_fulfillment_for_recipes: False
|
21
templates/product/edit.yml
Normal file
21
templates/product/edit.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
{% 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 %}
|
0
templates/product/table.yml
Normal file
0
templates/product/table.yml
Normal file
13
templates/product/view.yml
Normal file
13
templates/product/view.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
Name: {{product.name}}
|
||||
|
||||
Stock Quantity Unit: {{quantity_unit_stock.name}}
|
||||
|
||||
Last Purchased: {{last_purchased}}
|
||||
|
||||
Last Used: {{last_used}}
|
||||
|
||||
Last Price: {{last_price}}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user