Table of Contents

KVSKBAPurchasePostLib

Procedures

TransferfieldsInGetReceipt(Record Purchase Line, Record Purchase Line) :

Summary: Transfers the fields needed for posting from the Purchase Order Line to the Purchase Receipt Line when receiving a purchase order.

procedure TransferfieldsInGetReceipt(var purchLineVar: Record "Purchase Line"; purchOrderLinePar: Record "Purchase Line"): 

Parameters:

  • purchLineVar: The record variable of the Purchase Line table.
  • purchOrderLinePar: The record variable of the Purchase Order Line table.

Remarks: It will be used in table 121 in function "InsertInvLineFromRcptLine"

CalcSubTotalsTab5110(Record Purchase Line Archive) :

Summary: Calculates the subtotals for the lines in the Purchase Line Archive table.

procedure CalcSubTotalsTab5110(var purchLineArchVar: Record "Purchase Line Archive"): 

Parameters:

  • purchLineArchVar: The record variable of the Purchase Line Archive table.

Remarks: It will be used in some factboxes (Pages) of table "Purchase Line Archive"

PurchRcptLinesInTotals(Record Purch. Rcpt. Line) : Boolean

Summary: Checks if at least 1 line in the Purchase Receipt Line table is in its own document in a total or in a bundle.

procedure PurchRcptLinesInTotals(var purchRcptLineVar: Record "Purch. Rcpt. Line"): Boolean

Parameters:

  • purchRcptLineVar: The record variable of the Purchase Receipt Line table.

Returns: Returns true if at least 1 record in purchRcptLineVar is in its own document in a total or in a bundle, false otherwise.

Remarks: It will be used in some factboxes (Pages) of table "Purchase Receipt Line"

PurchInvLinesInTotals(Record Purch. Inv. Line) : Boolean

Summary: Checks if at least 1 line in the Purchase Invoice Line table is in its own document in a total or in a bundle.

procedure PurchInvLinesInTotals(var purchInvLineVar: Record "Purch. Inv. Line"): Boolean

Parameters:

  • purchInvLineVar: The record variable of the Purchase Invoice Line table.

Returns: Returns true if at least 1 record in purchInvLineVar is in its own document in a total or in a bundle, false otherwise.

Remarks: It will be used in some factboxes (Pages) of table "Purchase Invoice Line"

PurchCrMemoLinesInTotals(Record Purch. Cr. Memo Line) : Boolean

Summary: Checks if at least 1 line in the Purchase Credit Memo Line table is in its own document in a total or in a bundle.

procedure PurchCrMemoLinesInTotals(var purchCrMemoLineVar: Record "Purch. Cr. Memo Line"): Boolean

Parameters:

  • purchCrMemoLineVar: The record variable of the Purchase Credit Memo Line table.

Returns: Returns true if at least 1 record in purchCrMemoLineVar is in its own document in a total or in a bundle, false otherwise.

Remarks: It will be used in some factboxes (Pages) of table "Purchase Credit Memo Line"

ReturnShptLinesInTotals(Record Return Shipment Line) : Boolean

Summary: Checks if at least 1 line in the Return Shipment Line table is in its own document in a total or in a bundle.

procedure ReturnShptLinesInTotals(var ReturnShptLineVar: Record "Return Shipment Line"): Boolean

Parameters:

  • ReturnShptLineVar: The record variable of the Return Shipment Line table.

Returns: Returns true if at least 1 record in ReturnShptLineVar is in its own document in a total or in a bundle, false otherwise.

Remarks: It will be used in some factboxes (Pages) of table "Return Shipment Line"

ArchPurchLinesInTotals(Record Purchase Line Archive) : Boolean

Summary: Checks if at least 1 line in the Purchase Line Archive is in its own document in a total or in a bundle.

procedure ArchPurchLinesInTotals(var archPurchLineVar: Record "Purchase Line Archive"): Boolean

Parameters:

  • archPurchLineVar: The record variable of the Purchase Line Archive table.

Returns: Returns true if at least 1 record in archPurchLineVar is in its own document in a total or in a bundle, false otherwise.

Remarks: It will be used in some factboxes (Pages) of table "Purchase Line Archive"

ShowPurchDocTextArchLines(Enum Purchase Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) :

procedure ShowPurchDocTextArchLines(PurchaseDocumentType: Enum "Purchase Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"): 

