Skip to content

KVSKBASalesPriceCalcLib#

Procedures#

CollectOtherItemsOfSalesDoc(Record Sales Header, Record Sales Line, Boolean, Record KVSKBASalesPurchPriceCalcBuf, Boolean) :#

procedure CollectOtherItemsOfSalesDoc(SalesHeader: Record "Sales Header"; CurrentSalesLine: Record "Sales Line"; IncludeCurrentSalesLine: Boolean; var TempSalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf" temporary; DeleteAllBufferRecords: Boolean): 

UpdateItemSalesLinesUnitPrice(Record KVSKBASalesPurchPriceCalcBuf, Record Sales Header) :#

procedure UpdateItemSalesLinesUnitPrice(SalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf"; SalesHeader: Record "Sales Header"): 

UpdateSalesDocLinesUnitPrice(Record Sales Header, Boolean, Boolean) : Boolean#

procedure UpdateSalesDocLinesUnitPrice(SalesHeader: Record "Sales Header"; WithConfirm: Boolean; ShowMessage: Boolean): Boolean

Events#

OnBeforeModifyLineOnCopyUnitPriceAndLineDiscToOtherLine(Record Sales Line, Record Sales Line, Record Sales Header, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyLineOnCopyUnitPriceAndLineDiscToOtherLine(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ModifyLine: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeModifyLineOnCopyUnitPriceAndLineDiscToOtherLine', '', false, false)]
local procedure DoSomethingOnBeforeModifyLineOnCopyUnitPriceAndLineDiscToOtherLine(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ModifyLine: Boolean)
begin
end;

OnAfterCopyUnitPriceAndLineDiscToOtherLines(Record Sales Line, Record Sales Line, Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure OnAfterCopyUnitPriceAndLineDiscToOtherLines(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnAfterCopyUnitPriceAndLineDiscToOtherLines', '', false, false)]
local procedure DoSomethingOnAfterCopyUnitPriceAndLineDiscToOtherLines(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")
begin
end;

OnAfterValidateLineDiscPctOnCopyUnitPriceAndLineDiscToOtherLine(Record Sales Line, Record Sales Line, Record Sales Header, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnAfterValidateLineDiscPctOnCopyUnitPriceAndLineDiscToOtherLine(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ModifyLine: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnAfterValidateLineDiscPctOnCopyUnitPriceAndLineDiscToOtherLine', '', false, false)]
local procedure DoSomethingOnAfterValidateLineDiscPctOnCopyUnitPriceAndLineDiscToOtherLine(var ToSalesLine: Record "Sales Line"; FromSalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var ModifyLine: Boolean)
begin
end;

OnAfterSetFilterSalesLineToSumUpQty2(Record Sales Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterSalesLineToSumUpQty2(var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnAfterSetFilterSalesLineToSumUpQty2', '', false, false)]
local procedure DoSomethingOnAfterSetFilterSalesLineToSumUpQty2(var SalesLine: Record "Sales Line")
begin
end;

SetFilterInAddItemToPriceCalcBuffer(Record KVSKBASalesPurchPriceCalcBuf, Record Sales Line, Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure SetFilterInAddItemToPriceCalcBuffer(var TempKVSKBASalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf" temporary; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'SetFilterInAddItemToPriceCalcBuffer', '', false, false)]
local procedure DoSomethingSetFilterInAddItemToPriceCalcBuffer(var TempKVSKBASalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf" temporary; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")
begin
end;

OnBeforeInsertInAddItemToPriceCalcBuffer(Record KVSKBASalesPurchPriceCalcBuf, Record Sales Line, Record Sales Header) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertInAddItemToPriceCalcBuffer(var TempKVSKBASalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf" temporary; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeInsertInAddItemToPriceCalcBuffer', '', false, false)]
local procedure DoSomethingOnBeforeInsertInAddItemToPriceCalcBuffer(var TempKVSKBASalesPurchPriceCalcBuf: Record "KVSKBASalesPurchPriceCalcBuf" temporary; SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header")
begin
end;

OnBeforeTestFieldVariantCodeInCopyUnitPriceAndLineDiscToOtherLine(Record Sales Header, Record Sales Line, Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeTestFieldVariantCodeInCopyUnitPriceAndLineDiscToOtherLine(SalesHeader: Record "Sales Header"; FromSalesLine: Record "Sales Line"; ToSalesLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeTestFieldVariantCodeInCopyUnitPriceAndLineDiscToOtherLine', '', false, false)]
local procedure DoSomethingOnBeforeTestFieldVariantCodeInCopyUnitPriceAndLineDiscToOtherLine(SalesHeader: Record "Sales Header"; FromSalesLine: Record "Sales Line"; ToSalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

OnBeforeCompareVariantCodeInIsPriceUpdateOfOtherLinesRequired(Boolean, Code[10], Code[10], Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCompareVariantCodeInIsPriceUpdateOfOtherLinesRequired(var ChangedVariantCode: Boolean; OldVariantCode: Code[10]; NewVariantCode: Code[10]; ItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeCompareVariantCodeInIsPriceUpdateOfOtherLinesRequired', '', false, false)]
local procedure DoSomethingOnBeforeCompareVariantCodeInIsPriceUpdateOfOtherLinesRequired(var ChangedVariantCode: Boolean; OldVariantCode: Code[10]; NewVariantCode: Code[10]; ItemNo: Code[20])
begin
end;

OnBeforeCompareVariantCodeInUpdateOtherSalesLinesUnitPrice(Boolean, Code[10], Code[10], Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCompareVariantCodeInUpdateOtherSalesLinesUnitPrice(var ChangedVariantCode: Boolean; OldVariantCode: Code[10]; NewVariantCode: Code[10]; ItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeCompareVariantCodeInUpdateOtherSalesLinesUnitPrice', '', false, false)]
local procedure DoSomethingOnBeforeCompareVariantCodeInUpdateOtherSalesLinesUnitPrice(var ChangedVariantCode: Boolean; OldVariantCode: Code[10]; NewVariantCode: Code[10]; ItemNo: Code[20])
begin
end;

OnBeforeCompareVariantCodeInCompareVariantCodeInCollectOtherItemsOfSalesDoc(Boolean, Code[10], Code[10], Code[20]) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeCompareVariantCodeInCompareVariantCodeInCollectOtherItemsOfSalesDoc(var ChangedVariantCode: Boolean; VariantCode: Code[10]; CurrentVariantCode: Code[10]; ItemNo: Code[20]): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnBeforeCompareVariantCodeInCompareVariantCodeInCollectOtherItemsOfSalesDoc', '', false, false)]
local procedure DoSomethingOnBeforeCompareVariantCodeInCompareVariantCodeInCollectOtherItemsOfSalesDoc(var ChangedVariantCode: Boolean; VariantCode: Code[10]; CurrentVariantCode: Code[10]; ItemNo: Code[20])
begin
end;

OnAfterIsPriceOrDiscMinQtyPerLine(Record Sales Header, Record Sales Line, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnAfterIsPriceOrDiscMinQtyPerLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var Result: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnAfterIsPriceOrDiscMinQtyPerLine', '', false, false)]
local procedure DoSomethingOnAfterIsPriceOrDiscMinQtyPerLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var Result: Boolean)
begin
end;

OnGetTotalItemQtyOnAfterSetFilterSalesLine(Record Sales Line, Record Sales Line, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnGetTotalItemQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnGetTotalItemQtyOnAfterSetFilterSalesLine', '', false, false)]
local procedure DoSomethingOnGetTotalItemQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean)
begin
end;

OnGetTotalItemPriceGrpQtyOnAfterSetFilterSalesLine(Record Sales Line, Record Sales Line, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure OnGetTotalItemPriceGrpQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnGetTotalItemPriceGrpQtyOnAfterSetFilterSalesLine', '', false, false)]
local procedure DoSomethingOnGetTotalItemPriceGrpQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean)
begin
end;

GetTotalItemDiscGrpQtyOnAfterSetFilterSalesLine(Record Sales Line, Record Sales Line, Decimal, Boolean) :#

[IntegrationEvent(false, false)]
local procedure GetTotalItemDiscGrpQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'GetTotalItemDiscGrpQtyOnAfterSetFilterSalesLine', '', false, false)]
local procedure DoSomethingGetTotalItemDiscGrpQtyOnAfterSetFilterSalesLine(CurrentSalesLine: Record "Sales Line"; var SalesLine: Record "Sales Line"; var TotalQty: Decimal; var IsHandled: Boolean)
begin
end;

OnAfterFilterSalesLineToSumUpQty(Record Sales Line, Record Sales Line) :#

[IntegrationEvent(false, false)]
local procedure OnAfterFilterSalesLineToSumUpQty(var SalesLine: Record "Sales Line"; CurrentSalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPriceCalcLib", 'OnAfterFilterSalesLineToSumUpQty', '', false, false)]
local procedure DoSomethingOnAfterFilterSalesLineToSumUpQty(var SalesLine: Record "Sales Line"; CurrentSalesLine: Record "Sales Line")
begin
end;