Skip to content

Codeunit WSB_PRPReturnReasonMgt

Provides functions used for check Return Reason Code in sales and purchase return documents.

Properties

Name Value
Access Public

Methods

wgFncPurchaseHeaderValidateReturnReasonCode

Check and update purchase lines of the document when a Return Reason Code filled in on the Purchase Header.

Parameters

Type Name Description
Record "Purchase Header" pRecPurchaseHeader The purchase header record.
Record "Purchase Header" pxRecPurchaseHeader The purchase header record xRec.

wgFncPurchaseLineGetReasonCodeFromPurchaseHeader

Get Return Reason Code from the Purchase Header for new Purchase Line if document type is Credit Memo or Return Order.

Parameters

Type Name Description
Record "Purchase Line" vRecPurchaseLine The Purchase Line record.

wgFncReleasePurchaseDocCheckReturnReason

Check whether a Return Reason Code filled in on purchase return documents.

Parameters

Type Name Description
Record "Purchase Header" pRecPurchaseHeader The Purchase Header record.

wgFncReleaseSalesDocCheckReturnReason

Check whether a Return Reason Code filled in on sales return documents.

Parameters

Type Name Description
Record "Sales Header" pRecSalesHeader The Sales Header record.

wgFncSalesHeaderValidateReturnReasonCode

Check and update sales lines of the document when a Return Reason Code filled in on the Sales Header.

Parameters

Type Name Description
Record "Sales Header" pRecSalesHeader The Sales Header record.
Record "Sales Header" pxRecSalesHeader The Sales Header xRec record.

wgFncSalesLineGetReasonCodeFromSalesHeader

Get Return Reason Code from the Sales Header for new Sales Line if document type is Credit Memo or Return Order.

Parameters

Type Name Description
Record "Sales Line" vRecSalesLine The Sales Line record.