Codeunit WSB_STMVendorStatusPublic¶
Exposes procedures to manage and perform tests specifically related to the statuses of vendors.
Properties¶
Name | Value |
---|---|
Access | Public |
Methods¶
wgFncTestForPurchaseReleaseDocument¶
Check if a purchase document can be released based on the buy-from and pay-to vendor status, and throw an error if that is not the case.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Purchase Header" |
pRecPurchaseHeader |
The purchase header. |
wgFncTestForPurchInsert¶
Check if the vendor can be used in purchase documents/entities, and throw an error if that is not the case.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Vendor" |
pRecVendor |
The vendor. |
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 "Vendor" |
pRecVendor |
The Vendor record |
Boolean |
vIsHandled |
Set this to true if your extension handles/overrides the checks that should be performed |