Skip to content
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

Closed
marcorosas1991 opened this issue Dec 7, 2016 · 1 comment
Closed

Is Invoice Number required on an item purchase? #837

marcorosas1991 opened this issue Dec 7, 2016 · 1 comment
Labels
🐛bug issue/pull request that documents/fixes a bug

Comments

@marcorosas1991
Copy link
Contributor

marcorosas1991 commented Dec 7, 2016

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):
screen shot 2016-12-06 at 8 52 38 pm
screen shot 2016-12-06 at 8 52 45 pm
screen shot 2016-12-06 at 8 52 53 pm

OS and Browser:
Chrome Version 54.0.2840.98 (64-bit)
MacOS 10.12.1

@jkleinsc jkleinsc added the 🐛bug issue/pull request that documents/fixes a bug label Dec 12, 2016
@jkleinsc
Copy link
Member

@marcorosas1991 I think the issue was being caused by changes I made to accommodate Ember 2.10. I'll have a fix very shortly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛bug issue/pull request that documents/fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants