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

Non Stock Items are not filtered correctly in POS #29008

Closed
vr-greycube opened this issue Dec 23, 2021 · 2 comments
Closed

Non Stock Items are not filtered correctly in POS #29008

vr-greycube opened this issue Dec 23, 2021 · 2 comments

Comments

@vr-greycube
Copy link
Contributor

Information about bug

Steps to reproduce the issue

Create several service items; Maintain Stock = 0 in Item
Open POS

Observed result

Few Items with Maintain Stock unchecked are visible in POS item selector. Alternate items i.e. 2,4,6 are not filtered.

Expected result

All service items except Product Bundle items should be filtered.

Bug

Cannot remove item from list while iterating the list.

def filter_service_items(items):
	for item in items:

should be

def filter_service_items(items):
	for item in list(items):

The same bug is also in these places:

Module

selling

Version

version-13

Installation method

No response

Relevant log output / Stack trace / Full Error Message.

No response

@nemesis189
Copy link
Contributor

@vr-greycube A request was made to allow non stock items in pos as it was available in previous version, so non stock items might not be filtered at all
PR: #28998
It's not final, needs to be reviewed and improved on.

@nextchamp-saqib
Copy link
Member

Closed with #29556

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants