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

Even after keeping the Quality Inspection Settings under the Stock Settings-Action If Quality Inspection Is Not Submitted- As Warn, but it still does not allow the GRN/Purchase receipt to get submit. It prevents the same #30895

Open
JitendraSAW opened this issue May 4, 2022 · 5 comments
Labels

Comments

@JitendraSAW
Copy link

Information about bug

Dear Team,

We have a scenario where the QC has been enabled for our RM Item but we need to do the GRN so that the goods should get inward into the Warehouse and the system should only warn for the QC not done, but presently it is completing stopping to submit the Purchase Receipt/GRN even though Quality Inspection Settings- Action If Quality Inspection Is Not Submitted has kept as - As Warn.

Step:1-
See the Below Quality Inspection Settings

image

Record 1 Purchase Receipt

Even after submitting the same Purchase Receipt, It throws the error as below. It does not get submitted though after doing the above settings.

image

In the previous version of 13, it was working fine but the same is not working in the present releases also.

Module

quality

Version

image

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

![image](https://user-images.githubusercontent.com/80260184/166663013-8a6af128-e401-43f7-9191-0e3b82689cab.png)
@JitendraSAW JitendraSAW added the bug label May 4, 2022
@ankush
Copy link
Member

ankush commented May 4, 2022

This one is coming from

def validate_qi_presence(self, row):
"""Check if QI is present on row level. Warn on save and stop on submit if missing."""
if not row.quality_inspection:
msg = f"Row #{row.idx}: Quality Inspection is required for Item {frappe.bold(row.item_code)}"
if self.docstatus == 1:
frappe.throw(_(msg), title=_("Inspection Required"), exc=QualityInspectionRequiredError)
else:
frappe.msgprint(_(msg), title=_("Inspection Required"), indicator="blue")

This hasn't changed in nearly a year

@ankush
Copy link
Member

ankush commented May 4, 2022

@JitendraSAW this is from item config.

Screenshot 2022-05-04 at 3 53 04 PM

@ankush ankush added UX and removed bug labels May 4, 2022
@ankush
Copy link
Member

ankush commented May 4, 2022

There are two different validations.

  1. Whether the inspection is added against it or not (controlled by item level config)
  2. Whether the inspection is submitted or not and whether to block resubmitted inspection (from stock settings)

I think both can be controlled in same manner using stock settings for warn/stop.

cc: @marination

@JitendraSAW
Copy link
Author

JitendraSAW commented May 4, 2022 via email

@JitendraSAW
Copy link
Author

JitendraSAW commented May 4, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants