Update inventory.php

This commit is contained in:
Laurent Destailleur 2021-10-06 13:48:42 +02:00 committed by GitHub
parent cbd825e526
commit ba15907582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -801,7 +801,7 @@ if ($object->id > 0) {
print '</div>';
// Call method to disable the button if no qty entered yet for inventory
if (!$hasinput) {
if ($object->status != $object::STATUS_VALIDATED || !$hasinput) {
print '<script type="text/javascript" language="javascript">
jQuery(document).ready(function() {
disablebuttonmakemovementandclose();