PurchTableForm::canAssetFieldsBeEditedServer Method [AX 2012]
Validates that the fixed asset fields can be edited.
server protected static boolean canAssetFieldsBeEditedServer(PurchTable _purchTable, PurchLine _purchLine)
Run On
ServerParameters
- _purchTable
- Type: PurchTable Table
A table buffer that contains the current PurchTable table values.
- _purchLine
- Type: PurchLine Table
A table buffer that contains the current PurchLine table values.
The asset fields on a PurchLine table buffer can be edited if the following criteria are met:
-
The inventory reference type is empty or is set to the fixed asset type.
-
The purchase type is journal, purchase, subscription, or blanket.
-
None of the item quantities have been marked.
-
There is no project associated with the record.
-
The item is not a standard cost item.
-
None of the item quantity has been marked.
-
The purchase line is not originating from Lean Subcontracting.
Show: