Skip to content

KVSKBAServiceLine#

Extends #437dbf0e84ff417a965ded2bb9650972#Service Line

Fields#

Name Type Note
KVSKBAUnitPricePriceUnit Decimal
KVSKBAPriceUnit Decimal
KVSKBAItemPriceGroup Code[10]
KVSKBAItemDiscGroup Code[20]
KVSKBADocumentProcessID Code[20]
KVSKBAAlternative Enum (KVSKBAAlternative)
KVSKBAIndentation Integer
KVSKBASubtotal Decimal FlowField
KVSKBATotaling Text[20]
KVSKBAPrintLine Boolean
KVSKBAPrintPageBreak Boolean
KVSKBAFontStyle Enum (KVSKBAFontStyle)
KVSKBANullPosition Enum (KVSKBANullPosition) Warning: Obsolete
KVSKBANotBillable Code[20]
KVSKBAPostingCode Code[10] Warning: Obsolete
KVSKBASaveAllowInvDisc Boolean
KVSKBAApplyToDispHandlingOrder Boolean
KVSKBAPriceCalcExist Boolean FlowField
KVSKBADiscountCalcExist Boolean FlowField
KVSKBAPriceOrigin Enum (KVSKBAServicePriceOrigin)
KVSKBALineDiscountOrigin Enum (KVSKBAServLineDiscountOrigin)
KVSKBAPurchasingCode Code[10]
KVSKBASpecialOrder Boolean
KVSKBADropShipment Boolean
KVSKBAPurchaseOrderNo Code[20]
KVSKBAPurchOrderLineNo Integer
KVSKBASpecialOrderPurchaseNo Code[20]
KVSKBASpecialOrderPurchLineNo Integer

Procedures#

KVSKBAIsPriceUpdateOfOtherItemLinesRequired(Record Service Line) : Boolean#

Summary: Checks if a Price Update is required and return the check

procedure KVSKBAIsPriceUpdateOfOtherItemLinesRequired(OldServiceLine: Record "Service Line"): Boolean

Parameters:

  • OldServiceLine: Line to Check

Returns: Is Price Update Required

KVSKBAUpdateOtherItemLinesUnitPrice(Record Service Line) :#

procedure KVSKBAUpdateOtherItemLinesUnitPrice(OldServiceLine: Record "Service Line"): 

KVSKBACheckPriceCalculationMethod() : Boolean#

procedure KVSKBACheckPriceCalculationMethod(): Boolean

KVSKBASetPriceOrigin(Enum KVSKBAServicePriceOrigin) :#

Summary: Sets the price origin for the current service line.

procedure KVSKBASetPriceOrigin(NewServicePriceOrigin: Enum "KVSKBAServicePriceOrigin"): 

Parameters:

  • NewServicePriceOrigin: The new price origin to set.

Remarks: This procedure sets the price origin for the current service line. Sets the KVSKBAPriceOrigin field to the new price origin. This can prevent the price from being overwritten by the price calculation, for example, if the origin is set to External or Manual.

KVSKBASetLineDiscountOrigin(Enum KVSKBAServLineDiscountOrigin) :#

Summary: Sets the line discount origin for the current service line.

procedure KVSKBASetLineDiscountOrigin(NewServLineDiscountOrigin: Enum "KVSKBAServLineDiscountOrigin"): 

Parameters:

  • NewServLineDiscountOrigin: The new line discount origin to set.

Remarks: This procedure sets the line discount origin for the current service line. Sets the KVSKBALineDiscountOrigin field to the new line discount origin. This can prevent the line discount from being overwritten by the line discount calculation, for example, if the origin is set to External or Manual.

KVSKBASetDeletedInPage(Boolean) :#

Summary: Set the global Delete in Page

procedure KVSKBASetDeletedInPage(NewDeletedInPage: Boolean): 

Parameters:

  • NewDeletedInPage: New Value to set

KVSKBATestQuoteReleaseStatusOpen() :#

Summary: The function checks whether the current service quote header is released.

procedure KVSKBATestQuoteReleaseStatusOpen(): 

KVSKBASetSuppressTestQuoteReleaseStatusOpen() :#

Summary: Suppress Test QuoteReleaseStatus Open

procedure KVSKBASetSuppressTestQuoteReleaseStatusOpen(): 

Events#

KVSKBAOnBeforeAddCustomerNoAtKBATypes(Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeAddCustomerNoAtKBATypes(var IsHandled: Boolean): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSKBAServiceLine", 'KVSKBAOnBeforeAddCustomerNoAtKBATypes', '', false, false)]
local procedure DoSomethingKVSKBAOnBeforeAddCustomerNoAtKBATypes(var IsHandled: Boolean)
begin
end;

KVSKBAOnBeforeUpdServicePriceDiscCalcLine(Record Service Line, Record KVSKBAServicePriceDiscCalcLine) :#

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeUpdServicePriceDiscCalcLine(ServiceLine: Record "Service Line"; var TempKVSKBAServicePriceDiscCalcLine: Record "KVSKBAServicePriceDiscCalcLine" temporary): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSKBAServiceLine", 'KVSKBAOnBeforeUpdServicePriceDiscCalcLine', '', false, false)]
local procedure DoSomethingKVSKBAOnBeforeUpdServicePriceDiscCalcLine(ServiceLine: Record "Service Line"; var TempKVSKBAServicePriceDiscCalcLine: Record "KVSKBAServicePriceDiscCalcLine" temporary)
begin
end;

KVSKBAOnBeforeCheckAllowFindNewServiceLinePrice(Record Service Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCheckAllowFindNewServiceLinePrice(ServiceLine: Record "Service Line"; var SkipPriceCalc: Boolean): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSKBAServiceLine", 'KVSKBAOnBeforeCheckAllowFindNewServiceLinePrice', '', false, false)]
local procedure DoSomethingKVSKBAOnBeforeCheckAllowFindNewServiceLinePrice(ServiceLine: Record "Service Line"; var SkipPriceCalc: Boolean)
begin
end;

KVSKBAOnBeforeCheckAllowFindNewServiceLineDiscount(Record Service Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure KVSKBAOnBeforeCheckAllowFindNewServiceLineDiscount(ServiceLine: Record "Service Line"; var SkipLineDiscountCalc: Boolean): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSKBAServiceLine", 'KVSKBAOnBeforeCheckAllowFindNewServiceLineDiscount', '', false, false)]
local procedure DoSomethingKVSKBAOnBeforeCheckAllowFindNewServiceLineDiscount(ServiceLine: Record "Service Line"; var SkipLineDiscountCalc: Boolean)
begin
end;

KVSKBAOnValidateNotBillableOnBeforeSelectAskBillableHandlingType(Record Service Line, Integer, Boolean) :#

Summary: Integration event that is raised before selecting the handling type for 'Not Billable' when 'Ask' option is chosen.

[IntegrationEvent(false, false)]
local procedure KVSKBAOnValidateNotBillableOnBeforeSelectAskBillableHandlingType(ServiceLine: Record "Service Line"; var DefaultSelectOption: Integer; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::TableExtension, TableExtension::"KVSKBAServiceLine", 'KVSKBAOnValidateNotBillableOnBeforeSelectAskBillableHandlingType', '', false, false)]
local procedure DoSomethingKVSKBAOnValidateNotBillableOnBeforeSelectAskBillableHandlingType(ServiceLine: Record "Service Line"; var DefaultSelectOption: Integer; var IsHandled: Boolean)
begin
end;

Parameters:

  • ServiceLine: The Service Line record.
  • DefaultSelectOption: The default option to select (1 for 'Full Discount', 2 for 'Empty Price and Discount').
  • IsHandled: Set to true if the event has been handled and the default behavior should be skipped.