KVSKBARequisitionLine
Extends #437dbf0e84ff417a965ded2bb9650972#Requisition Line
Fields
| Name | Type | Note |
|---|---|---|
| KVSKBANumberofBlanketOrdLines | Integer | FlowField |
| KVSKBABlanketOrderNo | Code[20] | |
| KVSKBABlanketOrderLineNo | Integer | |
| KVSKBADirectUnitCostPriceUnit | Decimal | |
| KVSKBAPriceUnit | Decimal | |
| KVSKBAVendorMinOrderAmount | Decimal | FlowField |
| KVSKBAAssignedUserID | Code[50] | |
| KVSKBAVendorCarriagePaidLimit | Decimal | FlowField |
| KVSKBAGenerateQuoteRequest | Boolean | |
| KVSKBAQuoteRequestsexist | Boolean | FlowField |
| KVSKBACheckCreateNewPurchOrder | Boolean | |
| KVSKBAVendorPricesInclVAT | Boolean | FlowField |
| KVSKBAOrderDateCalcReq | Date | |
| KVSKBAToDateCalcReq | Date | |
| KVSKBAUseForecastCalcReq | Code[10] | |
| KVSKBAExclForecBefCalcReq | Date | |
| KVSKBABlanketPurchOrderExists | Boolean | FlowField |
| KVSKBAServiceOrderNo | Code[20] | |
| KVSKBAServiceOrderItemLineNo | Integer | |
| KVSKBAServiceLineNo | Integer | |
| KVSKBAPriceOrigin | Enum (KVSKBAPurchasePriceOrigin) | |
| KVSKBALineDiscountOrigin | Enum (KVSKBAPurchLineDiscountOrigin) |
Procedures
KVSKBACheckPriceCalculationMethod() : Boolean
Summary: Checks if extended price calculation is enabled and the price calculation method uses KBA changes.
procedure KVSKBACheckPriceCalculationMethod(): Boolean
Returns: True if extended price calculation is enabled and the method uses KBA changes.
Remarks: This procedure checks if the extended price calculation is enabled and if the price calculation method is set to use KBA changes. It returns true if both conditions are met, indicating that the price calculation method is valid for use with KBA changes; otherwise, it returns false.
Events
KVSKBAOnBeforeDrilldownBlanketPurchOrderExists(Record Requisition Line, Boolean) :
Summary: Integration event that is raised before the drill-down on existing blanket purchase orders is executed.
[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeDrilldownBlanketPurchOrderExists(RequisitionLine: Record "Requisition Line"; var IsHandled: Boolean):
Parameters:
RequisitionLine: The current requisition line record.IsHandled: Set to true to skip the default drill-down logic.
Remarks: Subscribe to this event to implement custom drill-down behavior for blanket purchase orders. Setting IsHandled to true will bypass the standard call to DrillDownBlanketOrderLines in KVSKBARequisitionLib.
KVSKBAOnBeforeCalcBlanketPurchOrderExists(Record Requisition Line, Boolean, Boolean) :
Summary: Integration event that is raised before calculating whether a blanket purchase order exists for the requisition line.
[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCalcBlanketPurchOrderExists(RequisitionLine: Record "Requisition Line"; var BlanketPurchaseOrderExist: Boolean; var IsHandled: Boolean):
Parameters:
RequisitionLine: The current requisition line record.BlanketPurchaseOrderExist: Set this variable to the desired result when handling the event.IsHandled: Set to true to skip the default blanket purchase order existence check.
Remarks: Subscribe to this event to implement custom logic for determining whether a blanket purchase order exists. When IsHandled is set to true, the value of BlanketPurchaseOrderExist will be used as the return value of KVSKBACalcBlanketPurchOrderExists instead of the standard FlowField calculation.
KVSKBAOnBeforeCheckAllowFindNewRequisitionLineDisc(Record Requisition Line, Boolean) :
Summary: Integration event that is raised before checking whether a new requisition line discount can be found.
[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCheckAllowFindNewRequisitionLineDisc(Rec: Record "Requisition Line"; SkipItemPurchaseDiscCalc: Boolean):
Parameters:
Rec: The current requisition line record being checked.SkipItemPurchaseDiscCalc: Set to true to skip the item purchase discount calculation.
Remarks: Subscribe to this event to control whether the automatic discount recalculation should be suppressed. Setting SkipItemPurchaseDiscCalc to true will cause KVSKBACheckAllowFindNewRequisitionLineDisc to return false, preventing a new discount from being applied to the requisition line.
KVSKBAOnBeforeCheckAllowFindNewRequisitionLinePrice(Record Requisition Line, Boolean) :
Summary: Integration event that is raised before checking whether a new requisition line price can be found.
[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCheckAllowFindNewRequisitionLinePrice(Rec: Record "Requisition Line"; SkipItemPurchasePriceCalc: Boolean):
Parameters:
Rec: The current requisition line record being checked.SkipItemPurchasePriceCalc: Set to true to skip the item purchase price calculation.
Remarks: Subscribe to this event to control whether the automatic price recalculation should be suppressed. Setting SkipItemPurchasePriceCalc to true will cause KVSKBACheckAllowFindNewPurchaseLinePrice to return false, preventing a new price from being applied to the requisition line.