Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(reports): stock expiration report #4920

Merged

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Sep 14, 2020

This commit fixes the stock expiration report by doing the following
things:

  1. Removes the date range as these don't make any sense.
  2. Uses the same color scheme as used in the other reports for warning/danger text.
  3. Adds total summaries to the top of the report.
  4. Removes the inventory select.
  5. Simplifies the queries so that less for loops are done.
  6. Fixes the currency bug so things render in the enterprise currency.
  7. Adds the column for the unit type.

Closes #4835.

Here is what it looks like now:
image


I chose not to implement the "total value in stock" since this would be a rather expensive query and probably only makes sense if we are looking at a single depot at a time.

This commit fixes the stock expiration report by doing the following
things:
  1. Removes the date range as these don't make any sense.
  2. Uses the same colorscheme as used in the other reports for
     warning/danger text.
  3. Adds total summaries to the top of the report.
  4. Removes the inventory select.
  5. Simplifies the queries so that less for loops are done.
  6. Fixes the currency bug so things render in the enterprise currency.
  7. Adds the column for the unit type.

Closes Third-Culture-Software#4835.
@jniles jniles force-pushed the 4835-fix-stock-expiration-report branch from fb2c6fc to 8135d8a Compare September 15, 2020 10:43
Copy link
Collaborator

@lomamech lomamech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just compared the results with the data from the batch log and everything is working fine

@lomamech
Copy link
Collaborator

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 16, 2020

@bors bors bot merged commit 78bc991 into Third-Culture-Software:master Sep 16, 2020
@jniles jniles deleted the 4835-fix-stock-expiration-report branch September 16, 2020 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements to the Stock Expiration Report
3 participants