Situation:
When setting up quality association for a production order (before report as finished), the first time you invoke the "update status -> report as finished" button in axapta, it reports "Quality orders are generated" . It will not show any content in the report as finished screen until you finish the qualtity orders "fail/pass".
However, when you close the "report as finished" form and open it again, You get a warning "Open Qualtity Orders for this record", but it shows you the production order and you can report it finished.
When looking in the method "checkQualityAssociation" in the class "InventQualtityOrderType", the class documentation (comment) sounds correct, but is not in line with the code itself.
COMMENT:
"/// <returns>
/// true if no open quality orders are found and no new quality order has been created; otherwise, false.
/// </returns>
EXPECTS FOLLOWING LINE IS MISSING:
orderTable = this.findOpenQualityOrder(associationTable.TestGroupId);
if (orderTable)
{
warning("@SYS113925");
ret = false; // <=== IN THIS CASE, I guess it must return false (it has an open qualtity order).
}
Warm regards,
Dick de Jong
*This post is locked for comments