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] #11880- Item wise report showing price list and stock available #11885

Merged
merged 3 commits into from Dec 12, 2017

Conversation

PawanMeh
Copy link
Contributor

@PawanMeh PawanMeh commented Dec 8, 2017

Testing Video

item_price_stock

@PawanMeh
Copy link
Contributor Author

PawanMeh commented Dec 8, 2017

Checked travis errors, they do not seem to be related to this PR. This is ready for review.

select
item_code as item_code,
warehouse as warehouse,
sum(actual_qty) as actual_qty
Copy link
Member

Choose a reason for hiding this comment

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

sum is not needed, as there will be only one bin for a combination of item and warehouse.

stock_qty_on_hand_map = {}
for d in stock_details:
name = d["item_code"]
stock_qty_on_hand_map[name] = {
Copy link
Member

Choose a reason for hiding this comment

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

Here you are setting stock_details for only one random warehouse

@PawanMeh
Copy link
Contributor Author

PawanMeh commented Dec 8, 2017

Made changes and tested scenario of multiple warehouses as well

screen shot 2017-12-08 at 6 06 58 pm

@PawanMeh
Copy link
Contributor Author

PawanMeh commented Dec 8, 2017

Changes made as per suggestions

@nabinhait nabinhait merged commit bb7fab5 into frappe:develop Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants