Modify "Base unit of measure" on resource not possible

tinoruijstinoruijs Member Posts: 1,226
edited 2014-10-30 in NAV Three Tier
Does anybody know why it is not possible to modify Base unit of measure on a resource that contains entries?

Base Unit of Measure - OnValidate():
IF "Base Unit of Measure" <> xRec."Base Unit of Measure" THEN BEGIN
  ResLedgEnty.SETCURRENTKEY("Resource No.");
  ResLedgEnty.SETRANGE("Resource No.","No.");
  IF ResLedgEnty.FINDFIRST THEN
    ERROR(Text002,FIELDCAPTION("Base Unit of Measure"));
END;

Text002: You cannot change %1 because there are ledger entries for this resource.

On items it is possible to change the base unit of measure when there are no open entries, but on resource you can't.
I could make it possible by disabling the error, but I don't know the consequences.

Tino Ruijs
Microsoft Dynamics NAV specialist

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    No resource-expert here?
    Any input would be appreciated.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
Sign In or Register to comment.