mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Little adjustments and changelog for #788
This commit is contained in:
parent
f076b0d0c6
commit
9e824e1845
@ -1,4 +1,5 @@
|
|||||||
### Stock improvements/fixes
|
### Stock improvements/fixes
|
||||||
|
- When creating a quantity unit conversion it's now possible to automatically create the inverse conversion (thanks @kriddles)
|
||||||
- Optimized/clarified what the total/unit price is on the purchase page (thanks @kriddles)
|
- Optimized/clarified what the total/unit price is on the purchase page (thanks @kriddles)
|
||||||
- On the purchase page the amount field is now displayed above/before the best before date for better `TAB` handling (thanks @kriddles)
|
- On the purchase page the amount field is now displayed above/before the best before date for better `TAB` handling (thanks @kriddles)
|
||||||
- Changed that when `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` is disabled, products now get internally a best before of "never expires" (aka `2999-12-31`) instead of today (thanks @kriddles)
|
- Changed that when `FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING` is disabled, products now get internally a best before of "never expires" (aka `2999-12-31`) instead of today (thanks @kriddles)
|
||||||
|
@ -1798,3 +1798,6 @@ msgstr ""
|
|||||||
|
|
||||||
msgid "means %1$s per %2$s"
|
msgid "means %1$s per %2$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Create inverse QU conversion"
|
||||||
|
msgstr ""
|
||||||
|
@ -152,7 +152,7 @@ $('.input-group-qu').on('change', function(e)
|
|||||||
|
|
||||||
if (Grocy.EditMode === 'create')
|
if (Grocy.EditMode === 'create')
|
||||||
{
|
{
|
||||||
$('#qu-conversion-inverse-info').text(__t('This means the inverse of 1 %1$s is the same as %2$s %3$s will also be created', $("#to_qu_id option:selected").text(), (1 / factor).toString(), __n((1 / factor).toString(), $("#from_qu_id option:selected").text(), $("#from_qu_id option:selected").data("plural-form"))));
|
$('#qu-conversion-inverse-info').text('(' + __t('This means 1 %1$s is the same as %2$s %3$s', $("#to_qu_id option:selected").text(), (1 / factor).toString(), __n((1 / factor).toString(), $("#from_qu_id option:selected").text(), $("#from_qu_id option:selected").data("plural-form"))) + ')');
|
||||||
$('#qu-conversion-inverse-info').removeClass('d-none');
|
$('#qu-conversion-inverse-info').removeClass('d-none');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,9 +72,9 @@
|
|||||||
|
|
||||||
<div class="checkbox @if($mode == 'edit') d-none @endif">
|
<div class="checkbox @if($mode == 'edit') d-none @endif">
|
||||||
<label for="create_inverse">
|
<label for="create_inverse">
|
||||||
<input type="checkbox" id="create_inverse" name="create_inverse:skip" checked> {{ $__t('Create Inverse QU Conversion') }}
|
<input type="checkbox" id="create_inverse" name="create_inverse:skip" checked> {{ $__t('Create inverse QU conversion') }}
|
||||||
|
<span id="qu-conversion-inverse-info" class="form-text text-info d-none"></span>
|
||||||
</label>
|
</label>
|
||||||
<p id="qu-conversion-inverse-info" class="form-text text-info d-none"></p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@include('components.userfieldsform', array(
|
@include('components.userfieldsform', array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user