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.
Comments
Any input would be appreciated.
Tino Ruijs
Microsoft Dynamics NAV specialist