KVSKBAPriceHelper
Procedures
TestPriceListHeaderValues(Record Price List Line) : Boolean
Summary: Tests if the specified price list line has valid header values.
procedure TestPriceListHeaderValues(PriceListLine: Record "Price List Line"): Boolean
Parameters:
PriceListLine: The price list line to test.
Returns: Returns true if the price list line has valid header values, false otherwise.
Remarks: This function checks if the price list line has valid header values by comparing the values in the price list line with the corresponding values in the price list header. If any of the values do not match, it returns false. If all values match or if the price list code is empty, it returns true.
CheckPriceListhasDraftLines(Code[20]) :
Summary: Checks if the specified price list contains any lines in the draft status.
procedure CheckPriceListhasDraftLines(PriceListCode: Code[20]):
Parameters:
PriceListCode: The code of the price list to check.
Remarks: This function checks the "Price List Line" table for any lines that have the specified price list code and are in the draft status. If any such lines are found, an error is raised indicating that the price list cannot be used to store prices.
CheckIsExtendedPriceCalculationEnabled() : Boolean
Summary: Checks if the extended price calculation is enabled.
procedure CheckIsExtendedPriceCalculationEnabled(): Boolean
Returns: Returns true if the extended price calculation is enabled, false otherwise.
Remarks: This function checks if the extended price calculation is enabled by calling the IsExtendedPriceCalculationEnabled function from the Price Calculation Mgt. codeunit.
CheckPriceCalculationMethodUseKBAChanges(Enum Price Calculation Method) : Boolean
procedure CheckPriceCalculationMethodUseKBAChanges(PriceCalculationMethod: Enum "Price Calculation Method"): Boolean
CheckIsDefaultPricingCustomer() : Boolean
Summary: Checks if the default pricing customer is set in the Sales & Receivables Setup.
procedure CheckIsDefaultPricingCustomer(): Boolean
Returns: Returns true if the default pricing customer is set, false otherwise.
Remarks: This function checks the Sales & Receivables Setup to determine if the default pricing customer is set. If the setup record is not found, it assumes that the default pricing customer is set and returns true.
CheckIsDefaultPricingDate() : Boolean
Summary: Checks if the default pricing date is set in the Sales & Receivables Setup.
procedure CheckIsDefaultPricingDate(): Boolean
Returns: Returns true if the default pricing date is set, false otherwise.
Remarks: This function checks the Sales & Receivables Setup to determine if the default pricing date is set. If the setup record is not found, it assumes that the default pricing date is set and returns true.
CheckIsDefaultPricingVendor() : Boolean
Summary: Checks if the default pricing vendor is set in the Purchases & Payables Setup.
procedure CheckIsDefaultPricingVendor(): Boolean
Returns: Returns true if the default pricing vendor is set, false otherwise.
Remarks: This function checks the Purchases & Payables Setup to determine if the default pricing vendor is set. If the setup record is not found, it assumes that the default pricing vendor is set and returns true.
Events
OnCheckPriceCalculationMethodUseKBAChanges(Enum Price Calculation Method, Boolean, Boolean) :
[IntegrationEvent(false, false)]
local procedure OnCheckPriceCalculationMethodUseKBAChanges(PriceCalculationMethod: Enum "Price Calculation Method"; var Result: Boolean; var IsHandled: Boolean):
OnBeforeProcessPriceCalcChangeNotification(Boolean) :
Summary: Raised before processing the price calculation change notification. Subscribers can use this event to implement custom logic before the notification is processed.
[IntegrationEvent(false, false)]
local procedure OnBeforeProcessPriceCalcChangeNotification(var IsHandled: Boolean):
Parameters:
IsHandled: Set to true to indicate that the event has been handled and the standard logic for processing the notification should be skipped.
Remarks: Subscribers should set the IsHandled parameter to true if they are handling the event to prevent the standard logic from executing.