-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5445: fix(stock): give descriptions to adjustments r=mbayopanda a=jniles This commit creates templated descriptions to adjustments and makes the description mandatory. Closes #5444. Here is what it looks like: ![image](https://user-images.githubusercontent.com/896472/109557011-d41a9000-7ad7-11eb-8220-bd09192c2856.png) ---- How to test: 1. Load any database off master or refactor-stock-management. 2. Try to do a negative stock adjustment for any product, _without_ putting in a description. 3. Observe the receipt renders and the app accepts the submit, despite showing a red mark on the description box. 3. Notice that the receipt does not print with a "note" field. Now, load this branch. You should not be able to make an adjustment without a description. And when the description renders, it should look something like what the screenshot I posted above. Co-authored-by: Jonathan Niles <jonathanwniles@gmail.com>
- Loading branch information
Showing
4 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters