Properly show and handle that the new amount during inventory cannot equal the current stock amount (this now closes #224)

This commit is contained in:
Bernd Bestel
2019-05-03 19:08:54 +02:00
parent 7fc4992b3a
commit 595171afa5
4 changed files with 20 additions and 5 deletions

View File

@@ -23,7 +23,7 @@
'min' => 0,
'value' => 1,
'invalidFeedback' => $__t('The amount cannot be lower than %s', '0'),
'additionalAttributes' => 'data-notequal="notequal" not-equal="-1"',
'additionalAttributes' => 'data-not-equal="-1"',
'additionalHtmlElements' => '<div id="inventory-change-info" class="form-text text-muted small d-none"></div>',
'additionalHtmlContextHelp' => '<div id="tare-weight-handling-info" class="text-small text-info font-italic d-none">' . $__t('Tare weight handling enabled - please weigh the whole container, the amount to be posted will be automatically calculcated') . '</div>'
))