Skip to content

KVSTRDAlloySurchargeMgt#

Procedures#

InsertAndCalculateItemChargePurchaseLinesByItemAlloySurcharge(Record Purchase Line) :#

Summary: Inserts and calculates the item charge purchase lines by item alloy surcharge.

procedure InsertAndCalculateItemChargePurchaseLinesByItemAlloySurcharge(var ItemPurchaseLine: Record "Purchase Line"): 

Parameters:

  • ItemPurchaseLine: The item purchase line.

InsertAndCalculateItemChargeSalesLinesByItemAlloySurcharge(Record Sales Line) :#

Summary: Inserts and calculates the item charge sales lines by item alloy surcharge.

procedure InsertAndCalculateItemChargeSalesLinesByItemAlloySurcharge(var ItemSalesLine: Record "Sales Line"): 

Parameters:

  • ItemSalesLine: The item sales line.

Events#

KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentPurch(Record Purchase Line, Record Item Charge Assignment (Purch), Decimal) :#

Summary: This event is raised after the new quantity to assign is calculated in the UpdateItemChargeAssignmentPurch procedure. It allows additional processing or modifications to the new quantity before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentPurch(var AlloySurchargePurchaseLine: Record "Purchase Line"; var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewQtyToAssign: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentPurch', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentPurch(var AlloySurchargePurchaseLine: Record "Purchase Line"; var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var NewQtyToAssign: Decimal)
begin
end;

Parameters:

  • AlloySurchargePurchaseLine: The Alloy Surcharge Purchase Line record that is being processed.
  • ItemChargeAssignmentPurch: The Item Charge Assignment (Purch) record that is being updated.
  • NewQtyToAssign: The new quantity to assign that has been calculated.

KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentSales(Record Sales Line, Record Item Charge Assignment (Sales), Decimal) :#

Summary: This event is raised after the new quantity to assign is calculated in the UpdateItemChargeAssignmentSales procedure. It allows additional processing or modifications to the new quantity before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentSales(var AlloySurchargeSalesLine: Record "Sales Line"; var ItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)"; var NewQtyToAssign: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentSales', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterCalculateNewQuantityToAssignInUpdateItemChargeAssignmentSales(var AlloySurchargeSalesLine: Record "Sales Line"; var ItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)"; var NewQtyToAssign: Decimal)
begin
end;

Parameters:

  • AlloySurchargeSalesLine: The Alloy Surcharge Sales Line record that is being processed.
  • ItemChargeAssignmentSales: The Item Charge Assignment (Sales) record that is being updated.
  • NewQtyToAssign: The new quantity to assign that has been calculated.

KVSTRDOnAfterGetStartingAndEndingDateForSurchargePrice(Integer, Code[20], Code[20], Code[10], Decimal, Code[20], Date, Code[10], Decimal, Date, Date) :#

Summary: This event is raised after the starting and ending date for the surcharge price is determined. It allows additional processing or modifications to the dates before they are used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterGetStartingAndEndingDateForSurchargePrice(var SourceType: Integer; var SourceNo: Code[20]; var ItemNo: Code[20]; var VariantCode: Code[10]; var QtyPerUnitOfMeasure: Decimal; var AlloySurchargeCode: Code[20]; var ValuationDate: Date; var CurrencyCode: Code[10]; var CurrencyFactor: Decimal; var PriceStartingDate: Date; var PriceEndingDate: Date): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterGetStartingAndEndingDateForSurchargePrice', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterGetStartingAndEndingDateForSurchargePrice(var SourceType: Integer; var SourceNo: Code[20]; var ItemNo: Code[20]; var VariantCode: Code[10]; var QtyPerUnitOfMeasure: Decimal; var AlloySurchargeCode: Code[20]; var ValuationDate: Date; var CurrencyCode: Code[10]; var CurrencyFactor: Decimal; var PriceStartingDate: Date; var PriceEndingDate: Date)
begin
end;