CalcNoOfPurchDocArchTextLines(Option, Code[20], Integer, Integer, Integer, Option) : Integer

Summary: Calculates the number of lines in the Purchase Document Text Archive.

procedure CalcNoOfPurchDocArchTextLines(docTypePar: Option; docNoPar: Code[20]; docNoOccPar: Integer; versionNoPar: Integer; docLineNoPar: Integer; positionPar: Option): Integer

Parameters:

  • docTypePar: The type of the document.
  • docNoPar: The number of the document.
  • docNoOccPar: The occurrence number of the document.
  • versionNoPar: The version number of the document.
  • docLineNoPar: The line number of the document.
  • positionPar: The position of the text.

Returns: The number of lines in the Purchase Document Text Archive.

Remarks: It will be used in some factboxes (Pages) of tables "Purchase Header Archive", "Purchase Line Archive"

ShowPostPurchDocTextLines(Enum KVSKBAPostedPurchDocTextType, Code[20], Integer, Enum KVSKBATextPosition) :

Summary: Shows the Posted Purchase Document Text Lines.

procedure ShowPostPurchDocTextLines(KVSKBAPostedPurchDocTextType: Enum "KVSKBAPostedPurchDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"): 

Parameters:

  • KVSKBAPostedPurchDocTextType: The type of the posted purchase document text.
  • DocNo: The number of the document.
  • DocLineNo: The line number of the document.
  • KVSKBATextPosition: The position of the text.

Remarks: It will be used in some factboxes (forms/Pages) of tables "Purchase Header", "Purchase Line"

CalcNoOfPostPurchDocTextLines(Option, Code[20], Integer, Option) : Integer

Summary: Calculates the number of lines in Posted Purchase Document Lines.

procedure CalcNoOfPostPurchDocTextLines(docTypePar: Option; docNoPar: Code[20]; docLineNoPar: Integer; positionPar: Option): Integer

Parameters:

  • docTypePar: The type of the document.
  • docNoPar: The number of the document.
  • docLineNoPar: The line number of the document.
  • positionPar: The position of the text.

Returns: The number of lines in the Posted Purchase Document Lines.

Remarks: It will be used in some factboxes (forms/Pages) of tables "Purchase Header", "Purchase Line"

Events

OnAfterShowPurchDocTextArchLines(Enum Purchase Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) :

[IntegrationEvent(false, false)]
local procedure OnAfterShowPurchDocTextArchLines(PurchaseDocumentType: Enum "Purchase Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"): 

OnAfterShowPostPurchaseDocTextLines(Enum KVSKBAPostedPurchDocTextType, Code[20], Integer, Enum KVSKBATextPosition) :

Summary: The OnAfterShowPostPurchaseDocTextLines event is raised after showing the posted purchase document text lines.

[IntegrationEvent(false, false)]
local procedure OnAfterShowPostPurchaseDocTextLines(KVSKBAPostedPurchDocTextType: Enum "KVSKBAPostedPurchDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"): 

Parameters:

  • KVSKBAPostedPurchDocTextType: The type of the posted purchase document.
  • DocNo: The document number.
  • DocLineNo: The document line number.
  • KVSKBATextPosition: The position of the text.

Remarks: This event is raised after the default logic to show the posted purchase document text lines is executed.

OnBeforeShowPurchDocTextArchLines(Enum Purchase Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition, Boolean) :

[IntegrationEvent(false, false)]
local procedure OnBeforeShowPurchDocTextArchLines(PurchaseDocumentType: Enum "Purchase Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean): 

OnBeforeShowPostPurchaseDocTextLines(Enum KVSKBAPostedPurchDocTextType, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :

Summary: The OnBeforeShowPostPurchaseDocTextLines event is raised before showing the posted purchase document text lines.

[IntegrationEvent(false, false)]
local procedure OnBeforeShowPostPurchaseDocTextLines(KVSKBAPostedPurchDocTextType: Enum "KVSKBAPostedPurchDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean): 

Parameters:

  • KVSKBAPostedPurchDocTextType: The type of the posted purchase document.
  • DocNo: The document number.
  • DocLineNo: The document line number.
  • KVSKBATextPosition: The position of the text.
  • IsHandled: A boolean value indicating whether the event has been handled.

Remarks: If the event handler sets the IsHandled parameter to true, the default logic to show the posted purchase document text lines will not be executed.