Codeunit WSB_PRPHistoryProtectionMgt¶
Provides functions to protect history if records are renamed of deleted.
Properties¶
Name | Value |
---|---|
Access | Public |
Methods¶
wgFncCheckForProtectedCustLedgerEntries¶
Checks when a record is deleted if it is allowed based on the history setup.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Customer" |
pRecCustomer |
wgFncCheckForProtectedItemLedgerEntries¶
Checks when a record is deleted if it is allowed based on the history setup.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
wgFncCheckForProtectedResLedgerEntries¶
Checks when a record is deleted if it is allowed based on the history setup.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Resource" |
pRecResource |
wgFncCheckForProtectedVendLedgerEntries¶
Checks when a record is deleted if it is allowed based on the history setup.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Vendor" |
pRecVendor |
wgFncCustomerMoveServHistToDeletedCustNo¶
Checks when a record is deleted if it is allowed based on the history setup.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Customer" |
pRecCustomer |
wgFncGetDeletedCustomerNoForLedgerEntries¶
Gets the 'deleted' Customer No. from setup.
Parameters¶
Type | Name | Description |
---|---|---|
Code[20] |
vDelCustNo |
wgFncGetDeletedItemNoForLedgerEntries¶
Gets the 'deleted' Item No. from setup.
Parameters¶
Type | Name | Description |
---|---|---|
Code[20] |
vDelItemNo |
wgFncGetDeletedResNoForLedgerEntries¶
Gets the 'deleted' Resource No. from setup.
Parameters¶
Type | Name | Description |
---|---|---|
Code[20] |
vDelResourceNo |
wgFncGetDeletedVendorNoForLedgerEntries¶
Gets the 'deleted' Vendor No. from setup.
Parameters¶
Type | Name | Description |
---|---|---|
Code[20] |
vDelVendorNo |
wgFncItemMoveServHistToDeletedItemNo¶
Updates service items with the 'delete' item no.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Item" |
pRecItem |
wgFncPRPSetupValidateHistProtectDateFormula¶
Validates if the given field (date) from setup is earlier then the workdate.
Parameters¶
Type | Name | Description |
---|---|---|
Record "WSB_PRPSetup" |
pRecPRPSetup |
|
Integer |
pCalledFromFieldNo |
wgFncVendorMoveServHistToDeletedVendorNo¶
Updates service items with the 'delete' vendor no.
Parameters¶
Type | Name | Description |
---|---|---|
Record "Vendor" |
pRecVendor |