Parameters:

  • SourceType: The type of the source (e.g., Customer, Vendor).
  • SourceNo: The number of the source (e.g., Customer No., Vendor No.).
  • ItemNo: The item number for which the surcharge price is being calculated.
  • VariantCode: The variant code for the item, if applicable.
  • QtyPerUnitOfMeasure: The quantity per unit of measure for the item.
  • AlloySurchargeCode: The code for the alloy surcharge.
  • ValuationDate: The valuation date for the surcharge price.
  • CurrencyCode: The currency code for the surcharge price.
  • CurrencyFactor: The currency factor for the surcharge price.
  • PriceStartingDate: The starting date for the surcharge price.
  • PriceEndingDate: The ending date for the surcharge price.

KVSTRDOnAfterInsertNewPurchaseLineInInsertItemChargeLine(Record Purchase Line, Record Purchase Line) :#

Summary: This event is raised after a new purchase line is inserted in the InsertItemChargeLine procedure. It allows additional processing or modifications to the new purchase line before it is finalized.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertNewPurchaseLineInInsertItemChargeLine(var PurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterInsertNewPurchaseLineInInsertItemChargeLine', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertNewPurchaseLineInInsertItemChargeLine(var PurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • PurchaseLine: The Purchase Line record that is being processed.
  • NewPurchaseLine: The new Purchase Line record that has been inserted.

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

Summary: This event is raised after a new sales line is inserted in the InsertItemChargeLine procedure. It allows additional processing or modifications to the new sales line before it is finalized.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterInsertNewSalesLineInInsertItemChargeLine(var SalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterInsertNewSalesLineInInsertItemChargeLine', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterInsertNewSalesLineInInsertItemChargeLine(var SalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
begin
end;

Parameters:

  • SalesLine: The Sales Line record that is being processed.
  • NewSalesLine: The new Sales Line record that has been inserted.

KVSTRDOnAfterSetFilterOnBeforeFindSetPurchaseLineInUpdatePurchaseLines(Record Purchase Line, Date, Record Purchase Header, Record Purchase Line) :#

Summary: This event is raised after the filter is set on the Purchase Line record before finding a set of purchase lines in the UpdatePurchaseLines procedure. It allows additional processing or modifications to the filtered purchase line before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetFilterOnBeforeFindSetPurchaseLineInUpdatePurchaseLines(var FilteredPurchaseLine: Record "Purchase Line"; var ValuationDate: Date; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterSetFilterOnBeforeFindSetPurchaseLineInUpdatePurchaseLines', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterSetFilterOnBeforeFindSetPurchaseLineInUpdatePurchaseLines(var FilteredPurchaseLine: Record "Purchase Line"; var ValuationDate: Date; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • FilteredPurchaseLine: The filtered Purchase Line record that is being processed.
  • ValuationDate: The valuation date for the purchase lines.
  • PurchaseHeader: The Purchase Header record associated with the purchase lines.
  • PurchaseLine: The Purchase Line record that is being processed.

KVSTRDOnAfterSetFilterOnBeforeFindSetSalesLineInUpdateSalesLines(Record Sales Line, Date, Record Sales Header, Record Sales Line) :#

Summary: This event is raised after the filter is set on the Sales Line record before finding a set of sales lines in the UpdateSalesLines procedure. It allows additional processing or modifications to the filtered sales line before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetFilterOnBeforeFindSetSalesLineInUpdateSalesLines(var FilteredSalesLine: Record "Sales Line"; var ValuationDate: Date; var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterSetFilterOnBeforeFindSetSalesLineInUpdateSalesLines', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterSetFilterOnBeforeFindSetSalesLineInUpdateSalesLines(var FilteredSalesLine: Record "Sales Line"; var ValuationDate: Date; var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • FilteredSalesLine: The filtered Sales Line record that is being processed.
  • ValuationDate: The valuation date for the sales lines.
  • SalesHeader: The Sales Header record associated with the sales lines.
  • SalesLine: The Sales Line record that is being processed.

KVSTRDOnAfterSetValuationDateInUpdatePurchaseLines(Date, Record Purchase Header, Record Purchase Line) :#

Summary: This event is raised after the valuation date is set in the UpdatePurchaseLines procedure. It allows additional processing or modifications to the valuation date before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetValuationDateInUpdatePurchaseLines(var ValuationDate: Date; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterSetValuationDateInUpdatePurchaseLines', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterSetValuationDateInUpdatePurchaseLines(var ValuationDate: Date; var PurchaseHeader: Record "Purchase Header"; var PurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • ValuationDate: The valuation date that has been set.
  • PurchaseHeader: The Purchase Header record associated with the purchase line.
  • PurchaseLine: The Purchase Line record that is being processed.

KVSTRDOnAfterSetValuationDateInUpdateSalesLines(Date, Record Sales Header, Record Sales Line) :#

Summary: This event is raised after the valuation date is set in the UpdateSalesLines procedure. It allows additional processing or modifications to the valuation date before it is used.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetValuationDateInUpdateSalesLines(var ValuationDate: Date; var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnAfterSetValuationDateInUpdateSalesLines', '', false, false)]
local procedure DoSomethingKVSTRDOnAfterSetValuationDateInUpdateSalesLines(var ValuationDate: Date; var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
begin
end;

Parameters:

  • ValuationDate: The valuation date that has been set.
  • SalesHeader: The Sales Header record associated with the sales line.
  • SalesLine: The Sales Line record that is being processed.

KVSTRDOnBeforeCalculateSurchargePriceOnBeforeSetSurchargePrice(Code[20], Code[10], Code[20], Decimal, Decimal, Decimal, Decimal) :#

Summary: This event is raised before the surcharge price is set in the CalculateSurchargePrice procedure. It allows additional processing or modifications to the surcharge price calculation before it is finalized.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCalculateSurchargePriceOnBeforeSetSurchargePrice(ItemNo: Code[20]; VariantCode: Code[10]; AlloySurchargeCode: Code[20]; var AlloyWeight: Decimal; var BasePrice: Decimal; var ProcurementCostsPercentage: Decimal; var UnitPrice: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeCalculateSurchargePriceOnBeforeSetSurchargePrice', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCalculateSurchargePriceOnBeforeSetSurchargePrice(ItemNo: Code[20]; VariantCode: Code[10]; AlloySurchargeCode: Code[20]; var AlloyWeight: Decimal; var BasePrice: Decimal; var ProcurementCostsPercentage: Decimal; var UnitPrice: Decimal)
begin
end;

Parameters:

  • ItemNo: The item number for which the surcharge price is being calculated.
  • VariantCode: The variant code for the item, if applicable.
  • AlloySurchargeCode: The code for the alloy surcharge.
  • AlloyWeight: The weight of the alloy for which the surcharge price is being calculated.
  • BasePrice: The base price of the alloy surcharge.
  • ProcurementCostsPercentage: The percentage of procurement costs to be applied to the surcharge price.
  • UnitPrice: The alloy surcharge price that has been determined.

KVSTRDOnBeforeCheckQtyToReceiveBaseDiffersBetweenItemAndAlloySurchargePurchaseLines(Record Purchase Header, Boolean) :#

Summary: This event is raised before checking if the quantity to receive base differs between the item purchase lines and the alloy surcharge purchase lines. It allows additional processing or modifications to the check before it is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCheckQtyToReceiveBaseDiffersBetweenItemAndAlloySurchargePurchaseLines(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeCheckQtyToReceiveBaseDiffersBetweenItemAndAlloySurchargePurchaseLines', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCheckQtyToReceiveBaseDiffersBetweenItemAndAlloySurchargePurchaseLines(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseHeader: The Purchase Header record associated with the purchase lines.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(Record Sales Header, Boolean) :#

Summary: This event is raised before checking if the quantity to ship base differs between the item sales lines and the alloy surcharge sales lines. It allows additional processing or modifications to the check before it is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesHeader: The Sales Header record associated with the sales lines.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnBeforeGetQuantityForAlloySurchargePurchaseLine(Record Purchase Line, Decimal) :#

Summary: This event is raised before getting the quantity for the alloy surcharge purchase line. It allows additional processing or modifications to the quantity before it is returned.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeGetQuantityForAlloySurchargePurchaseLine(var ItemPurchaseLine: Record "Purchase Line"; var QuantityToReturn: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeGetQuantityForAlloySurchargePurchaseLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeGetQuantityForAlloySurchargePurchaseLine(var ItemPurchaseLine: Record "Purchase Line"; var QuantityToReturn: Decimal)
begin
end;

Parameters:

  • ItemPurchaseLine: The Item Purchase Line record that is being processed.
  • QuantityToReturn: The quantity to return for the alloy surcharge purchase line.

KVSTRDOnBeforeGetQuantityForAlloySurchargeSalesLine(Record Sales Line, Decimal) :#

Summary: This event is raised before getting the quantity for the alloy surcharge sales line. It allows additional processing or modifications to the quantity before it is returned.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeGetQuantityForAlloySurchargeSalesLine(var ItemSalesLine: Record "Sales Line"; var QuantityToReturn: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeGetQuantityForAlloySurchargeSalesLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeGetQuantityForAlloySurchargeSalesLine(var ItemSalesLine: Record "Sales Line"; var QuantityToReturn: Decimal)
begin
end;

Parameters:

  • ItemSalesLine: The Item Sales Line record that is being processed.
  • QuantityToReturn: The quantity to return for the alloy surcharge sales line.

KVSTRDOnBeforeInsertItemChargeAssignmentPurch(Record Purchase Line, Boolean) :#

Summary: This event is raised before inserting an item charge assignment for purchase lines. It allows additional processing or modifications to the purchase line before the item charge assignment is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertItemChargeAssignmentPurch(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertItemChargeAssignmentPurch', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertItemChargeAssignmentPurch(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PurchaseLine: The Purchase Line record that is being processed.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnBeforeInsertItemChargeAssignmentPurchInInsertItemChargeAssignmentPurch(Record Item Charge Assignment (Purch), Record Purchase Line, Record Purchase Line) :#

Summary: This event is raised before inserting an item charge assignment for purchase lines in the InsertItemChargeAssignmentPurch procedure. It allows additional processing or modifications to the item charge assignment for purchase lines before it is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertItemChargeAssignmentPurchInInsertItemChargeAssignmentPurch(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var ItemPurchaseLine: Record "Purchase Line"; var AlloySurchargePurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertItemChargeAssignmentPurchInInsertItemChargeAssignmentPurch', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertItemChargeAssignmentPurchInInsertItemChargeAssignmentPurch(var ItemChargeAssignmentPurch: Record "Item Charge Assignment (Purch)"; var ItemPurchaseLine: Record "Purchase Line"; var AlloySurchargePurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • ItemChargeAssignmentPurch: The Item Charge Assignment (Purch) record that is being processed.
  • ItemPurchaseLine: The Item Purchase Line record that is being processed.
  • AlloySurchargePurchaseLine: The Alloy Surcharge Purchase Line record that is being processed.

KVSTRDOnBeforeInsertItemChargeAssignmentSales(Record Sales Line, Boolean) :#

Summary: This event is raised before inserting an item charge assignment for sales lines. It allows additional processing or modifications to the sales line before the item charge assignment is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertItemChargeAssignmentSales(var SalesLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertItemChargeAssignmentSales', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertItemChargeAssignmentSales(var SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • SalesLine: The Sales Line record that is being processed.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnBeforeInsertItemChargeAssignmentSalesInInsertItemChargeAssignmentSales(Record Item Charge Assignment (Sales), Record Sales Line, Record Sales Line) :#

Summary: This event is raised before inserting an item charge assignment for sales lines in the InsertItemChargeAssignmentSales procedure. It allows additional processing or modifications to the item charge assignment for sales lines before it is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertItemChargeAssignmentSalesInInsertItemChargeAssignmentSales(var ItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)"; var ItemSalesLine: Record "Sales Line"; var AlloySurchargeSalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertItemChargeAssignmentSalesInInsertItemChargeAssignmentSales', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertItemChargeAssignmentSalesInInsertItemChargeAssignmentSales(var ItemChargeAssignmentSales: Record "Item Charge Assignment (Sales)"; var ItemSalesLine: Record "Sales Line"; var AlloySurchargeSalesLine: Record "Sales Line")
begin
end;

Parameters:

  • ItemChargeAssignmentSales: The Item Charge Assignment (Sales) record that is being processed.
  • ItemSalesLine: The Item Sales Line record that is being processed.
  • AlloySurchargeSalesLine: The Alloy Surcharge Sales Line record that is being processed.

KVSTRDOnBeforeInsertNewPurchaseLineInInsertItemChargeLine(Record Purchase Line, Record Purchase Line) :#

Summary: This event is raised before inserting a new purchase line in the InsertItemChargeLine procedure. It allows additional processing or modifications to the new purchase line before it is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertNewPurchaseLineInInsertItemChargeLine(var PurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertNewPurchaseLineInInsertItemChargeLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertNewPurchaseLineInInsertItemChargeLine(var PurchaseLine: Record "Purchase Line"; var NewPurchaseLine: Record "Purchase Line")
begin
end;

Parameters:

  • PurchaseLine: The Purchase Line record that is being processed.
  • NewPurchaseLine: The new Purchase Line record that is being inserted.

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

Summary: This event is raised before inserting a new sales line in the InsertItemChargeLine procedure. It allows additional processing or modifications to the new sales line before it is inserted.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeInsertNewSalesLineInInsertItemChargeLine(var SalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnBeforeInsertNewSalesLineInInsertItemChargeLine', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeInsertNewSalesLineInInsertItemChargeLine(var SalesLine: Record "Sales Line"; var NewSalesLine: Record "Sales Line")
begin
end;

Parameters:

  • SalesLine: The Sales Line record that is being processed.
  • NewSalesLine: The new Sales Line record that is being inserted.

KVSTRDOnCalculateAndSetUnitPriceOnBeforeValidateUnitPrice(Record Sales Line, Record Sales Line, Decimal) :#

Summary: This event is raised before validating the unit price on the alloy surcharge Sales Line in the CalculateAndSetUnitPrice procedure. It allows additional processing or modifications to the unit price before it is validated.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnCalculateAndSetUnitPriceOnBeforeValidateUnitPrice(var AlloySurchargeSalesLine: Record "Sales Line"; ItemSalesLine: Record "Sales Line"; var SurchargeUnitPrice: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnCalculateAndSetUnitPriceOnBeforeValidateUnitPrice', '', false, false)]
local procedure DoSomethingKVSTRDOnCalculateAndSetUnitPriceOnBeforeValidateUnitPrice(var AlloySurchargeSalesLine: Record "Sales Line"; ItemSalesLine: Record "Sales Line"; var SurchargeUnitPrice: Decimal)
begin
end;

Parameters:

  • AlloySurchargeSalesLine: The Alloy Surcharge Sales Line record that is being processed.
  • ItemSalesLine: The Item Sales Line record that is being referenced.
  • SurchargeUnitPrice: The surcharge Unit Price that is being validated.

KVSTRDOnCreateOrUpdatePurchaseLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(Record Purchase Line, Record Purchase Line, Boolean) :#

Summary: This event is raised after checking if all alloy surcharges are already inserted in the CreateOrUpdatePurchaseLines procedure. It allows additional processing or modifications to the purchase line after the check is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnCreateOrUpdatePurchaseLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(var ItemPurchaseLine: Record "Purchase Line"; var xItemPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnCreateOrUpdatePurchaseLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck', '', false, false)]
local procedure DoSomethingKVSTRDOnCreateOrUpdatePurchaseLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(var ItemPurchaseLine: Record "Purchase Line"; var xItemPurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ItemPurchaseLine: The Item Purchase Line record that is being processed.
  • xItemPurchaseLine: The original Item Purchase Line record before any modifications.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnCreateOrUpdateSalesLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(Record Sales Line, Record Sales Line, Boolean) :#

Summary: This event is raised after checking if all alloy surcharges are already inserted in the CreateOrUpdateSalesLines procedure. It allows additional processing or modifications to the sales line after the check is performed.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnCreateOrUpdateSalesLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(var ItemSalesLine: Record "Sales Line"; var xItemSalesLine: Record "Sales Line"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnCreateOrUpdateSalesLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck', '', false, false)]
local procedure DoSomethingKVSTRDOnCreateOrUpdateSalesLinesOnAfterAreAlloySurchargesAlreadyInsertedCheck(var ItemSalesLine: Record "Sales Line"; var xItemSalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;

Parameters:

  • ItemSalesLine: The Item Sales Line record that is being processed.
  • xItemSalesLine: The original Item Sales Line record before any modifications.
  • isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.

KVSTRDOnDirectUnitCostOnBeforeValidateDirectUnitCost(Record Purchase Line, Record Purchase Line, Decimal) :#

Summary: The event is raised before validating the direct unit cost on the alloy surcharge purchase Line in the CalculateAndSetDirectUnitCost procedure. It allows additional processing or modifications to the direct unit cost before it is validated.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnDirectUnitCostOnBeforeValidateDirectUnitCost(var AlloySurchargePurchaseLine: Record "Purchase Line"; ItemPurchaseLine: Record "Purchase Line"; var SurchargeDirectUnitCost: Decimal): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnDirectUnitCostOnBeforeValidateDirectUnitCost', '', false, false)]
local procedure DoSomethingKVSTRDOnDirectUnitCostOnBeforeValidateDirectUnitCost(var AlloySurchargePurchaseLine: Record "Purchase Line"; ItemPurchaseLine: Record "Purchase Line"; var SurchargeDirectUnitCost: Decimal)
begin
end;

Parameters:

  • AlloySurchargePurchaseLine: The Alloy Surcharge Purchase Line record that is being processed.
  • ItemPurchaseLine: The Item Purchase Line record that is being referenced.
  • SurchargeDirectUnitCost: The surcharge Direct Unit Cost that is being validated.

KVSTRDOnGetStartingAndEndingDateForSurchargePriceForOtherAlloySurchargeCalcType(Enum KVSTRDAlloySurchargeCalcType, Date, Date, Date) :#

Summary: This event is raised to get the starting and ending date for surcharge price calculation based on a non-default alloy surcharge calculation type. It allows calculation of the dates for non-default calculation types.

[IntegrationEvent(false, false)]
local procedure KVSTRDOnGetStartingAndEndingDateForSurchargePriceForOtherAlloySurchargeCalcType(AlloySurchargeCalcType: Enum "KVSTRDAlloySurchargeCalcType"; ValuationDate: Date; var StartingDate: Date; var EndingDate: Date): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'KVSTRDOnGetStartingAndEndingDateForSurchargePriceForOtherAlloySurchargeCalcType', '', false, false)]
local procedure DoSomethingKVSTRDOnGetStartingAndEndingDateForSurchargePriceForOtherAlloySurchargeCalcType(AlloySurchargeCalcType: Enum "KVSTRDAlloySurchargeCalcType"; ValuationDate: Date; var StartingDate: Date; var EndingDate: Date)
begin
end;

Parameters:

  • AlloySurchargeCalcType: The alloy surcharge calculation type for which the dates are being calculated.
  • ValuationDate: The valuation date for the surcharge price calculation.
  • StartingDate: The starting date for the surcharge price calculation.
  • EndingDate: The ending date for the surcharge price calculation.

OnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(Record Sales Header, Boolean) :#

Obsolete

This Element will be removed or changed with a future Version of the App.

[Obsolete('This event is obsolete due to wrong naming. Use KVSTRDOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines instead.', '25.2')]
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(SalesHeader: Record "Sales Header"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDAlloySurchargeMgt", 'OnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines', '', false, false)]
local procedure DoSomethingOnBeforeCheckQtyToShipBaseDiffersBetweenItemAndAlloySurchargeSalesLines(SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;