KVSFCYCostingCalculationMgmt#
Procedures#
CalcUnitCostConsumption(Record Item, Date) : Decimal#
Summary: Calculates the unit cost for consumption including item-specific indirect costs and overhead rates. This procedure computes the total unit cost for consumption purposes by applying calculation conditions to the item and adding consumption-specific indirect cost percentages and overhead rates. It uses the KUMAVISION factory calculation system to determine enhanced cost calculations based on item-specific conditions and consumption parameters. The calculation includes the base unit cost plus additional consumption-related costs calculated from indirect cost percentages and overhead rates.
procedure CalcUnitCostConsumption(itemPar: Record "Item"; calcDatePar: Date): Decimal
Parameters:
itemPar: Record Item: The item for which the consumption unit cost should be calculated.calcDatePar: Date: The calculation date for applying time-sensitive calculation conditions. If zero, WorkDate is used.
Returns: Decimal: The calculated unit cost for consumption including all applicable indirect costs and overhead rates, rounded to unit-amount precision.
Events#
OnAfterFindItemDefaultVendorPriceADisc(Record Item, Decimal, Code[10], Code[10], Date, Boolean) :#
Summary: Event triggered after finding default vendor price and discount for an item during cost calculation.
[IntegrationEvent(false, false)]
local procedure OnAfterFindItemDefaultVendorPriceADisc(var Item: Record "Item"; Quantity: Decimal; LocationCode: Code[10]; VariantCode: Code[10]; CalcDate: Date; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSFCYCostingCalculationMgmt", 'OnAfterFindItemDefaultVendorPriceADisc', '', false, false)]
local procedure DoSomethingOnAfterFindItemDefaultVendorPriceADisc(var Item: Record "Item"; Quantity: Decimal; LocationCode: Code[10]; VariantCode: Code[10]; CalcDate: Date; var IsHandled: Boolean)
begin
end;
Parameters:
Item: The item for which vendor price and discount information was retrieved.Quantity: The quantity for which the price calculation was performed.LocationCode: The location code used for price determination.VariantCode: The variant code used for price determination.CalcDate: The calculation date used for price determination.IsHandled: Boolean flag to indicate if the price calculation has been handled by custom logic.