{% trans %}Product formulas{% endtrans %}
+ {%- trans trimmed -%} + Formulas allow you to associate a group of products + with a result product (the formula itself). + {%- endtrans -%} +
++ {%- trans trimmed -%} + If the product of a formula is available on a counter, + it will be automatically applied if all the products that + make it up are added to the basket. + {%- endtrans -%} +
++ {%- trans trimmed -%} + For example, if there is a combo that combines a "Sandwich Combo" product + with the "Sandwich" and "Soft Drink" products, + then, if a person orders a sandwich and a soft drink, + the combo will be applied and the basket will then contain a sandwich combo instead. + {%- endtrans -%} +
+{% trans %}New formula{% endtrans %}
--
+
- - - {{ formula.result.name }} - - - - - + +
+ {% for p in formula.products.all() %} + {{ p.code }} ({{ p.selling_price }} €) + {% if not loop.last %}+{% endif %} + {% endfor %} +
++ {{ formula.result.selling_price }} € + ({% trans %}instead of{% endtrans %} {{ formula.max_selling_price}} €) +
+