After the PO is approved, the PO status change to 'Released'. But the buyer still can change the PO lines (Quantities, Price and etc). I checked their rights on table 'Purchase Line'. all the buyers have insert, modify and delete rights.
I'm Super. When I test it with my account, it will prompts error as what I expect. "The PO must be Reopened ".
Please help! Thanks
0
Comments
In table 39, when you change a field, it calls function "TestStatusOpen()". This functions calls "GetPurchHeader()" and if the the header is still the same as the one in the last "GetPurchHeader()"-call, then Navision doesn't get the purchase header anymore.
Maybe the release of the purchase header has been changed from calling the codeunit in the properties of the menu-item to calling it with C/AL code. In this case, try to do a CurrForm.UPDATE(FALSE) after calling the codeunit.
If previous trick doesn't work, try this: in T39, function "GetPurchHeader()" in stead of the code like:
Try:
But this has the problem that it will always get to the disk to get the purchase header.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Not a very bright answer, I know
Rgds,
Jon.
Jon.
But with users we should always start with the most obvious questions.
-User to helpdesk: my computer doesn't function.
-After a lot of questions, the helpdesk finds out that there is a black-out....
You can read this story at www.techtales.com
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Problem solved. I traced the program as you mentioned and found only PO's status <Type::Item> and <Type::"Fix Assets"> will be checked if it's Open when we try to modify purchase lines. But what I want is another type "G/L Account" should also be checked. So, I add that type to function <TypeStatusOpen>. Yeah, that works.
Thanks again.