Codeunit WSB_STMItemStatusPublic¶
Exposes procedures to manage and perform tests specifically related to the statuses of items.
Properties¶
Name | Value |
---|---|
Access | Public |
Methods¶
wgFncTestForPurchInsert¶
Check if the item can be used in purchase documents/entities, and throw an error if that is not the case.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
The item. |
wgFncTestForSalesInsert¶
Check if the item can be used in sales documents/entities, and throw an error if that is not the case.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
The item. |
wgFncTestForServiceInsert¶
Check if the item can be used in service documents/entities, and throw an error if that is not the case.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
The item. |
wgEvpOnBeforeTestForEdit¶
An event publisher that allows to extend or override the checks that are being performed (via procedure wlFncTestForEdit) when a user tries to edit the record, based on its current status.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
The Item record |
Boolean |
vIsHandled |
Set this to true if your extension handles/overrides the checks that should be performed |