KVSTRDPurchMinOrderValueMgt#
Procedures#
CalculateOrderValues(Record Requisition Line, Decimal, Decimal, Decimal, Decimal, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Calculates the total amount ("Quantity" * "Direct Unit Cost" minus discounts) of all Requsition Lines for a vendor.
[Obsolete('The logic for "KVSTRDMinimum Order Value" and "KVSTRDCarriage Free Limit" will be moved to KUMAVISION base in future release. (Internal ticket: TRD-820)', '26.4')]
procedure CalculateOrderValues(var RequisitionLine: Record "Requisition Line"; var VendorMinimumOrderValue: Decimal; var VendorCarriageFreeLimit: Decimal; var TotalOrderValue: Decimal; var AcceptedOrderValue: Decimal; var PricesInclVAT: Boolean):
Parameters:
RequisitionLine: The current "Requisition Line" record where the information are taken from (Vendor, Currency, etc.).VendorMinimumOrderValue: The determined vendor minimum order value.VendorCarriageFreeLimit: The determined vendor carriage free limit.TotalOrderValue: The determined total value of all matching requisition lines.AcceptedOrderValue: The determined total value of all matching requisition lines that have set "Accept Action Message" to True.PricesInclVAT: True if the vendor has set "Prices Including VAT" to True, otherwise False.
Events#
KVSTRDOnBeforeReleaseDocCheckMinValue(Record Purchase Header, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('Obsolete due to missing call by reference (var keyword) for isHandled: Use KVSTRDOnBeforeCheckMinimumOrderValue instead', '25.4')]
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeReleaseDocCheckMinValue(PurchaseHeader: Record "Purchase Header"; isHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDPurchMinOrderValueMgt", 'KVSTRDOnBeforeReleaseDocCheckMinValue', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeReleaseDocCheckMinValue(PurchaseHeader: Record "Purchase Header"; isHandled: Boolean)
begin
end;
KVSTRDOnBeforeCheckMinimumOrderValue(Record Purchase Header, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: This event is raised before the minimum order value check is performed for a purchase header.
[Obsolete('The logic for "KVSTRDOnBeforeCheckMinimumOrderValue" will be moved to KUMAVISION base in future release. (Internal ticket: TRD-820)', '26.4')]
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCheckMinimumOrderValue(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSTRDPurchMinOrderValueMgt", 'KVSTRDOnBeforeCheckMinimumOrderValue', '', false, false)]
local procedure DoSomethingKVSTRDOnBeforeCheckMinimumOrderValue(PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;