scmc.Pricingglobal with sharing class Pricing class to manage pricing AuthorFinancial Force, Inc. 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) Price 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 ValueAn SCM 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) Price 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 ValueAn SCM 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) Price an item based on specified criteria. The item and condition used is what is specified in the 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 ValueAn SCM 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) Price an item based on specified criteria. The item and condition used is what is specified in the 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 ValueAn SCM 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. |