mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Recipe edit page fixes
This commit is contained in:
parent
fa3a4ed688
commit
ab68a51ba7
@ -1568,7 +1568,7 @@ msgstr ""
|
|||||||
msgid "A purchased date is required"
|
msgid "A purchased date is required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "When a product is selected, one unit (per serving in purchase quantity unit) will be added to stock on consuming this recipe"
|
msgid "When a product is selected, one unit (per serving in stock quantity unit) will be added to stock on consuming this recipe"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Produces product"
|
msgid "Produces product"
|
||||||
|
@ -91,7 +91,6 @@ class StockService extends BaseService
|
|||||||
// Tare weight handling
|
// Tare weight handling
|
||||||
// The given amount is the new total amount including the container weight (gross)
|
// The given amount is the new total amount including the container weight (gross)
|
||||||
// The amount to be posted needs to be the given amount - stock amount - tare weight
|
// The amount to be posted needs to be the given amount - stock amount - tare weight
|
||||||
|
|
||||||
if ($productDetails->product->enable_tare_weight_handling == 1)
|
if ($productDetails->product->enable_tare_weight_handling == 1)
|
||||||
{
|
{
|
||||||
if ($amount <= floatval($productDetails->product->tare_weight) + floatval($productDetails->stock_amount))
|
if ($amount <= floatval($productDetails->product->tare_weight) + floatval($productDetails->stock_amount))
|
||||||
|
@ -92,7 +92,8 @@
|
|||||||
'isRequired' => false,
|
'isRequired' => false,
|
||||||
'label' => 'Produces product',
|
'label' => 'Produces product',
|
||||||
'prefillById' => $mode == 'edit' ? $recipe->product_id : '',
|
'prefillById' => $mode == 'edit' ? $recipe->product_id : '',
|
||||||
'hint' => $__t('When a product is selected, one unit (per serving in purchase quantity unit) will be added to stock on consuming this recipe')
|
'hint' => $__t('When a product is selected, one unit (per serving in stock quantity unit) will be added to stock on consuming this recipe'),
|
||||||
|
'disallowAllProductWorkflows' => true,
|
||||||
))
|
))
|
||||||
|
|
||||||
@include('components.userfieldsform', array(
|
@include('components.userfieldsform', array(
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
@include('components.productamountpicker', array(
|
@include('components.productamountpicker', array(
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'initialQuId' => $initialQuId,
|
'initialQuId' => $initialQuId,
|
||||||
'additionalGroupCssClasses' => 'mb-0'
|
'additionalGroupCssClasses' => 'mb-1'
|
||||||
))
|
))
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user