This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
Is Invoice Number required on an item purchase? #837
Labels
🐛bug
issue/pull request that documents/fixes a bug
Expected behavior:
Invoice number should be marked as required, or it should not prevent to submit the purchase form.
Actual behavior:
'Invoice number' field is not marked as required, but it prevents to submit the form if the field is empty and pristine.
If the invoice field is dirty (has been changed), even if the new value is set back to empt, it allows the form to be submitted.
Steps to reproduce:
-Go to Inventory > Items
-Edit any of the items
-Under the purchase label press '+ add purchase'
-Fill all required fields (leave invoice empty).
--You won't be allow to submit
-Modify the value of the invoice field
--The 'add' button gets active
-Delete the content of the invoice field
--The 'add' button is still active
Screenshots (if applicable):
OS and Browser:
Chrome Version 54.0.2840.98 (64-bit)
MacOS 10.12.1
The text was updated successfully, but these errors were encountered: