scmc.Pricingglobal with sharing class Pricing Class to manage pricing Methods
Pricingglobal Pricing(Map<String, List<scmc__Price__c>> priceItemList) Constructor to initialize pricing when pricing records have already been queried. This version of the constructor is used in the quoting tool. After an upload, in the trigger there are multiple lines that need to be priced all at once. This constructor reduces the number of SOQL queries. Input Parameters
Exceptions Thrown
Return ValueDoes not return a value. Pricingglobal Pricing(String item, Id condition) Constructor to initialize pricing when there is only a single item. For bulk processing, Pricing(String[] items) should be used instead. Input Parameters
Exceptions Thrown
Return ValueDoes not return a value. Pricingglobal Pricing(String[] items) Constructor to initialize pricing for multiple items at once. This should be used instead of Pricing(Map<String, List<Price__c>> priceItemList). Input Parameters
Exceptions Thrown
Return ValueDoes not return a value. priceglobal scmc__Price__c price(String item, Decimal requestedQuantity, scmc.Pricing.CustomerType customer, Id condCode, Id priceType, String currencyIsoCode) Prices an item based on specified criteria. Customer specific pricing is checked first, followed by promotional pricing, followed by standard pricing. Input Parameters
Exceptions Thrown
Return ValueA price record that matches the specified criteria. If no price record is found, this returns null. priceglobal scmc__Price__c price(String item, Decimal requestedQuantity, scmc.Pricing.CustomerType customer, Id condCode) Prices an item based on specified criteria. Customer specific pricing is checked first, followed by promotional pricing, followed by standard pricing. Input Parameters
Exceptions Thrown
Return ValueA price record that matches the specified criteria. If no price record is found, this returns null. priceglobal scmc__Price__c price(Decimal requestedQuantity, Id customer, Id priceType) Prices an item based on specified criteria. The item and condition used is what is specified in the scmc.Pricing (String item, ID condition) constructor. This should not be used for bulk processing. Customer specific pricing is checked first, followed by promotional pricing, followed by standard pricing. Input Parameters
Exceptions Thrown
Return ValueA price record that matches the specified criteria. If no price record is found, this returns null. priceglobal scmc__Price__c price(Decimal requestedQuantity, Id customer) Prices an item based on specified criteria. The item and condition used is what is specified in the scmc.Pricing (String item, Id condition) constructor. This should not be used for bulk processing. Customer specific pricing is checked first, followed by promotional pricing, followed by standard pricing. Input Parameters
Exceptions Thrown
Return ValueA price record that matches the specified criteria. If no price record is found, this returns null. scmc.Pricing.CustomerTypeglobal with sharing class CustomerType Class to hold customer information for pricing. Properties
MethodsCustomerTypeglobal CustomerType(Id customer, Id priceType) Constructor to initialize customer and price type. Input Parameters
Exceptions Thrown
Return ValueDoes not return a value. |